johu wrote: βMon Aug 08, 2022 11:30 am
janosch wrote: βMon Aug 08, 2022 9:57 am
By the way, given that STM32F103 availabilty is difficult and looks to remain so, what will future OI and EVBMW boards use most likely?
While all distributors are out of them, jlcpcb has them back in stock at just $7.5. So not spending much thought on it now. Not sure what the latest jellybean replacement could be
I think the only jellybean replacement would be the RPi2040, but I don't think a switch to that would be reasonable. That would mean going away from the whole (very viable!) STM32 ecosystem to a single product ecosystem without substitutions.
I'll read the article later as well. I've been through bare-metal STM32 debugging hell as well, but with the STM32F030, which has very limited debugging capabilities compared to other STM32s, because in case of a fault it just jumps to the HardFault vector without information where the fault occured. The STM32F0 series doesn't have the more sophisticated Fault vectors the other STM32s have.
In the end the fault I was chasing was me forgetting to add a waitstate to the Flash access. When working above 24MHz, you need an additional waitstate. The nasty thing is though, that the program *SOMETIMES* works. Some areas of the flash work without the additional waitstates, but not all and not always. So sometimes the program ran for hours and after a recompile with insignificant changes, it crashed instantly.
Took me a couple of days to find it... in the end I should've read the documentation more carefully as well
