Topic: Strange Arm Simulator behavior
I just try to use the simulator to debug a function I call at the early begining of my main (as a debug short cut).
I use the "Step Into" but the simulator does not enter this function.
Then I had a look at the disassembly and it is very strange as you can see in the following comparison between the listing file and disassembly windows results:
In the listing file: (I want to enter the InitIIR() function for debug):
int main(void); // prototype pour éviter le warning du compilo
int main()
{
0: e1a0c00d mov ip, sp
4: e92dd830 push {r4, r5, fp, ip, lr, pc}
8: e24cb004 sub fp, ip, #4 ; 0x4
c: e24dd028 sub sp, sp, #40 ; 0x28
D:\PLSM\tampo_boulot\session 12\Base_NG_ARM_V03\Logiciel\BaseArmNG_P03_V0103_Ride\Src/main.c:74
s16 Tamp16s; // pour test/debug des fonctions I2C
s8 Tamp8s; // pour Test/debug des fonctions I2C
// Court-Circuit debug simul
InitIIR();
10: e59f3bf8 ldr r3, [pc, #3064] ; c10 <main+0xc10>
14: e12fff33 blx r3
D:\PLSM\tampo_boulot\session 12\Base_NG_ARM_V03\Logiciel\BaseArmNG_P03_V0103_Ride\Src/main.c:82
Where the simulator disassembles as:
InitIIR();
00005FD0 F83B9FE5 LDR R3,[PC,#+0xBF8]
00005FD4 33FF2FE1 MSRR(Mic) addr_CPSR(Mic)_fsxc, R3
The blx R3 just change to a CPSR mov ??
What is the wrong setting (I use a STR911FAM44 µC) ??
Thanks