THingy:53 not able to detected in nRF Programmer

Hello,

Initially I was flashing software for peripheral_LBS by connecting Thingy directly through USB.

Later as per project requirement I tried to flash the code using VSC and somehow after that if I want to flash a precompiled firmware file to thingy USB then nRF programmer no longer detecting the Thingy.Even Though I am pressing the SW1 and SW2 together as mentioned here:

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_thingy53_gs.html#getting-started-with-precompiled-firmware-samples

but still it is not showing the device.

What do you think could be the reason of this issue?

Regards,

Divya

  • Hi Divya,

    Later as per project requirement I tried to flash the code using VSC

    Did you use an external debug probe when programming the Thingy with VS Code? If so, did you make sure to program the device with a sample or application that included MCUboot?

    Best regards,

    Marte

  • Hello Marte,

    Yes, I have used external programmer that is Jlink and I have tried to upload the code provided in this link:

    https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/peripheral_lbs

    and it has been flashed successfully and since after that the device is not detectable.

    Regards,

    Divya

  • Hi Divya,

    Did peripheral_lbs include MCUboot when you programmed it? Since you used an external debug probe there is a chance that you removed the bootloader, and if that is the case you will not be able to program it through USB. You will need to use an external debug probe to program the bootloader again.

    Best regards,

    Marte

  • Hello Marte,

    I do not know how to check if "peripheral_lbs include MCUboot when I programmed" but Now it is working for me. But I have few queries:

    1. How can I check that my code include MCUboot? 

    I have noticed that when I am using "thingy53_nrf5340_cpuapp" then for build then it is working perfectly. whereas when I am using "thingy53_nrf5340_cpuapp_ns" for build then it build and flashed the code but my decide was not able to detect and this problem has been raised. 

    2. Can you please clarify and help me to understand that why it is happening?

    Thanks & Regards,

    Divya

  • Hi Divya,

    Divya_uni_ulm said:
    1. How can I check that my code include MCUboot? 

    You can check in the build folder where your project is built. If your application is built with MCUboot enabled you should have an mcuboot folder inside the build folder.

    Divya_uni_ulm said:

    I have noticed that when I am using "thingy53_nrf5340_cpuapp" then for build then it is working perfectly. whereas when I am using "thingy53_nrf5340_cpuapp_ns" for build then it build and flashed the code but my decide was not able to detect and this problem has been raised. 

    2. Can you please clarify and help me to understand that why it is happening?

    When you use thingy53_nrf5340_cpuapp_ns as build target you are building for the non-secure domain. If the sample has support for non-secure it should still work, as then the sample should automatically include the Trusted Firmware-M. Which sample are you seeing this in?

    Best regards,

    Marte

Related