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!
Hi @nickwallis ,
see as well https://mcuoneclipse.com/2020/12/05/standalone-and-command-line-programmer-with-mcuxpresso/
I hope this helps,
Erich
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
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.