Hi Alan Sir,

Thanks for your reply.

The serial driver already exists for STM32H7. Are we willing to
exchange data over serial port?
-> Yes sir. I want to transmit and receive data using uart.

Just do the same thing you do on Linux: open(), tcflush(), tcsetatt
-> these functions we have to use while creating our own driver???


I was trying to run a sample example of a serial driver for uart. But it
gives errors. Could you please tell me how to get it working?



Thanks & Regards,
Rushikesh Ghatkar





On Mon, Aug 30, 2021 at 6:43 PM Alan Carvalho de Assis <acas...@gmail.com>
wrote:

> Hi Rushikesh,
>
> The serial driver already exists for STM32H7. Are we willing to
> exchange data over serial port?
>
> Just do the same thing you do on Linux: open(), tcflush(), tcsetattr(),
> etc.
>
> You need to use /dev/ttyS1..N the /dev/ttyACM0 is for USB/Serial example.
>
> BR,
>
> Alan
>
> On 8/30/21, rushi ghatkar <rushighatka...@gmail.com> wrote:
> > Hi,
> >
> > I am trying to create my own uart serial driver which includes transmit
> and
> > receive data  .
> >
> > For that i was trying to understand a sample example which is given
> > already. For this example given file are mentioned below,
> > In nuttx folder,
> > 1. nuttx/drivers/serial.c
> > 2. nuttx/include/nuttx/serial/serial.h
> > But in *nuttx/boards/arm/stm32h7/nucleo-h743zi2/src*   no file is present
> > for the serial driver.  So here do we have to create a file or the driver
> > will work as it is?
> >
> > In app folder,
> > apps/examples/serialrx/serialrx_main.c     devpath given like this
> > */dev/ttyS0
> > , *what does this mean? as  per my board device port is ACM0, so should i
> > include */dev/ttyACM0* instead of  */dev/ttyS0.*
> >
> > In menuconfig, i have selected *serial RX example*,
> >
> > How to make it run, does anyone please tell me how this example is
> working.
> >
> >
> > Thanks & Regards,
> > Rushikesh Ghatkar
> >
>

Reply via email to