
Registered on : 12-30-2006
From USA
Messages : 97
OFF-Line
|
I will have to concur with this warning. I wish I had found it at the beginning of the day rather waste all day trying to figure out why R12 was getting corrupted. I also noticed that the ST example code is all over the place. The old code saves/restores r0-r12, the newer code saves/restores r0-r3 or r0-r4, depending on which example you look at.
I believe the proper thing to do is (for EWARM 5.11) change 91x_vect.s to use the following where needed.
STMFD sp!,{r0-r3,r12,lr} ;
...
LDMFD sp!,{r0-r3,r12,pc}^;
|
|
|