LPC54018JxM Program flash using UART

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

LPC54018JxM Program flash using UART

Jump to solution
810 Views
mohd_
Contributor III

Hi,

Is it possible to program the flash on LPC54018JxM using UART?

As I know, there is no command for Copy RAM to Flash in UART ISP commands, is there any other way to program the flash using UART? I tried using the Write to RAM command, but the code will disappear upon reset.

Thank you.

0 Kudos
1 Solution
784 Views
mohd_
Contributor III

Hi @Alice_Yang ,

Thank you for the information.

For anyone who want to program lpc54018 flash using UART, you can try following ways;

  • Program the flashloader.bin to lpc54018 RAM using UART ISP command. 
  • Close the serial terminal then open command prompt to use blhost.
  • Use below blhost commands to program the flash. Replace COM7 with your serial port name.
    • blhost -p COM7 -- get-property 12
    • blhost -p COM7 -- fill-memory 0x0000b000 4 0xc0000004
    • blhost -p COM7 -- configure-memory 0xa 0x0000b000
    • blhost -p COM7 -- get-property 25 0xa
    • blhost -p COM7 -t 100000 -- flash-erase-region 0x10000000 0x100000
    • blhost -p COM7 -t 100000 -- write-memory 0x10000000 led_blinky.bin
    • blhost -p COM7 -- reset
  • Done!

Best Regards.

 

 

View solution in original post

0 Kudos
2 Replies
795 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello mohd_,

You can using blhost with UART isp port to program, detail steps please refer to:

 

https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Use-blhost-to-program-erase-LPC540xxM-LP... 

 

BR

Alice

0 Kudos
785 Views
mohd_
Contributor III

Hi @Alice_Yang ,

Thank you for the information.

For anyone who want to program lpc54018 flash using UART, you can try following ways;

  • Program the flashloader.bin to lpc54018 RAM using UART ISP command. 
  • Close the serial terminal then open command prompt to use blhost.
  • Use below blhost commands to program the flash. Replace COM7 with your serial port name.
    • blhost -p COM7 -- get-property 12
    • blhost -p COM7 -- fill-memory 0x0000b000 4 0xc0000004
    • blhost -p COM7 -- configure-memory 0xa 0x0000b000
    • blhost -p COM7 -- get-property 25 0xa
    • blhost -p COM7 -t 100000 -- flash-erase-region 0x10000000 0x100000
    • blhost -p COM7 -t 100000 -- write-memory 0x10000000 led_blinky.bin
    • blhost -p COM7 -- reset
  • Done!

Best Regards.

 

 

0 Kudos