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

PlatformIO: Nordic nRF51/52 dev/platform is out!

PlatformIO team is pleased to announce the release of Nordic nRF51/52 development platform. This release introduces many new features and performance improvements. The notable changes are as follows:

  • Add support for BlackMagic, J-Link, ST-Link external tools for debugging and programming using PIO Unified Debugger
  • Add support for official "nrfjprog" program tool (issue #17)
  • Allow declaring of a custom programming tool
  • Allow overriding of PROGNAME (custom firmware name)
  • Update Arduino nRF5 core to 0.4.0
  • Update ARM mbed framework to 5.7.3

We would be thankful for any feedback!


We recommend PlatformIO IDE for VSCode for better experience

Parents
  • I have the following tools:

    nRF52-DK
    VS Code v1.42.1
    PlatformIO v3.1.0

    My simple project is unable to communicate with the nRF52 board through the debugger.
    Here is some build output. Note the reference to "NRF52832"


    Processing nrf52_dk (platform: nordicnrf52; board: nrf52_dk; framework: mbed)
    Verbose mode can be enabled via `-v, --verbose` option
    CONFIGURATION: docs.platformio.org/.../nrf52_dk.html
    PLATFORM: Nordic nRF52 4.0.0 > Nordic nRF52-DK
    HARDWARE: NRF52832 64MHz, 64KB RAM, 512KB Flash

    Is there a tutorial on getting started? Do I have an incorrect project setting?

    [env:nrf52_dk]
    platform = nordicnrf52
    framework = mbed
    board = nrf52_dk
    I'm getting:
    Failed to launch GDB: .pioinit:13: Error in sourced command file:
    Remote communication error. Target disconnected.: Success.
  • Thank you. I did not have the tool-jlink package installed initially. I did configure upstream environments in my platformIO.ini and somehow managed to get the jlink drivers installed.

    I should be able to flash/debug using just the USB SWD interface correct? I see 3 Segger Windows Device driver packages installed on my Win10 desktop


    Do I need to invoke the JLinkGDBServer? I'm using the following JLinkGDBServer -If SWD -Speed 4000 -Device nRF52
    I get an error "No emulators connected via USB". I get the same error when running from the IDE without the GDBServer. My nRF52 is plugged into a USB connection using the USB cable I received and the LD5 LED is flashing

    I don't need to setup debug headers or another other form of JTag interface, correct? Help is greatly appreciated.

Reply
  • Thank you. I did not have the tool-jlink package installed initially. I did configure upstream environments in my platformIO.ini and somehow managed to get the jlink drivers installed.

    I should be able to flash/debug using just the USB SWD interface correct? I see 3 Segger Windows Device driver packages installed on my Win10 desktop


    Do I need to invoke the JLinkGDBServer? I'm using the following JLinkGDBServer -If SWD -Speed 4000 -Device nRF52
    I get an error "No emulators connected via USB". I get the same error when running from the IDE without the GDBServer. My nRF52 is plugged into a USB connection using the USB cable I received and the LD5 LED is flashing

    I don't need to setup debug headers or another other form of JTag interface, correct? Help is greatly appreciated.

Children
Related