LPC54018JxM Program flash using UART

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

LPC54018JxM Program flash using UART

跳至解决方案
1,905 次查看
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 项奖励
回复
1 解答
1,879 次查看
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 项奖励
回复
2 回复数
1,890 次查看
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 项奖励
回复
1,880 次查看
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 项奖励
回复