This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flashing NRF51822 with STM32 JTAG Board

Hello,

I've been trying to figure out if this board with STM32F103 (www.aliexpress.com/.../2042650923.html

can directly plug into my debug board

(www.aliexpress.com/.../32399375500.html to program the NRF51822.

From what I have read, the JTAG port should plug directly in and work but I am still not too sure.

Can anybody clear this up for me.

Thanks!

Parents
  • I would highly recommend using a J-Link debugger (great quality and best support with nRF5 devices/Nordic tools). The next best option is probably pyOCD (open source and free, debuggers very cheap) where you can use a CMSIS-DAP/DAP-Link debugger.

    Note: you don't need to buy a J-Link debugger. If you already have (or want to buy) an nRF5 dev kit which has an on board J-Link debugger, and then use the Debug Out pins on the DK to use the J-Link debugger with a custom board.

    However if you are dead set on using STLink, you can use openOCD.

    This can serve as a guide for using OpenOCD to program nRF5 via STLink: github.com/.../Board:-yunjia-nrf51822

    Just note, openOCD is difficult to set up and it will cause you headaches but nRF5 devices are supported in openOCD.

Reply
  • I would highly recommend using a J-Link debugger (great quality and best support with nRF5 devices/Nordic tools). The next best option is probably pyOCD (open source and free, debuggers very cheap) where you can use a CMSIS-DAP/DAP-Link debugger.

    Note: you don't need to buy a J-Link debugger. If you already have (or want to buy) an nRF5 dev kit which has an on board J-Link debugger, and then use the Debug Out pins on the DK to use the J-Link debugger with a custom board.

    However if you are dead set on using STLink, you can use openOCD.

    This can serve as a guide for using OpenOCD to program nRF5 via STLink: github.com/.../Board:-yunjia-nrf51822

    Just note, openOCD is difficult to set up and it will cause you headaches but nRF5 devices are supported in openOCD.

Children
Related