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

nRF52840 and ST-Link V2

Hello

I have a cheap ST-link that I use heavylly to program STM arm cortex chip.

So my guess is that it should work for this case.

I am following this tutorial:

https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide/flashing-the-bootloader

Here is my current setup:

So my first issue was to find the P1 SWD pinout.

I could not find it in any documentation, I only found a blog article

I follow that connection.

I am not sure if I should plug both ST-link V2 and the dongle.

I tried both of them without success. 

I installed the following software:

nRF-Command-Line-Tools_10_12_1_Installer.exe

At first I tried to follow the tutorial but I got the following error:

C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin>nrfjprog -e -f nrf52
ERROR: There is no debugger connected to the PC.

For curiosity I check with ST-Link if something was found ( I know it will not work ) but actually I could see that ST-link see that something is connected on it and of course does not recognized the ARM.

So I believe that my connection could be correct.

I search many post but none seems to have similar issue.

Thanks,

/Eric

Related