LPC55S16 lost in secure section (0x130166b2 / 0x4002840)

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

LPC55S16 lost in secure section (0x130166b2 / 0x4002840)

636 Views
nxp-obrist
Contributor II

Hi,

I was able to access/debug the LPC55S16 EVAL Kit. I'm was implementing some second stage bootloader as shown in AN12327.

After implementing and some testing, I was flashing a image to the section 0x30000 via the MCUXpesso IDE and the onboard debug prob. After that I was not able to access the LPC55S16 again. 

I changed to a external debug prob (j-link EDU) and was able to deepdive a little in the problem.

What happens is, that the program is trying to boot from the secure area at 0x130166b2  and then stays in an endless loop at 0x4002840

nxpobrist_1-1635252816912.png

nxpobrist_2-1635252867866.png

nxpobrist_3-1635252936106.png

Is there a way to clear the whole device and start again in the non secure area of the LPC55S16??

best regards

Corsin Obrist

 

 

0 Kudos
1 Reply

616 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi Corsin,

 Please follow the steps below:

  • Click on the "Clean Up debug" button on the main IDE toolbar - this kills any stale low level debug operations.
  • Disconnect the USB cable from your board to remove power
  • Place a jumper on the ISP header (JS3) - this will prevent the board booting the image in flash by forcing the MCU to enter ISP mode.
  • Now reconnect the USB cable to Debug Link connector (J1).
  • Now select a project in the Project Explorer view, and then click on the GUI Flash Tool on the main IDE toolbar - and use this to mass erase the flash.

Have a great day,

Felipe

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time. 

------------------------------------------------------------------------------ 

0 Kudos