Program flash from command line without IDE

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

Program flash from command line without IDE

3,191件の閲覧回数
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 返答(返信)

3,179件の閲覧回数
ErichStyger
Specialist I

3,165件の閲覧回数
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 件の賞賛
返信

3,187件の閲覧回数
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.