Program flash from command line without IDE

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

Program flash from command line without IDE

1,468 Views
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 Kudos
3 Replies

1,456 Views
ErichStyger
Senior Contributor V

1,442 Views
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 Kudos

1,464 Views
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.