2022-02-02 03:43 AM
I select tim1 for sys source in STM32CubeMX and generate code.
I use STM32CubeMX V6.4.0.
I added a stripped example of the code that crashes. HAL_NVIC_EnableIRQ crashes.
Solved! Go to Solution.
2022-02-14 01:13 PM
> SCB->VTOR should be cleared at reset.
It *is* cleared, but as initial boot was probably from system memory (dangling BOOT0) just overriden by the debugger, the system memory is still mapped at 0 instead of the user FLASH.
Reading memory from 0x0000'0000 and/or SYSCFG_MEMRMP.MEM_MODE would tell the truth.
JW