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
Jimmy said:It's supposedly indented properly
The "padding" mentioned is bytes in the generated code - it has nothing to do with indentation of the source text.
Some Assembler references mentioned here:
https://community.arm.com/developer/tools-software/tools/f/keil-forum/44110/can-i-code-stm32f103rbt6-into-assembly-langauage-rather-than-c-or-c/160087#160087
Thank you for the link