USB Firmware update compatibility wrt LPC55s69

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

USB Firmware update compatibility wrt LPC55s69

跳至解决方案
7,823 次查看
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 项奖励
回复
1 解答
7,761 次查看
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 项奖励
回复
12 回复数
7,810 次查看
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 项奖励
回复
7,788 次查看
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 项奖励
回复
7,808 次查看
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 项奖励
回复
7,818 次查看
Deeps_bang
Contributor III

hi Team,

Any suggestion on this issue??

0 项奖励
回复
7,816 次查看
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 项奖励
回复
7,784 次查看
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 项奖励
回复
7,773 次查看
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 项奖励
回复
7,709 次查看
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 项奖励
回复
7,685 次查看
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 项奖励
回复
7,657 次查看
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 项奖励
回复
7,762 次查看
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 项奖励
回复
7,775 次查看
Deeps_bang
Contributor III
Ok Jennie.
Thank you for the reply.
I will try with this.
0 项奖励
回复