download use jlink issue

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

download use jlink issue

1,325 Views
caibai
Contributor III

Keil MDK : 5.23

CHIP : LPC824M201

Jlink dirver: V5.12f

i configure CRP as NO_ISP mode

; <h> Code Read Protection
;   <o> Code Read Protection  <0xFFFFFFFF=>CRP Disabled
;                             <0x12345678=>CRP Level 1
;                             <0x87654321=>CRP Level 2
;                             <0x43218765=>CRP Level 3 (ARE YOU SURE?)
;                             <0x4E697370=>NO ISP (ARE YOU SURE?)
; </h>
                IF      :LNOT::DEF:NO_CRP
                AREA    |.ARM.__at_0x02FC|, CODE, READONLY
                DCD     0x4E697370
                ENDIF

                AREA    |.text|, CODE, READONLY

i download with jlink several times then it said that

TIM截图20171217153059.png

jink log as follow

TIM截图20171217153206.png

how to recovery chip?

Labels (1)
6 Replies

1,055 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thank you for your interest in NXP Semiconductor products and 
for the opportunity to serve you.
I've attached a guide about recovering the LPC MCU, please refer to it for details.
Hope this helps.

Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,056 Views
caibai
Contributor III

thank you for reply,

but i can't connect device by jlink and error message is

***Jlink Error: DAP error while reading AHB-AP IDR.

0 Kudos

1,056 Views
jeremyzhou
NXP Employee
NXP Employee

Hi cai bai,

Thanks for your reply.

I'd like to know whether the LPC824 can enter the ISP mode or ISP.

If yes, Flash Magic tool supports erase feature which can recover the chip.

Please give it a try.

pastedImage_1.png

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,056 Views
caibai
Contributor III

LPC824 can't enter ISP, it can't be use Flash Magic to connect deivce,

now i disable CRC (set value to 0xFFFFFFFF at 0x000002FC) but it also can't to connect after first download image to flash.

0 Kudos

1,045 Views
jeremyzhou
NXP Employee
NXP Employee
In my opinion, the MCU definitely is able to enter ISP mode unless the CRP protection be enabled.
So I'd highly recommend you to check the code whether may override the original value of the 0x000002fc.

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,045 Views
caibai
Contributor III

thank you for reply, now i can goto ISP mode and download success,but when i check nReset Pin, the voltage only 2.0V,some times  only 1.0V, MCU input voltage is 3.0V?

0 Kudos