Program flash from command line without IDE

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

Program flash from command line without IDE

1,491 次查看
nickwallis
Senior Contributor I

Hi all,

Is it possible to program flash from a command line without either (1) installing the IDE at all or (2) with the IDE installed, but without invoking the IDE?

This is for JTAG/SWD programming using an external programmer like a J-LINK, not something that communicates with the bootloader using USB or UART.

thanks!

0 项奖励
3 回复数

1,479 次查看
ErichStyger
Senior Contributor V

1,465 次查看
nickwallis
Senior Contributor I

Thanks @converse  @ErichStyger , this seems to work OK for me from the command line but I do see the following error (?) message at the end, does it matter?

regards Nick

..........

Nc: Sectors written: 4, unchanged: 0, total: 4
Nc: Closing flash driver MIMXRT1060_SFDP_QSPI.cfx
Nt: Loaded 0x330F0 bytes in 4028ms (about 51kB/s)
Nt: Reset target (system)
Nc: Starting execution using system reset
Nc: state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access
Xw:
Nc: error closing down debug session - Nn(05). Wire ACK Fault in DAP access

 

0 项奖励

1,487 次查看
converse
Senior Contributor V

Yes. Read the User manual - the section on the GUI flash tool describes how you can use the tool from the command line. You do need the whole product installed though.

 

depending on your target, you may also be able to use Flash Magic. Also Segger have a stand-alone tool, but I think you have to purchase it for commercial use.