This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

assembler function: warning: padding bytes

Hi,

using this assembler function in my c-code, I will get a warning message from the keil µvision compiler (warning: A1581W: added 2 bytes of padding at address 0xe)

 __asm void jump_to_application(void)
{
    ; program stack pointer of application
    LDR     R0, =0x10000
    LDR     SP, [R0]

    ; extract entry point into application
    LDR     R0, =0x10004

    ; jump
    LDR     PC, [R0]
}

Which steps do I have to add to solve this warning message?

best regards
Lars

0