2009-03-08 11:29 AM
Jumping to Reset_Handler?
2011-05-17 04:05 AM
Hello again :D
I'm compiling the QuickStart_STM32 exemple provided in Ride7 and looking at the generated memory map. If i start debugging and look at Memory View window the Reset Handler address looks like 0x0800 01E5. But in the Disassembly View window Reset_Handler has the address 0x0800 01E4. I have seen this on other examples too. What is going on, why does the address diff 1 byte address? (se picture)2011-05-17 04:05 AM
Hi sima,
This behavior is correct and there is no issues there. In fact this is how Cortex-M3 is decoding the address and always the PC ( program counter) should have the LSB equal to 1, that means it is executing in Thumb2 state, if it moves accidentally to 0 , so in you case to xxxxxxE4 , it would create a INVSTATE fault because T bit is 0 (ARM state). for more details refer tohttp://infocenter.arm.com/help/topic/com.arm.doc.ddi0337e/DDI0337E_cortex_m3_r1p1_trm.pdf
. Page 96/384 ( Note ) & Page 64/384 ( ''T'' bit definition ) Cheers, STOne-32. [ This message was edited by: STOne-32 on 09-03-2009 00:06 ]