• Program does not run with optimization disabled, except if debugging

    Hello.

    I've been having issues with a program of mine that works perfectly fine while running with optimizations enabled but if I disable it, it doesn't seem to get to main, the only exception being running in debug mode.  I have set up the pins…

  • Debug an INVPC exception

    Hi. I have an INVPC exception that I am trying to debug on a Cortex M4 STM32. The stack contains the following values:

    0x08003555 xPSR
    0x08006824 PC
    0x08006824 LR
    0x00000000 R12
    0x08003341 R3
    0x08006824 R2
    0xFFFFFFFD R2
    0x0000FFFF R0

    The PC and LR both point…