stm32h7 bsp - simple led blink example not working on stm32h7 nucleo board
Christian Mauderer
oss at c-mauderer.de
Wed Nov 4 17:51:00 UTC 2020
Hello John,
On 02/11/2020 10:46, John Nathen wrote:
> Hi,
>
> I am new to rtems and am planning to use rtems on a project with the
> stm32h7 mcu. I cloned the latest sources from git and built the
> arm-rtems6, gcc 10.2 toolchain and also built the stm32h7 bsp using the
> new waf build system.
>
> Everything works fine and I can build the (modified for stm32h7) LED
> blink example application. However, the resulting .bin file, after
> conversion from exe to bin using objcopy, does not work - no blinking led.
Which LED sample is that? I assume one of the examples in rtems-examples?
https://git.rtems.org/rtems-examples/tree/led
If yes: The samples in that directory only implements the LED for some
boards. It defaults to just printing "LED ON" and "LED_OFF" for all
other boards. If you take a look at
https://git.rtems.org/rtems-examples/tree/led/led.h
stm32f4 has an implementation. But stm32h7 does not. So maybe take a
look at the console output whether "LED ON" and "LED OFF" is printed.
Best regards
Christian
>
> I then decided to try the stm32f4 discovery board:
> If I use the rtems5.1 release version with arm-rtems5, gcc 7.5 and the
> configure based build system, I can get the led to blink on this board.
> It also works even if I clone the latest rtems source and use the
> configure based system with arm-rtems5.
>
> If I use the latest master with arm-rtems6, gcc 10.2 and build the
> stm32f4 bsp using the new waf build system, the led blink example does
> NOT work!
>
> I then tried to 'force' rsb to build arm-rtems6 using the gcc 7.5 and
> tried to build the stm32f4 bsp using waf. This resulted in a number of
> linker errors - multiple definition of __getreent _Semaphore_Wait and a
> few others. Also, undefined reference to _init and so on.
>
> I tried to solve it based on the suggestions given for the __getreent
> (crt0.o issue). But still get a number of errors.
>
> I am hoping to get some suggestions on how to proceed further.
>
> Thanks in advance.
>
> John
>
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
More information about the users
mailing list