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

transfert program using nRF USB port for nRF52840 DK

Hello,

Is it possible to transfer a program using the "nRF USB" on the nRF52840 DK (the on next to the 4 push bottoms) ? Until now, I was transferring the code with the other usb port (the one above the button cell) and it was ok. I want to use the other nRF USB port because it is connected directly to the nRF52840 and not through the pca10056.

the classical command : nrfjprog -f NRF52 --reset

results to ERROR: There is no debugger connected to the PC

If I want to design my own PCB, what should I do to transfer my code to the nRF52 chip ?

Thank you very much for the help, Swip

Parents
  • Hi,

    In order to transfer code(program your chip), you normally use a J-Link programmer/debugger and program the chip over the SWD pins. There is an on-board Segger J-link programmer on the nRF52840-PDK you can use to program your own custom PCB. See this infocenter page for more information on that.

    As endnode states, if you want to program the device over USB, you will first need to program the nRF52840 over SWD with a USB bootloader. After you have the bootloader in place, you can do DFU over the nRF52840 USB port. We have a USB bootloader located in the folder SDK_folder\examples\dfu\experimental_bootloader_secure_usb. See this infocenter page for more information.

Reply
  • Hi,

    In order to transfer code(program your chip), you normally use a J-Link programmer/debugger and program the chip over the SWD pins. There is an on-board Segger J-link programmer on the nRF52840-PDK you can use to program your own custom PCB. See this infocenter page for more information on that.

    As endnode states, if you want to program the device over USB, you will first need to program the nRF52840 over SWD with a USB bootloader. After you have the bootloader in place, you can do DFU over the nRF52840 USB port. We have a USB bootloader located in the folder SDK_folder\examples\dfu\experimental_bootloader_secure_usb. See this infocenter page for more information.

Children
No Data
Related