Senior III
March 19, 2024
Question
Compiler optimized program has errors
- March 19, 2024
- 5 replies
- 14208 views
While trying to debug a problem, it seems that another one is giving me a hard time.
One function call is not shown, another has the wrong name ("writeFLASHDoubleWord" should be "waitForBusy").
The breakpoint is also missed.
Originally the code worked, but then i moved to the new prototype. I copied the project, and made a few minor changes. Mainly just the pins.
I had some hardfault before, which happend seemingly at "CLEAR_BIT(FLASH->CR, FLASH_CR_PG);" after writing FLASH. But after seeing the above, i doubt this!