Re: Can 2 UARTs coexist in nuttx?

2021-08-11 Thread Sathish Touch energy
Thanks a lot for the quick response, Alan..

On Wed, 11 Aug 2021 at 17:28, Alan Carvalho de Assis 
wrote:

> Hi Sathish,
>
> Currently on s32k144evb the UART1 is used by the NSH, then you will
> not be example to use it directly if you want to stay with the NSH,
> but if you write your own application and remove the NSH from the
> USER_ENTRYPOINT you could use it.
>
> Why don't use you use UART0 and UART2? This way you could still be
> enable to use the NSH that is very useful for debug and tests during
> the development phase.
>
> This is the step to enable the UARTs
>
> System Type  --->
> S32K1XX Peripheral Selection  --->
> [*] LPUART0
> [*] LPUART1
> [*] LPUART2
>
> BR,
>
> Alan
>
> On 8/10/21, Sathish Touch energy  wrote:
> > Hi,
> >
> > I am using nuttx, with an S32K144 eval board.
> >
> > For debug messages and nsh, uart1 is being used now.
> >
> > I need to use another uart for communicating with a host application.
> >
> > I want to use UART0 for this purpose.
> >
> > Can both UART0 and UART1 be used simultaneously?
> >
> > If so, how to enable both of them in nuttx code?
> >
> > Thanks and Regards,
> > Sathish.
> >
>


Re: Can 2 UARTs coexist in nuttx?

2021-08-11 Thread Sathish Touch energy
Thanks a lot for the quick response..

On Wed, 11 Aug 2021 at 13:43, Maciej Wójcik  wrote:

> - Enable another UART in blue configuration menu, section called Device
> drivers
> - It will appear in /dev in NSH as ttySX
> - Open it in your code and write to it. For examples search in NuttX apps.
> It is not documented because it is POSIX.
>
> On Wed, 11 Aug 2021, 04:59 Sathish Touch energy, 
> wrote:
>
> > Hi,
> >
> > I am using nuttx, with an S32K144 eval board.
> >
> > For debug messages and nsh, uart1 is being used now.
> >
> > I need to use another uart for communicating with a host application.
> >
> > I want to use UART0 for this purpose.
> >
> > Can both UART0 and UART1 be used simultaneously?
> >
> > If so, how to enable both of them in nuttx code?
> >
> > Thanks and Regards,
> > Sathish.
> >
>


Re: Can 2 UARTs coexist in nuttx?

2021-08-11 Thread Alan Carvalho de Assis
Hi Sathish,

Currently on s32k144evb the UART1 is used by the NSH, then you will
not be example to use it directly if you want to stay with the NSH,
but if you write your own application and remove the NSH from the
USER_ENTRYPOINT you could use it.

Why don't use you use UART0 and UART2? This way you could still be
enable to use the NSH that is very useful for debug and tests during
the development phase.

This is the step to enable the UARTs

System Type  --->
S32K1XX Peripheral Selection  --->
[*] LPUART0
[*] LPUART1
[*] LPUART2

BR,

Alan

On 8/10/21, Sathish Touch energy  wrote:
> Hi,
>
> I am using nuttx, with an S32K144 eval board.
>
> For debug messages and nsh, uart1 is being used now.
>
> I need to use another uart for communicating with a host application.
>
> I want to use UART0 for this purpose.
>
> Can both UART0 and UART1 be used simultaneously?
>
> If so, how to enable both of them in nuttx code?
>
> Thanks and Regards,
> Sathish.
>


Re: Can 2 UARTs coexist in nuttx?

2021-08-11 Thread Maciej Wójcik
- Enable another UART in blue configuration menu, section called Device
drivers
- It will appear in /dev in NSH as ttySX
- Open it in your code and write to it. For examples search in NuttX apps.
It is not documented because it is POSIX.

On Wed, 11 Aug 2021, 04:59 Sathish Touch energy, 
wrote:

> Hi,
>
> I am using nuttx, with an S32K144 eval board.
>
> For debug messages and nsh, uart1 is being used now.
>
> I need to use another uart for communicating with a host application.
>
> I want to use UART0 for this purpose.
>
> Can both UART0 and UART1 be used simultaneously?
>
> If so, how to enable both of them in nuttx code?
>
> Thanks and Regards,
> Sathish.
>


Can 2 UARTs coexist in nuttx?

2021-08-10 Thread Sathish Touch energy
Hi,

I am using nuttx, with an S32K144 eval board.

For debug messages and nsh, uart1 is being used now.

I need to use another uart for communicating with a host application.

I want to use UART0 for this purpose.

Can both UART0 and UART1 be used simultaneously?

If so, how to enable both of them in nuttx code?

Thanks and Regards,
Sathish.