7 years, 9 months ago.

Export simple STM32F303RE program to either Keil uVision or STM32 System Workbench

I have tried several times to export a project from the online compiler to Keil uVision project and STM32 System Workbench project without success.

Does anyone have a successful technique for exporting from mbed to the STM32F303 target?

The latest attempt to export a little blinky program to Keil gave the following:

mbed/TARGET_NUCLEO_F303RE/TARGET_STM/TARGET_STM32F3/device.h(38): error: #5: cannot open source input file "objects.h": No such file or directory

  1. include "objects.h" main.cpp: 0 warnings, 1 error ".\BUILD\Nucleo_blink_led.axf" - 1 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:00

Created a bug report at https://github.com/ARMmbed/mbed-os/issues/3816. Possible workaround: import the project locally with mbed CLI, then export (via `mbed export -i uvision5`).

posted by Jan Jongboom 21 Feb 2017

Thanks!

I've done a bit more work and now have the export working and OpenSTM32 is able to compile, but when I run the simple blinky, it halts. It is trapped within the Infinite_Loop: of the default irq handler.

I trace through the startup_stm32f303xe.S assembly and find that as soon as it branches (bl) to _start it is trapped.

I have recreated the same problem with three diffierent STM32 nucleo dev board, with three different targets, so I assume there is an error somewhere in the export import process that does not handle lib_c startup properly.

posted by Steven Cheldelin 22 Feb 2017
Be the first to answer this question.