As far as I know it should have worked as-is... Did it not? If the HSE doesn't start it drops back to HSI (in system_stm32f4xx.c). jshSetSystemClock might fail but that's only used when you call E.setClock.
I guess the code for jshSleep might need some fiddling so it checks which oscillator it was using before it sleeps?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
As far as I know it should have worked as-is... Did it not? If the HSE doesn't start it drops back to HSI (in
system_stm32f4xx.c
).jshSetSystemClock
might fail but that's only used when you callE.setClock
.I guess the code for
jshSleep
might need some fiddling so it checks which oscillator it was using before it sleeps?