Re: Creating our own driver in NUCLEO-H743ZI2 with Nuttx rtos

2021-08-16 Thread rushi ghatkar
Hi, I have tried the built-in LED driver in menuconfig, Application Configuration -> Examples -> LED driver example. But when I run that driver using picocom,it shows error, Builtin Apps: leds sh hello nsh nsh> leds leds_main: Starting the led_daemon leds_main: led_daemon started led_d

Re: Creating our own driver in NUCLEO-H743ZI2 with Nuttx rtos

2021-08-16 Thread Alan Carvalho de Assis
HI Rushikesh, It seams your board already has the userleds support: boards/arm/stm32h7/nucleo-h743zi2/src/stm32_userleds.c Did you disable the CONFIG_ARCH_LEDS? The status/diagnostic LEDs compete for the use of LEDs. So disable it: Board Selection ---> [ ] Board LED Status support BR, A

Re: Creating our own driver in NUCLEO-H743ZI2 with Nuttx rtos

2021-08-16 Thread Alan Carvalho de Assis
You need to declare all LEDs, including GPIO_LED_BLUE This is the pin on your board used for each LED. Please look at stm32h747i-disco/src/stm32h747i-disco.h for reference. BR, Alan On 8/16/21, rushi ghatkar wrote: > Hi Alan sir, > > I have disabled the status/diagnostic LEDs compete for the

Re: Creating our own driver in NUCLEO-H743ZI2 with Nuttx rtos

2021-08-16 Thread Alan Carvalho de Assis
Did you look at /dev? I think the /dev/userleds is not created. Try to enable the DEBUG LED to see that is going on. BR, Alan On 8/16/21, rushi ghatkar wrote: > Hi, > > I have changed the declaration but it still gives some warning. Please find > the attached image. > > and when I flash code a

Re: Creating our own driver in NUCLEO-H743ZI2 with Nuttx rtos

2021-08-16 Thread rushi ghatkar
Hi, How to create * /dev/userleds* ? I have searched for it but can't find it. Need Help. Regards, Rushikesh Ghatkar On Mon, Aug 16, 2021 at 6:32 PM Alan Carvalho de Assis wrote: > Did you look at /dev? I think the /dev/userleds is not created. > > Try to enable the DEBUG LED to see that is