LPC54018JxM Program flash using UART

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC54018JxM Program flash using UART

ソリューションへジャンプ
1,920件の閲覧回数
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,894件の閲覧回数
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,905件の閲覧回数
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,895件の閲覧回数
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 件の賞賛
返信