Programming Thingy:53 with Bluetooth Mesh sensor_server example

I have successfully built the Bluetooth Mesh sensor_server example, using the thingy53_nrf5340_cpuspp_ns build configuration.

But when I come to try and program the Thingy:53, it does not appear in the Connected Devices list, when connected to an nRF5340-DK board with a standard 10-pin cable (I used one from a STLink-V3). The RGB LED on the Thingy:53 illuminates on power up and cycles through the three colours a couple of times before going out, as it does when not connected via the 10-pin cable. When the Thingy:53 is connected via the 10-pin cable to the nRF5340-DK, the LEDs on the latter are not illuminated and neither appear in the Connected Devices list.

When I unplug and replug the USB cable to the nRF5340-DK board without the Thingy:53 connected, then the nRF5340-DK is detected and does appear in the Connected Devices list.

What else do I need to do for the Thingy:53 to be detected please?

I am using nRF Connect SDK v2.3.0 on Windows 11.

Parents Reply
  • Hi Elfving,

    With the switch in the centre VDD position, I confirm that the nRF5340-DK does appear on the Connected Devices list with the Thingy:53 connected to it via the 10-pin cable. Regardless of whether I connect via USB with the Thingy:53 already connected via the 10-pin cable, or connect it to the nRF5340-DK when it is already connected to USB, the Thingy:53 does not appear in the list of Connected Devices. Cycling the power switch on the Thingy:53 also has no effect.

     

    The list of Connected Devices shows the following:

    1050006835 (nRF5340-DK serial number)

         NRF5340_xxAA_ENGD

         VCOM1 COM26

         VCOM0 COM27

         RTT

    If I attempt to flash the sensor_server project that is built for Thingy:53 I get an error saying it can’t connect to a debugger.

    What else do I need to do please? Do I need to erase any application running on the nRF5340-DK first?

    Kind regards,

    Al

Children
  • Hi Elfving,

    With the switch in the centre VDD position, I confirm that the nRF5340-DK does appear on the Connected Devices list with the Thingy:53 connected to it via the 10-pin cable. Regardless of whether I connect via USB with the Thingy:53 already connected via the 10-pin cable, or connect it to the nRF5340-DK when it is already connected to USB, the Thingy:53 does not appear in the list of Connected Devices. Cycling the power switch on the Thingy:53 also has no effect.

     

    The list of Connected Devices shows the following:

    1050006835 (nRF5340-DK serial number)

         NRF5340_xxAA_ENGD

         VCOM1 COM26

         VCOM0 COM27

         RTT

    If I attempt to flash the sensor_server project that is built for Thingy:53 I get an error saying it can’t connect to a debugger.

    What else do I need to do please? Do I need to erase any application running on the nRF5340-DK first?

    I tried erasing the DK by clicking on the ellipsis (…)  to the right of the serial number, but I get a messge saying:

    ‘Error erasing device, See the Output tab for details.’

    But nothing is displayed on the Output tab.

    Kind regards,

    Al

  • Hello again

    alwalker said:
    Do I need to erase any application running on the nRF5340-DK first?

    That isn't necessary. I actually prefer having a default Blinky application running on it, just to confirm that I haven't accidentally flashed the wrong SoC.

    alwalker said:
    With the switch in the centre VDD position, I confirm that the nRF5340-DK does appear on the Connected Devices list with the Thingy:53 connected to it via the 10-pin cable

    Great! The center VDD position is the default. The USB option is refering the "nRF USB" on the other side of the DK, that would just power the nRF, and I don't think the Li-Po option would work for programming either.

    So, it should just show one device in the "connected devices" list, as it is referring to interface MCUs of the DK, not the SoCs on them. Currently there is just one interface MCU connected, the one on the DK.

    alwalker said:
    If I attempt to flash the sensor_server project that is built for Thingy:53 I get an error saying it can’t connect to a debugger.

    So this is our next issue. Can you make sure that the thingy has power, by for instance connecting it to a usb C? And could you also make sure that it is powered on by flipping its switch to "I" ?

    Regards, and have a good weekend!

    Elfving

  • Hi Elfving,

    I think I've made some progress. When I don't have the Thingy:53 switched on, In the list of Connected Devices, I see:

    1050006835 (nRF5340-DK serial number)

         VCOM1 COM26

         VCOM0 COM27

         RTT

    But when I switch it on, then I see an additional entry:

    1050006835 (nRF5340-DK serial number)

         NRF5340_xxAA_ENGD

         VCOM1 COM26

         VCOM0 COM27

         RTT

    Which I assume is the nRF5340 in the Thingy:53, so I select that for flashing. After failing the first time due to the readback protection, doing the --recover action then allowed it to be programmed correctly.

    So now I think I have both an nRF52DK programmed with the sensor_client application and the Thingy:53 programmed with the sensor_server application, but then running the nRF Mesh application on my iPad, no Proxy is found. Do you have any suggestions please?

    I note that neither the nRF52DK nor the Thingy:53 show any power on indication.

    Kind regards,

    Al

  • alwalker said:

    But when I switch it on, then I see an additional entry:

    I find it a bit strange how didn't see that the entire time, but no I don't think that is the Thingy per se. How are you selecting it for flashing? For some more details on this process, see here.

    Could you flash something to the Thingy that you can confirm works, like a Blinky?

    Regards,

    Elfving

  • Hi Elfving,

    I successfully built and flashed the basic blinky application to the Thingy:53 by selecting  NRF5340_xxAA_ENGD in Connected Devices. So this is how the thingy:53 appears.

    The red LED on the Thingy:53 now blinks on and off approximately once per second.

    So I think the issue is not that this entry wasn't appearing before, but rather that it wasn't  obviously identifying itself as the Thingy:53.

    So now that I've proven that it's possible to program the Thingy:53, and that I have both the sensor_server and sensor_client sample applications running on the Thingy:53 and nRF52DK respectively, how can I use these to build a Bluetooth Mesh (with the addition of more Thingy:53 modules) with the nRF Mesh application please?

    Kind regards,

    Al

Related