By the way, the issue had to do with the linker and startup script used for the 
stm32f413 nucleo board example, it used to use one for stm32f401 and now has 
its own. 
All I had to do is change the _estack = 0x02005000 with _estack = 0x02004000 
(on the new stm32f413.ld)


Ignacio Utrilla de Noriega
+34 717716676
 
MobileKnowledge
Roc Boronat 117, P3M3 - 08018 Barcelona (Spain)
www.themobileknowledge.com
 

-----Original Message-----
From: Ignacio Utrilla <[email protected]> 
Sent: Tuesday, August 14, 2018 12:26 PM
To: [email protected]
Subject: port STM32F412ZG

Hi,

I'm on the apparently simple task of porting to a STM32F412 but I'm getting a 
mess with the startup file, cmsis, and linker file.
Searching for an answer I found :

1) It jumps to "main" at the end of the Reset_Handler. You need to change it to 
jump to "_start".
2) There is already zeroing of the "bss" section, but you also need to add 
zeroing of "corebss".

Of course the linker script also has to be updated accordingly (sections/labels 
that match).

>From this devlist on an STM32F427 but still no success. I find hard to believe 
>you have to get into assembler with all the support and files STM gives.

I can execute the main function but the timers just do not work, the blinker 
goes really fast (oscilloscope) and can't see where the clocks are configured.

Has anyone done this port or can guide me a bit on the steps to follow?
How are the clocks configured?

Thanks!



Ignacio Utrilla de Noriega
+34 717716676

MobileKnowledge
Roc Boronat 117, P3M3 - 08018 Barcelona (Spain) 
www.themobileknowledge.com<http://www.themobileknowledge.com/>


Reply via email to