LPC5411X READ

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC5411X READ

63 Views
1123HENRY
Contributor I

I am currently using SWD to debug the LPC54113 chip. I have halted the core and then set some debug registers starting with 0xE000.

I found that when I read the internal flash of the chip, the address 0x0~0x200 always had incorrect data, resembling an interrupt vector table rather than the actual program stored in the FLASH. By reading from other addresses, the correct data can be obtained, all of which are 0xFFFFFFFF.

The chip did not program any data. Through using JLINK for reading, the address 0x0~0x200 are 0xFFFFFFFF. However, JLINK uses FLM to write to RAM for reading, I cannot know how it processes the reading of the 0x0 to 0x200 address range.

The steps I followed were:

write abort, 0x1E

write select, 0x0

write tar, 0x0

write csw, 0x23000012

and then read drw until the internal flash end address.

vector.png

LPC541XX 

 

Labels (1)
0 Kudos
Reply
2 Replies

11 Views
reliwac986
Fresh Out Contributor

Hello,
You may be reading the Cortex-M memory alias rather than the physical flash contents. On the LPC54113, address 0x00000000 is mapped to the currently active memory (flash, boot ROM, or RAM) depending on the boot configuration and remap settings. If the device is blank, the boot ROM can present a valid vector table at 0x0, which explains why you see interrupt vectors instead of 0xFFFFFFFF.    

0 Kudos
Reply

9 Views
1123HENRY
Contributor I

I want to read the physical flash contents in 0x0, What should I do?

I need to change AP bank or other operations?

0 Kudos
Reply