Can we run the nordic nrf52840 firmware on a xenon directly

that the question can i put the nrf52840 firmware from nordic on the xenon . Since i got a couple of those board at home, i was starting to make a sensor for my bike(ant+) . The particle team isn’t planning at the moment to port those feature. So before ordering a nrf52840 dk(at a nice 75$ cad) i was just asking if it gonna work.

If it’s the wrong section i am really sorry.

Edit: After a couple of hours running after the white rabbit tail. I found some info.

  1. Adafruit did make a port for the nrf52 to arduino. the xenon, argon and baron are supported
    link: https://github.com/adafruit/Adafruit_nRF52_Arduino

  2. if you mess up your xenon(i don’t know for the 2 other) Jared Wolff did make a recovery tutorial
    link: https://www.jaredwolff.com/how-to-unbrick-particle-mesh-using-jlink/

  3. The best info for what i want is Mark Zachmann. I did already make it workable.
    link:https://medium.com/home-wireless/using-segger-studio-and-nordic-sdk-with-particle-xenon-91e34aeb632a

now is there a easier way to make it work with the debugger (dap-link) and the arm ide web that would be nice.

Edit 2: everything is finally working with segger. Just did have to switch on using the dap-link(debbuger tool that was a buy option) for the ant protocol it’s not complex once you now where to get the info(nrf site is terrible).

Here is good info to: https://learn.sparkfun.com/tutorials/nrf52840-advanced-development-with-the-nrf5-sdk/all#ble-blinky-example

Heightball

2 Likes

Hey @heightball, I’ve had decent success debugging nRF based code using J-Link + Visual Studio Code.

It was crazy easy to set up compared to some of the (very) out of data recommendations like Eclipse and Netbeans. (I’ve done them all! haha)

Here’s my debug profile for Visual Code:

  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Cortex Debug",
      "cwd": "${workspaceRoot}",
      "executable": "./_build/nrf52832_xxaa.out",
      "request": "launch",
      "type": "cortex-debug",
      "servertype": "jlink",
      "device": "nrf52",
      "interface": "swd",
      "armToolchainPath": "/Users/jaredwolff/gcc-arm-none-eabi-6-2017-q2-update/bin"
    }
  ]
}

The important thing is getting the .out file. Then changing the paths to match your system.

You’ll need to install the C++ Plugin and Cortex-Debug plugin.

If you do go down this rabbit hole feel free to ask questions since I have a working setup here. (I just don’t remember every single detail of setting it up!)

1 Like

i use segger for the moment with j-link(debugger that was comming with the xenon). Now everything work with the nrf sdk even ant and ant+

1 Like

Could you use nrf sdk with zephyr in VSCode on the xenon if you have a j-link