[Solved] Inline assembly works in Debug mode but fails in Release mode

Comments

1 comment

  • Avatar
    Peter Klemm

    Found the problem. If I change:

    __asm__("ldr %0, =firmware_revision"    : "+rm" (fw_revision)    );

    to

    __asm__("ldr %0, =firmware_revision"    : "+r" (fw_revision)    );

    It builds and runs in Release mode.

    I'll research what effect the 'm' has.

    0
    Comment actions Permalink

Please sign in to leave a comment.