...
Getting nRF52840DK programmer ready:
Download the nRF SDK and the
configure_nRF_to_low_VDD.zip
file attached above and unzip them.Move the nRF board firmware to a specific level of hierachy
{Location you unzipped the nRF5 SDK to}\DeviceDownload\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\examples\MyProjects
(My Project folder does not exist, you will need create a folder and rename it to MyProject)Copy the unzipped
configure_nRF_to_low_VDD.zip
files under MyPorjects folder, the structure should beexamples\MyProjects\configure_nRF_to_low_VDD\
. You should see thepca10056
folder,blinky.eww
,main.c
,uicr_config.h
under this path.Open
{Location you unzipped the nRF5 SDK to}\DeviceDownload\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\examples\MyProjects\configure_nRF_to_low_VDD\pca10056\blank\ses\EVA6_1_8v-REG0_test.emProject
with Segger embedded studioIMPORTANT Connect the nRF to the computer, but do not have scum connected to the nRF. You need flash the firmware first. Make sure the NRF Power Source switch on board is selected to VDD.
In Segger Embedded Studio, use shortcut Ctrl+T then Ctrl+l (lowercase L) compile the project and use J-Link to flash the nRF.
There is a little switch labeled NRF power source. Move it from the VDD position to the USB position. The nRF chip and all LEDs should turn off.
Connect a second USB cable to the other port on the nRF .
The nRF should be turned on again. LEDs should be dimmer. Confirm output voltage VDD is 1.8V.The shortcut is Ctrl+T, to connect J-Link, and Ctrl+T, L to program the nRF.
Clone Thomas' repo and checkout branch develop_12 https://github.com/filmak/SCuM-programmer/tree/develop_12
Open
{Location you cloned the repo}\SCuM-programmer\scum-programmer\02_firmware_nRF52840-DK\scum-programmer.emProject
with Segger embedded studioIn Segger Embedded Studio, compile the project and use J-Link to flash the nRF. The shortcut is Ctrl+T then , to connect J-Link, and Ctrl+l (lowercase T, L ) to flash program the nRF.
LEDs will blink in circular pattern when you use Thomas’s program.
If you see an error about a core_cm4.h file not found or similar, go to Tools -> Package Manager and install the CMSIS-CORE Support Package and the Nordic Semiconductor nRF CPU Support Package (then restart Segger Embedded Studio)
There is a little switch labeled NRF power source. Move it from the VDD position to the USB position. The nRF chip and all LEDs should turn off.
Connect a second USB cable to the other port on the nRF .
The nRF should be turned on again. LEDs should be dimmer. Confirm output voltage VDD is 1.8V.
To bootload (after completing wiring setups below), enter command:
python test_bootload.py
. You will need to manually change the COM port and the path to the binary file.If errors importing serial, run
pip install pyserial
...