Page 2 of 2

Re: Blue Pill clock define

Posted: Fri May 29, 2020 5:40 am
by stas2z
Renato wrote: Fri May 29, 2020 2:17 am
stas2z wrote: Tue May 26, 2020 10:58 pm Yes, you need whole SystemClock_Config from cube, and don't call it from loop or from anywhere else, it will be called at preinit
So, I supose that Arduino IDE find this information in specific folder.
What I need to do in instalation process to integrate Arduino IDE and CubeMx to take this ?
Tks
No, there is no integration between cubemx and arduino ide

For any board supported by core SystemClock_Config is defined in the variant.cpp
https://github.com/stm32duino/Arduino_C ... #L121-L157

This function uses same name as CubeMX generate, called by core at init stage and it defined as WEAK to be redefined easilly in the user code if needed.