Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Getting nRF52840DK programmer ready:

  1. Download the nRF SDK and Segger Embedded Studio for ARM. Use v5.70a (don’t use v6.xx as it leads to compilation errors).

  2. Download the nRF SDK. v17.1.0 should work. You do not need any of the SoftDevices files, so feel free to uncheck them.

  3. Download the configure_nRF_to_low_VDD.zip file attached above and unzip themit.

  4. 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 the MyProjects folder does not exist, you will need create a folder and rename it to MyProject MyProjects).

  5. Copy the unzipped configure_nRF_to_low_VDD.zip files under MyPorjects MyProjects folder, so the structure should be examples\MyProjects\configure_nRF_to_low_VDD\. You should see the pca10056 folder, blinky.eww, main.c, uicr_config.h under this path.

  6. 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 studio.

  7. IMPORTANT Connect the nRF to the computer, but do not have scum SCuM connected to the nRF. You need flash the firmware first. Make sure the NRF Power Source switch on board is selected to VDD.

  8. In Segger Embedded Studio, compile the project and use J-Link to flash the nRF. The shortcut is Ctrl+T , to connect over J-Link, and Ctrl+T, L to program the nRF.

  9. 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 be off.

    1. The switches on the nRF should be configured as follows (orientation being the usb ports are facing upward and to the right):

      1. Switch in bottom left: set to DEFAULT

      2. Switch in center right: USB

      3. Switch in top right: ON

  10. Connect a second USB cable to the other port on the nRF .

  11. The nRF should be turned on again. LEDs should be dimmer. Confirm output voltage VDD is 1.8V.

  12. Clone Fil' repo and checkout branch develop_12 https://github.com/filmak/SCuM-programmer/tree/develop_12

  13. Open {Location you cloned the repo}\SCuM-programmer\scum-programmer\scum-programmer.emProject with Segger embedded studio

  14. In Segger Embedded Studio, compile the project and use J-Link to flash the nRF. The shortcut is Ctrl+T, to connect J-Link, and Ctrl+T, L to program the nRF.

    1. After the programming is done, the LEDs will blink in circular pattern.

    2. 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)

  15. 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.

    1. If errors importing serial, run pip install pyserial

...