LPC55s28 Firmware Update script over Flexcomm0 UART

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

LPC55s28 Firmware Update script over Flexcomm0 UART

7,823 Views
Eiffel
Contributor I

Hi Team,

 

We need to update LPC55S28 controller using our host application (Linux) over Flexcomm0 (UART) interface. Can you please provide steps and scripts to do the same. 

 

 

Thank you.

0 Kudos
Reply
9 Replies

7,778 Views
Kp_krishna
Contributor I

Hi Team,
We are using the NVIDIA Jetson TX2 NX with 64bit kernel,Pascal GPU + ARMv8 CPU as a host.
We have flashed the application binary from the host imxrt controller (MIMXRT106SDVL6B) using the python script that you have shared.
We have to flash the application binary to lpc controller(LPC55S28) using the host processor.(Nvidia)

https://www.flashmagictool.com/

This application supports only on Windows,we are using the Linux platform.
Could you check and update whether any tool or script is there to flash the lpc controller from the host which supports Linux.

@jinu_mohan  @Eiffel  @ZhangJennie  @kerryzhou            

0 Kudos
Reply

7,805 Views
jinu_mohan
Contributor I

Hi Zhang jennie

there is no linux distirbution of flash magic tool available in the given link.

https://www.flashmagictool.com/download.html

could you please provide A similar tool in linux  

 

@ZhangJennie @Eiffel 

0 Kudos
Reply

7,752 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

Sorry I didn't receive system update of your last reply. I saw it quite this morning.

You use Linux system. Thus please use blhost for firmware update. blhost.exe is under LPC55S28 MCUXpresso SDK folder, together with blhost User's Guide.pdf, including the detail instructions. 

Please make sure the LPC in UART ISP  mode when using blhost download image.

Have a nice day,

Jun Zhang

0 Kudos
Reply

7,742 Views
Kp_krishna
Contributor I

Hi team,

We have received the response from the lpc controller(LPC55S28) by entering into the UART ISP boot mode using the blhost application from the host.

But we have tried flashing application binary(.hex) from the host(attached the command below).

“sudo ./blhost -p /dev/ttyTHS2,115200 -V -- flash-image lpcxpresso55s28_freertos_hello.hex erase”

The response is successful, but the flashed image doesn't reflect while checking the logs of lpc controller.

Could you please check and update about the issue?

Attached the log of list of memory in Lpc controller and logs of flash image using blhost

@jinu_mohan @Eiffel @ZhangJennie @kerryzhou 

0 Kudos
Reply

7,723 Views
Kp_krishna
Contributor I

Hi Team,
We have tried the “write-memory” command in blhost application for flashing the lpc controller(LPC55S28) from host.(Controller is in UART ISP mode)
But it failed,returned the error status.(logs are attached)
We have used the address (0x00000000) to flash the application image to the lpc controller.
Could you please check and update to which region(address) we have to flash the application image to lpc controller using blhost in Linux machine from host and share the full image file including bootloader to flash the lpc controller?

0 Kudos
Reply

7,717 Views
Kp_krishna
Contributor I

Hi team,

We have been able to upgrade the application binary to the LPC controller(LPC55S28) by entering into the UART ISP mode using the blhost application from the host.

We have to flash the bootloader alone to lpc controller(LPCBut 55S28) from the host.

Could you please check and update the steps to flash bootloader to lpc controller using blhost application in Linux machine from host and please share the bootloader image file for lpc controller?

Could you let us know if there is any way to flash the bootloader and application binary as a single file from the host using blhost in Linux machine and please share the full image file(bootloader and application binary) ?

@ZhangJennie@Eiffel @jinu_mohan 

0 Kudos
Reply

7,708 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

When we use blhost +UART ISP  to download image or erase Flash., we use on chip boot rom. That's to say, the bootloader is already programed in Flash when it is out of the factory. User doesn't need to burn another bootloader.

This on-chip bootloader code is not sharable to external. 

The user application code is developed by user. You can also use SDK demo code for example led blinky to generate an application bin file to test this function.

I ever tested that performing below command can burn application code to Flash without issue in UART ISP mode:

$ sudo ./blhost -p /dev/ttyACM0  -- write-memory addr myapp.bin

Thanks,

Jun Zhang

 

 

 

0 Kudos
Reply

7,797 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI 

LPC55S28 Supports flash programming through In System Programming (ISP) commands over UART
interface (Flexcomm 0) with auto baud.

I recommend you use FlashMagic as programming tool. It is very simple to use. 

https://www.flashmagictool.com/

Please make sure LPC55S28 is in ISP mode when programming.

 

Thanks,

Jun Zhang

0 Kudos
Reply

7,600 Views
Eiffel
Contributor I

Hi Team, 

How can we jump to ISP mode from application code in LPC55s26 and LPC55s28?

I have already tried this link : 

https://community.nxp.com/t5/LPC-Microcontrollers/Configure-LPC55-to-enter-re-invoke-ROM-Bootloader-...

That is not working for us. 

Can you please tell the register settings to put board ISP mode without using external pins.

 

Thank you.

0 Kudos
Reply