USB Firmware update compatibility wrt LPC55s69

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

USB Firmware update compatibility wrt LPC55s69

Jump to solution
7,831 Views
Deeps_bang
Contributor III

hi Team,

 

"https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC54XXX-How-To-Use-USB-Port-To-Update-F..."

This article is useful and its wrt lpc54xxx.

We are working on LPC55s69 and planning to update firmware vis USB instead of ISP.

Is their any similar article/code project referencing LPC55s69 board.

If not, then can i use similar analogy as in article to implement  USB Firmware update for LPC55s69.

 

Thank you

0 Kudos
Reply
1 Solution
7,769 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Deeps_bang 

I just checked runBootloader(arg) is supported in LPC55(S)0x/1x.

Unfortunately, LPC55(S)2x/6x doesn't support it. LPC55(S)2x/6x doesn't have feature to enter ISP mode in source code. So far there is no specific dates  to provide a procedure to  perform this.

There is an aplication note regarding this : AN12327  Firmware Update Using Secondary Bootloader

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

You can refer this to development firmware update code with secondary bootloader.

Jun Zhang 

View solution in original post

0 Kudos
Reply
12 Replies
7,818 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Deeps_bang 

If LPC55, updating firmware via ISP USB is the same as this document.

But I suggset you using USB1 interface, the reason is documented here: https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC55-Don-t-Use-ISP-USB0-for-firmware-up...

Thanks,

Jun Zhang

 

0 Kudos
Reply
7,796 Views
Deeps_bang
Contributor III

HI Jennie,

  1. Our requirement is to enter Bootloader mode via USB , without using ISP Button for LPC55s69.

         which is best possible way to achieve this..?

    2.   Any suggestion for below issue ??

    In LPC54xxx -> iap_entry(API ) present in fsl_Flafhiap.h is used to reinvoke ISP.



     But in LPc55s69 -> No such API found in fsl_iap.h or fsl_iap.c. wrt SDK 2.12.0.

      so, how to achieve iap_entry() in LPC55s69??

 

Thank you.

 

 

0 Kudos
Reply
7,816 Views
Deeps_bang
Contributor III
Plz,Guide me to resolve this..

In LPC54xxx -> iap_entry(API ) present in fsl_Flafhiap.h is used to reinvoke ISP.



But in LPc55s69 -> No such API found in fsl_iap.h or fsl_iap.c. wrt SDK 2.12.0.

so, how to achieve iap_entry() in LPC55s69??
0 Kudos
Reply
7,826 Views
Deeps_bang
Contributor III

hi Team,

Any suggestion on this issue??

0 Kudos
Reply
7,824 Views
Deeps_bang
Contributor III

In LPC54xxx -> iap_entry(API ) present in fsl_Flafhiap.h  is used to reinvoke ISP.

 

But in LPc55s69 -> No such API found in fsl_iap.h or fsl_iap.c.  wrt SDK 2.12.0.

so, how to achieve iap_entry() in LPC55s69??

   

0 Kudos
Reply
7,792 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Deeps_bang 

 ROMBootloader provides API  runBootloader to enter ISP mode.
void(*runBootloader)(void *arg);
 
For example, in your code, add:
uint32_t arg = 0xEB120000;
runBootloader(arg);
 
Hope this helps,
Jun Zhang
0 Kudos
Reply
7,781 Views
Deeps_bang
Contributor III

Hi Jennie,

Tried with runBootloader(arg).

But getting Hardfault error.

This (arg =0xEB120000) value corresponds to what .

we are using LPC55s69JBD100 board.

Attaching the code for your reference.

 

Thank you

0 Kudos
Reply
7,717 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI Deeps_bang 
LPC55(S)2x/6x doesn't have feature to enter ISP mode in source code. LPC55(S)0x/1x has this feature but LPC55(S)2x/6x doesn't have. So far there is no specific dates to provide a procedure to perform this.

Have a nice day,
Jun Zhang

0 Kudos
Reply
7,693 Views
Deeps_bang
Contributor III

Hi Jennie,

Actually our application need this feature badly i.e Entering Bootloader mode via Software for LPC55s69JBD100 1B version board.

Please let me know if any update on this in Future from Technical team .

Mean while if any suggestions from your side for this problem statement is also welcome.

Thanks for guiding .

 

0 Kudos
Reply
7,665 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi 

This feature is available on the newer version devices described in the errata:

https://www.nxp.com.cn/docs/en/nxp/errata/LPC55S6x_ES.pdf

ZhangJennie_0-1671436616383.png

To get ROM API version, you can call:

 

get_rom_api_version();

 

To get the ROM patch version, you can use blhost:

 

>blhost -p COMx get-property 0x18

 

The date code can be found in the IC package marking (See datasheet).

ZhangJennie_1-1671436802258.png

 

There is no way to apply a ROM patch by user, this is only done during production testing of the parts.

 

Hope this will help you.

Jun Zhang

0 Kudos
Reply
7,770 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Deeps_bang 

I just checked runBootloader(arg) is supported in LPC55(S)0x/1x.

Unfortunately, LPC55(S)2x/6x doesn't support it. LPC55(S)2x/6x doesn't have feature to enter ISP mode in source code. So far there is no specific dates  to provide a procedure to  perform this.

There is an aplication note regarding this : AN12327  Firmware Update Using Secondary Bootloader

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

You can refer this to development firmware update code with secondary bootloader.

Jun Zhang 

0 Kudos
Reply
7,783 Views
Deeps_bang
Contributor III
Ok Jennie.
Thank you for the reply.
I will try with this.
0 Kudos
Reply