eden-desta edited a comment on issue #4188: URL: https://github.com/apache/incubator-nuttx/issues/4188#issuecomment-883688441
Thank @michallenc @saramonteiro @acassis all for taking the time! So I have attempted to do this as you said above. And these are the steps I took without any success. the `stm32_bringup.c` file located in `nuttx/boards/arm/stm32h7/nucleo-h743zi2/src` Already had: ``` #if !defined(CONFIG_ARCH_LEDS) && defined(CONFIG_USERLED_LOWER) /* Register the LED driver */ ret = userled_lower_initialize("/dev/userleds"); if (ret < 0) { syslog(LOG_ERR, "ERROR: userled_lower_initialize() failed: %d\n", ret); } #endif ``` So, instead what i did was i edited the `.config` file manually. ``` CONFIG_USERLED=y CONFIG_USERLED_LOWER=y ... CONFIG_ARCH_HAVE_LEDS=y # CONFIG_ARCH_LEDS is not set # CONFIG_ARCH_LEDS_CPU_ACTIVITY is not set ``` I had to make some updates to `boards/arm/stm32h7/nucleo-h743zi2/src/stm32_userleds.c` from `GPIO_LED_BLUE` to `GPIO_LED_ORANGE` In the `stm32_bringup.c` file I had to include `<nuttx/leds/userled.h>` With all this said and done it build and was able to compile. However, when I run it I still get the same error. ``` nsh> leds leds_main: Starting the led_daemon leds_main: led_daemon started led_daemon (pid# 3): Running led_daemon: Opening /dev/userleds led_daemon: ERROR: Failed to open /dev/userleds: 2 led_daemon: Terminating ``` I ran `ls /dev` and the return value was: ``` nsh> ls /dev /dev: console null ttyS0 ``` So IDK what I am still missing even though I definitely think I am further on that I was before hahaha! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org