I'm writing an app on the Renesas RX platform and the GNU RX compiler using the embOS object files.
I'm calling OS_Delay(100), but the function never returns. I've stepped through the code and it appears I'm in a four-instruction infinite loop inside _OS_DelayUntil:
FFF87D40 EDAB09 MOV.L 24H[R10],R11
FFF87D43 437B SUB R7,R11
FFF87D45 610B CMP #0H,R11
FFF87D47 29F9 BLT.B 0FFF87D40H
(For reference, _OS_DelayUntil is at 0xFFF87CDC in this build.)
Now, I generated my project from scratch rather than using one of the sample projects as a starting point, so my assumption is that I missed some piece of initialization code somewhere. I am calling OS_InitHW() in Rtosinit_GNURX.c.
Can anyone help me figure out what I may be overlooking?
Thanks,
-Matthew
I'm calling OS_Delay(100), but the function never returns. I've stepped through the code and it appears I'm in a four-instruction infinite loop inside _OS_DelayUntil:
FFF87D40 EDAB09 MOV.L 24H[R10],R11
FFF87D43 437B SUB R7,R11
FFF87D45 610B CMP #0H,R11
FFF87D47 29F9 BLT.B 0FFF87D40H
(For reference, _OS_DelayUntil is at 0xFFF87CDC in this build.)
Now, I generated my project from scratch rather than using one of the sample projects as a starting point, so my assumption is that I missed some piece of initialization code somewhere. I am calling OS_InitHW() in Rtosinit_GNURX.c.
Can anyone help me figure out what I may be overlooking?
Thanks,
-Matthew