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

Adapting light switch example to nrf52840 dongle.

Hello,

I have been trying to get the light switch server from the Mesh SDK examples running on a nrf52840 dongle.

The dongle does not show in the Mesh app when scanning for nodes.
All the onboard LEDs turn on, which from what I could find online means that an error has happened somewhere.

I have tested the server on a DK where it seems to run fine. I can connect to it from the Mesh app.
I have verified the dongle by running the blinky and ble_app_blinky example projects, These seem to work fine.

I have used the following links to guide me through the process:
https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial
https://devzone.nordicsemi.com/f/nordic-q-a/46656/problem-in-setting-nrf-52840-dongle-as-proxy-server-for-light-switch-example

So in short:
1) Changed the preprocessor definition to BOARD_PCA10059.
2) Added the code from Bjorn to simple_hal.c.
3) Build the project in segger.
4) Programmed the dongle with the resulting hex + a softdevice.

I am using:
Mesh SDK 3.2.0
nRF5 SDK 15.3.0
nRF Connect 3.3.0
nRF Mesh app 2.1.0

I have tried the following softdevices:
s140 6.0.0
s140 6.1.0
s140 6.1.1

Please do let me know if I need to provide any extra information.

Parents
  • Hi,

    Following everything from the nRF52840 Dongle Tutorial should generally lead to a working application, so it is hard to tell what may be missing.

    The best way to figure out what happens is to connect the Dongle to a programmer, either using a 10 pin Tag Connect cable or soldering wires directly on the Dongle. Not having a debugger connected severely limits the debugging capabilities. From your description it sounds like you get an assert and end up in the fault handler. From a debug session you should easily get file and line number.

    By the way, have you tested the project that Bjørn provided in that other DevZone thread, on the Dongle?

    Regards,
    Terje

Reply
  • Hi,

    Following everything from the nRF52840 Dongle Tutorial should generally lead to a working application, so it is hard to tell what may be missing.

    The best way to figure out what happens is to connect the Dongle to a programmer, either using a 10 pin Tag Connect cable or soldering wires directly on the Dongle. Not having a debugger connected severely limits the debugging capabilities. From your description it sounds like you get an assert and end up in the fault handler. From a debug session you should easily get file and line number.

    By the way, have you tested the project that Bjørn provided in that other DevZone thread, on the Dongle?

    Regards,
    Terje

Children
No Data
Related