Am 13.08.2021 um 10:43 schrieb rushi ghatkar:
Hi,

I have configured and installed Nuttx rtos on the Nucleo-H743zi2 board.

Now I want to create my own driver. How to create our own driver?

Has anyone created their own driver using Nuttx rtos on the STM32 board?

Could anybody please tell me how to start?

Been there, done that.

The best starting point is to look for a similar driver. I needed drivers for ADC and DAC chips with I2C interface, so I looked for those drivers, copied one and changed it according to my needs. Then I looked into Makefiles, Make.defs, and Kconfigs, how these drivers were included an included mine in the same manner.

The build system with make menuconfig, Makefiles and Kconfigs is the same as for the Linux kernel. Since your development platform is Linux anyways (this is the strongly recommended default platform) you should already have plenty of Linux experience and know how to customize an Linux kernel, how to use Makefiles and gcc and gdb and binutils. If you know Linux well the step to NuttX is not so big any more.

I started a year ago, and it took me two months to get started with own hardware and own drivers (ok, with Linux experience since 1993 and UNIX experience since 1989).


Frank-Christian

Reply via email to