Hi,
 
somehow my code is not working. Recently I tried to figure out, why there are 
these unexpected jumps in my programcode. After a look at the Disassembly, I 
found something strange..
 
My first lines in main are these:
 
int a = 1;
int i  = 1;
 
and the Disassembly says for these two lines:
 
int a = 1;
0x00400106 <main()+6>: ldrb.w r4, [r1], #1
0x0040010a <main()+10>: subs r0, r0, r4
int i = 1;
0x0040010c <main()+12>: beq.n 0x4000fa <frame_dummy+22>
0x0040010e <main()+14>: pop {r4}
0x00400110 <main()+16>: bx lr
 
why do I have this jump in int i = 1 ?? 
 
I also got the following errors in the openOCD Logfile: 
 
Debug: 417 3716 at91sam3.c:1807 _sam3_probe(): Here
Debug: 418 3716 at91sam3.c:1711 sam3_GetDetails(): Begin
Error: 419 3716 at91sam3.c:1722 sam3_GetDetails(): SAM3 ChipID 0x28a00960 not 
found in table (perhaps you can this chip?)
Info : 420 3716 at91sam3.c:1731 sam3_GetDetails(): SAM3 CHIPID_CIDR: 0x28a00960 
decodes as follows
Info : 421 3716 at91sam3.c:1731 sam3_GetDetails():       Version:     0 
[0x0000] 
Info : 422 3732 at91sam3.c:1731 sam3_GetDetails():         EPROC:     3 
[0x0003] cortex-m3
Info : 423 3732 at91sam3.c:1731 sam3_GetDetails():       NVPSIZE:     9 
[0x0009] 256K bytes
Info : 424 3732 at91sam3.c:1731 sam3_GetDetails():      NVPSIZE2:     0 
[0x0000] none
Info : 425 3732 at91sam3.c:1731 sam3_GetDetails():      SRAMSIZE:     0 
[0x0000] 48K Bytes
Info : 426 3732 at91sam3.c:1731 sam3_GetDetails():          ARCH:   138 
[0x008a] ATSAM3SxC Series (100-pin version)
Info : 427 3732 at91sam3.c:1731 sam3_GetDetails():        NVPTYP:     2 
[0x0002] embedded flash memory
Info : 428 3732 at91sam3.c:1731 sam3_GetDetails():         EXTID:     0 
[0x0000] (exists: NO)
Error: 429 3732 core.c:167 get_flash_bank_by_num(): auto_probe failed -4
 
Maybe it has something to do with this error..
 
Thx                                       
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to