Solved
waclawek.janBest answer
Super User
February 9, 2023
Code looks OK.
Check if the user FLASH is mapped to 0x00000000; in other words, check, if you don't boot into the default bootloader in System Memory.
Also check SCB_ICSR.VECTACTIVE value.
JW


