Resolved! STM32 goes outside of program code if CAN is enabled and the flash address in not the default
I need to debug an application code which is not on the default flash address (0x8000000) but it is at 0x8008000. I just changed the flash origin address to that value. When the execution reaches the CAN initialization part, the program counter goes ...