I'm playing with the nRF52840 dongle (PCA10059) but I'm not able to program it using nRF Connect (v2.6.1).
I open the sw and connect the dongle, choose the COM port, the dongle starts to blink red and memory regions are correctly read from the dongle.
After that, I choose the hex file but none of the buttons on the right is enabled, except for the "Reset" button.
I also tried other nRF Connect's apps (like RSSI Viewer and Bluetooth Low Energy) and they are flashed correctly on the dongle.
I think both dongle and software are woking correctly so: am I missing some step to flash the desired hex file on the board?
For now I've tried ready-to-use hex files from examples/thread/experimental (taken from nRF5SDKforThreadv011084a130f) and also some self-made builds of the last openthread cli and ncp binaries.
Any help is welcome, I have the feeling that I'm making a silly mistake.
Thank you in advance
Did you try to follow the steps found in the nRF52840 Dongle Programming Tutorial?
When upgrade completes the device will reset and the dongle will no longer show up in nRF Connect unless the application used DFU Trigger Library is used, as it is no longer in DFU mode.
Which of these steps were you unable to do? Step 5?
Hi AndreasF, thank you for you reply, I already tried the steps above but the point is that I cannot execute step 5 since mi "Write" button remains disabled.
For the records, I tried both pressing the sideway Reset hardware button and the trigger library. Just as I said, the dongle goes correctly in DFU mode (I can see the red led pulsing) and the nRF Connect app can read the momory regions.
Thank you again
Can you try to uninsall and reinstall the Programmer app?
I tried to uninstal and re-install.
I've tried both the installer version (v2.6.0) and the updated version (2.6.1) but the "Write" button still remains disabled.
Here the nRF Connect application log:
2019-01-14T13:25:29.943Z INFO Application data folder: C:\Users\paolo\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
2019-01-14T13:25:30.035Z DEBUG App pc-nrfconnect-programmer v1.0.1 official
2019-01-14T13:25:30.035Z DEBUG App path: C:\Users\paolo\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
2019-01-14T13:25:30.035Z DEBUG nRFConnect 2.6.0 is supported by the app (^2.6.0)
2019-01-14T13:25:30.035Z DEBUG nRFConnect path: C:\Users\paolo\AppData\Local\Programs\nrfconnect\resources\app.asar
2019-01-14T13:25:30.035Z DEBUG HomeDir: C:\Users\paolo
2019-01-14T13:25:30.035Z DEBUG TmpDir: C:\Users\paolo\AppData\Local\Temp
2019-01-14T13:25:30.043Z INFO Using nrfjprog library 9.8.1, pc-nrfjprog-js 1.4.1
2019-01-14T13:25:44.756Z INFO DFU trigger interface found, changing to bootloader...
2019-01-14T13:25:45.177Z INFO Using USB SDFU protocol to communicate with target
2019-01-14T13:25:45.191Z INFO Protocol Version: 1 found
2019-01-14T13:25:45.193Z INFO Hardware: 52840 found
2019-01-14T13:25:45.196Z INFO Firmware: Bootloader found
2019-01-14T13:25:45.196Z INFO Firmware: Application found
2019-01-14T13:25:50.372Z INFO Parsing HEX file: C:\Temp\nRF52840\nRF5SDKforThreadv011084a130f\examples\thread\experimental\cli\uart\hex\nrf52840_xxaa.hex
2019-01-14T13:25:50.375Z INFO File was last modified at 20/11/2017, 10:46:13
2019-01-14T13:25:50.647Z INFO Data block: 0x00000000-0x000426F4 (0x000426F4 bytes long)
Thanks you again for your support
I think I have the solution to the problem, it is quite simple, and therefore I did not think about it.
The prebuilt hex files are configured for the nRF52840 DK, not the Dongle (different number of GPIOS, there is also a slight adjustment of FLASH and RAM addresses)
This also applies for projects from pca10056 folders (the projects you have built yourself).
Therefore, since the configuration is wrong, it is impossible to flash the device (click on the Write button).
I suggest you take a look at the Dongle Programming Tutorial for more information about programming the Dongle.