Changing Oscillator for Flash Programming
Posted: Fri Oct 21, 2016 3:20 pm
Hi,
I have the need to store calculated values, I decided I would use a Page of the Flash Memory on the STM32F103VCT
I realise all Threads/Drivers/VTimers etc need to be stopped, I was hoping I could stop, do the Flashing and start the OS and carry on.
After a lot of head scratching I read the data sheets again and it states the HSI Internal High speed Oscillator must be enabled.
I am using the HSE as I have an 8Mhz Xtal for timing accuracy as my project uses CAN Bus communication.
As we know this is set in the mcuconf.c file and I guess the clocks are setup by the __early_init() function.
If I can change the HS Oscillator would it make sense just to Reboot ?
Best regards
Paul
I have the need to store calculated values, I decided I would use a Page of the Flash Memory on the STM32F103VCT
I realise all Threads/Drivers/VTimers etc need to be stopped, I was hoping I could stop, do the Flashing and start the OS and carry on.
After a lot of head scratching I read the data sheets again and it states the HSI Internal High speed Oscillator must be enabled.
I am using the HSE as I have an 8Mhz Xtal for timing accuracy as my project uses CAN Bus communication.
As we know this is set in the mcuconf.c file and I guess the clocks are setup by the __early_init() function.
If I can change the HS Oscillator would it make sense just to Reboot ?
Best regards
Paul