how to enter ISP mode via software--LPC55S69

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

how to enter ISP mode via software--LPC55S69

3,662 Views
woshieric123456
Contributor II

Hi,

I want to use the built-in ROM bootloader to update the FW. I can drive the pin PIO0_5 to let LPC55S69 enter into the ISP mode. now I wanna know is there any method to let LPC55S69 enter into ISP mode via software(without drive the PIO0_5 low)?

I had a try to add the code below to my project, but the LPC55S69 can not enter into ISP mode.

PMC->AOREG1 |= (0x0A << 16);

NVIC_SystemReset();

dd
0 Kudos
14 Replies

2,040 Views
Deeps_bang
Contributor III

Hi ,

i am also trying for the same i.e enter ISP Via software for LPC 55s69.

my basic Qn is how to check with version via Software .??? 

and if you remember whats the final solution you arrived for this issue i.e enter isp Via software...

Regards,

Deeps

0 Kudos

2,036 Views
Deeps_bang
Contributor III

found that via this API : static inline uint32_t Chip_GetVersion(void) can get the chip version .

how about ISP mode entry via S/w?

 

0 Kudos

3,655 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi 

I guess you use LPC55S69 1B revision?

This code support LPC55S69 0A revision but not 1B.

If this feature is necessary for you, please let me know your application name ( What product do you work with 55s69 )? I can check it internally. You can send me community message if you don't want to share your application to public.

Best Regards,

Jun Zhang

0 Kudos

3,650 Views
woshieric123456
Contributor II

Hi Jennie,

yes, we use LPC55S69 1B reversion. we had made the decision that we won't use the LPC55S69 0A reversion.

i got the EVK-board and will get the board(LPC55S69 1B reversion) for our product.

i just use the led_blinky project from SDK to test this feature. will NXP provide the code like you do for 0A reversion let LPC55S69 enter into ISP mode via software?

dd
0 Kudos

3,641 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

For LPC55S69 1B, according to UM, no way to enter ISP mode with code. 

 

 

0 Kudos

3,632 Views
woshieric123456
Contributor II

Hi Jennie,

we can see the sentences below from page 135 of UM11126:

Entry through ROM API call.
– Used by application code to implement in field update using ISP mechanism

is this mechanism also just used for reversion 0A? not for reversion 1B?

dd
0 Kudos

3,625 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi 

"Entry through ROM API call.
– Used by application code to implement in field update using ISP mechanism."

This is true.

The APIs are used in the application to update the firmware of the device by calling the IAP APIs to process the SB file in the secure state. Through the IAP APIs, user can update the firmware of the device including the following features:
• Erase the flash region
• Program data into the flash region
• Enable the PRINCE region
• Update the CFPA data in the FFR region
• Make the device fall into FA mode

You can refer iap demo code in SDK, "flashiap1"

 

Thanks,

Jun Zhang

 

0 Kudos

3,615 Views
woshieric123456
Contributor II

Hi Jennie,

should we use the built-in ROM bootloader to let LPC55S69 enter into ISP via software or secure boot or?

dd
0 Kudos

3,608 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

NO. As I've already said some LPC( eg,LPC8xx) Boot Room support InvokeISP but LPC55 doesn't have.

LPC55 support ROM IAP functions as  I mentioned in my previous reply.

0 Kudos

3,599 Views
woshieric123456
Contributor II

Hi Jennie,

we can use blhost to update FW via USB, but the premise is we need to drive the ISP pin(PIO0_5) low to let LPC55S69 enter into ISP mode.

so my question is there any method to update the FW without driving the ISP pin low? 

dd
0 Kudos

3,585 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

>>so my question is there any method to update the FW without driving the ISP pin low? 

No method without driving ISP pin low.

 

In your case, to update firmware, you need to use secondary bootloader. See AN12327

https://www.nxp.com.cn/docs/en/application-note/AN12327.pdf

https://www.nxp.com/docs/en/application-note-software/AN12327SW.zip

this demo, you can set update flag to enter bootloader mode.

 

 

0 Kudos

3,579 Views
woshieric123456
Contributor II

Hi Jennie, 

Thx for your reply.

from page4~page6 in AN12327, the document tells us how to add image marker and image header by modify startup files based on IDE IAR and KEIL.

my question is how can we add image marker and image header by modify startup files based on MCUXpresso IDE?

dd
0 Kudos

3,557 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Did you use the AN12327SW from my above link?

Please check lpc55s69_dsbl_sdk2.8_mcux.zip inside.

0 Kudos

3,603 Views
woshieric123456
Contributor II

dd

dd
0 Kudos