STM32F103CB default clocks and setup
Posted: Sat Sep 17, 2022 12:20 am
Dear all
I am designing a project that uses an arduino for STM32F103CB. It started as a pure bluepill project until it ran out of flash
and has to update to a STM32F103CBT6 chip for more flash.
I ordered a mini maple board and as got very clumsy to reroute all the design for the new board, I've finally ended
transplanting the minimaple's CBT6 to the bluepill. Then changed the Platformio setup, recompiled all and downloaded the firmware
to the CBT6 bluepill.
It worked like a charm, no problems at all. As the prototype ran flawlessly I've decided to order some assembled boards, but when I've uploaded
the firmware to the new boards I've noticed that the firmware ran awfully slow, in fact I've checked that the 8MHz crystal is not running
(the 32.768 khz crystal was running however)
from this behaviour I can only understan that there is some setup to do to the chip that I'm not doing nor the arduino core is doing either.
Do you know what is the default clock, flash waitstates and general chip setup to do to the chip to make it work like a bluepill/minimaple?
best regards
Nachus
I am designing a project that uses an arduino for STM32F103CB. It started as a pure bluepill project until it ran out of flash
and has to update to a STM32F103CBT6 chip for more flash.
I ordered a mini maple board and as got very clumsy to reroute all the design for the new board, I've finally ended
transplanting the minimaple's CBT6 to the bluepill. Then changed the Platformio setup, recompiled all and downloaded the firmware
to the CBT6 bluepill.
It worked like a charm, no problems at all. As the prototype ran flawlessly I've decided to order some assembled boards, but when I've uploaded
the firmware to the new boards I've noticed that the firmware ran awfully slow, in fact I've checked that the 8MHz crystal is not running
(the 32.768 khz crystal was running however)
from this behaviour I can only understan that there is some setup to do to the chip that I'm not doing nor the arduino core is doing either.
Do you know what is the default clock, flash waitstates and general chip setup to do to the chip to make it work like a bluepill/minimaple?
best regards
Nachus