Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
Hi,
I'm trying to figure out why a registered callback function is failing.
C:socket->cb.socket(socket_idx, 0);
socket->cb.socket(socket_idx, 0);
ASM:It fails at:
00415B88 ldr r3, [r4, #60] 00415B8A mov r1, r11 00415B8C mov r0, r6 -> 00415B8E blx r3 00415B90 b #-676
00415B88 ldr r3, [r4, #60]
00415B8A mov r1, r11
00415B8C mov r0, r6
-> 00415B8E blx r3
00415B90 b #-676
Register r3: 0x00422091
r3
The function it is suppose to jump to is at 0x00422090. So why this extra bit? And why does it get unaligned?
Thanks in advance.
42Bastian Schick said:I suggest reading ... "The definitve guide to Cortex-M3 and Cortex-M4"
Absolutely!
https://www.elsevier.com/books/the-definitive-guide-to-arm-cortex-m3-and-cortex-m4-processors/yiu/978-0-12-408082-9
Required reading!