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

Parents
  • Hey there, quick question regarding NOP. What is it? I'm very new to this so sorry if it's a simplisitc question. I'm getting this error right now but it's for a line with this code: "AREA CUBE_lut, DATA, READWRITE", but it's at the end where I'm calling in some numbers. Any suggestions? It's supposedly indented properly and everything but seems like it's causing this warning.

Reply
  • Hey there, quick question regarding NOP. What is it? I'm very new to this so sorry if it's a simplisitc question. I'm getting this error right now but it's for a line with this code: "AREA CUBE_lut, DATA, READWRITE", but it's at the end where I'm calling in some numbers. Any suggestions? It's supposedly indented properly and everything but seems like it's causing this warning.

Children