Flash tool SWD/JTAG

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

Flash tool SWD/JTAG

3,320 次查看
LArmstrong1985
Contributor III

Hi,

I'm using a FRDM-K64F demo board as programmer to other board over JTAG/SWD and it works fine inside MCUXpresso where there is Flash Tool GUI.

I'd like to known if there is a standalone tools outside MCUXpresso for programming board like Flash Tool GUI or from command line. The firmware inside the FRDM-K64F is DAPLink.

Thank you very much.

4 回复数

3,219 次查看
ErichStyger
Senior Contributor V

Hi @LArmstrong1985 ,

good news: you can get your board programmed in a standalone or script way. See https://mcuoneclipse.com/2020/12/05/standalone-and-command-line-programmer-with-mcuxpresso/ how do this with any MCUXpresso supported board and debug probe, which includes of course your FRDM-K64F.

 

I hope this helps,

Erich

0 项奖励

3,294 次查看
ErichStyger
Senior Contributor V

Hi @LArmstrong1985 ,

thinking more about it, I think you could use the LinkServer for your DAPlink in command line mode. I see if I can collect some instructions for you to use (need to dig out my FRDM-K64F board for this).

Stay tuned,

Erich

3,295 次查看
ErichStyger
Senior Contributor V

Hi @LArmstrong1985 ,

Outside of the IDE you can use the GDB commandline capabilites. https://mcuoneclipse.com/2015/03/25/command-line-programming-and-debugging-with-gdb/ shows how you can do this with different GDB server implementations.

Keep in mind that the SEGGER and P&E licensing terms prevent you to use it for programming anything else than the chip on the FRDM-K64F, so you are on the right track with CMSIS-DAP.

As for CMSIS-DAP, you could consider use the same approach above but with OpenOCD. https://mcuoneclipse.com/2016/04/09/freertos-thread-debugging-with-eclipse-and-openocd/ describes how you could add it to Eclipse or use it standalone.

 

I hope this helps,

Erich

0 项奖励

3,301 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi fabiobenevento

   Do you mean, you want to download the firmware to the K64 without the IDE?

   If yes, you totally can use the JLINK commander.

    1. You can firmware your FRDM-K64 on board firmware to JLINK firmware

       The JLINK firmware can be found from this link:

  https://www.segger.com/downloads/jlink/OpenSDA_FRDM-K64F

 

     2. Generate the app firmware with .bin,.hex, etc   

     3. install the JLINK driver

     https://www.segger.com/downloads/jlink/JLink_Windows.exe

    4. Use the JLINK commander to download the app firmware

      commander is: loadfile app.bin 0x00 

    You need to connect the board at first.

 

Please try it on your side.

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry