Topic : Port code from STM32F103 to STM32F091

Forum : ARM

Original Post
Post Information Post
July 7, 2016 - 12:15pm
Michael Bohle

Hi!

I've tried to port a project from the CorTex-M3 (STM32F103) to the CorTex-M0 (STM32F091). After some days of work, i can compile the code for the new cpu but i can't debug it. Ride says "Out of code". It seems that the startup-file or probably the linker-file is bugged. I have a bootloader section with a header and date and then the code section. I've added the startup and linker files. I would appreciate if someone could have a look at these files and probably have a hint for me, how i can solve this problem.

Thanks a lot for your support.

Best regards,

MichaelPlain text iconstartup_stm32f0xx.txtPlain text iconSTM32F091_256K_32K_App_deb.txtPlain text iconsections_FLASH_App_deb.txt

Replies
Post Information Post
+1
0
-1
July 11, 2016 - 5:08pm
Etienne Cassin

Hello,

Did you had a look of AN4088: Migrating between STM32F1 and STM32F0 series microcontrollers  provided by STMicroelectronics?

Normaly, the startup and lnker script are provided as default choosing the right MCU (STM32F091xx).

Best regards,

+1
0
-1
July 11, 2016 - 5:28pm
Michael Bohle

Hi!
Thanks for your answer.
Yes i had a look to this application note, but there is no information  for that problem in there. Because of we have user specific files i've took the startup and linker scripts from the working project (STM32F103), matched the necessary parameters (e.g. FLASH, RAM,...) for the STM32F091 and expected that they work here, too. But that isn't the case.

Thanks a lot for other hints and suggestions.

Best regards,

Michael Bohle

+1
0
-1
July 12, 2016 - 10:38am
Etienne Cassin

I suggest you to start from the default STM32F091xx satrtup and linker script then modify your region, memory, section,...

Which version of Ride7 and Rkit-ARM are you using?

Please, update your version to the latest release, the default linker script and startup are updated.

Regards,