Can not reset Thingy 53 back to its original Edge Impulse FW.

Hi, Last week I received a Thingy 53 in addition to an nRF7002 DK and nRF52840 dongle from Nordic, first let me thank the Nordic team for that.

Let me summarize the issue I'm having with my Thing 53:

As I received my device I registered to Edge Impluse web site and created a new project. Using nRF Edge Impulse Mobile App, I easily added my Thingy 53 to my project and started recording 10 sec samples from the light sensor (I was thinking of making classification based on the RGB values received). I setup my training and test sets, created my Impulse with success and managed to go to the end of the process to deployment, chose Nordic Thingy 53 from the 'Build Firmware' section and built my FW, then I set my device in DFU mode by pressing sw2 and turning it on, in the Programmer Tool, I saw and chose the Thingy 53 in MCU boot mode, I 'wrote' the .zip file created by Edge Impulse, successfully finished. Turned my device off and on and tried to connect to it with the Edge Impulse Mobile App, the device was discoverable, however never managed to connect to it.

That's why I tried to go to "factory settings" for the Thingy 53 (with Edge Impulse FW on it for sure), lloked up the internet tried several builds which failed (From Edge Impulse) , finally after reading the recent tickets about similar topic about Thingy 53 in this platform, I saw that the supposed FW was "edge_impulse_1.0.0_thingy53_nrf5340.zip" which was included in the "2022-08-03-precompiled-application-firmware" included in the device's page in Nordic (https://www.nordicsemi.com/Products/Development-hardware/Nordic-Thingy-53/Downloads?lang=en#infotabs)

So i "wrote" this zip file using the same process (DFU mode & Programmer tool). After writing the fw, I can again see the device from the nRF Edge Impulse Mobile App, however when I try to connect to it, the RGB LED turns 'RED' and the connection times out. 

I tried several other things without success and I see from the tickets that similar issue is reported by others 

  • Case ID: 302592

To summarize I need the the correct procedure & FW to set the Thingy 53 to its original state as it was shipped to me. 

Thank you for your time.

Selim Gullulu

  • Hi Selim, I've tried to reproduce your issue and I'm not sure if I am able to do so. Here are the steps I took: 

    1. Reprogrammed the Thingy:53 with thingy53_fw_2022-08-03-precompiled-application-firmware\2022-08-03-precompiled-application-firmware\Edge_Impulse using my JLink Base compact. (As I had installed another sample which did not provide USB UART). Red, Green and Blue blinked to indicate start.

    2. Connected to Thingy:53 using the nRF Edge Impulse app v1.0.4 (iOS 16.2). This would turn on RED LED.

    3. Data Aquisition --> record new data i.e. updown for motion recognition project. No issues, RED LED still on. 

    4. Deployment --> build project. First time fails on upload, then I click on retry. Starts to upload and applies update. RED LED turns off. Thingy:53 disconnected. 

    5. Reconnect under Devices. RED LED on.

    6. Switched to nRF Programmer. Try to install nRF Machine Learning. Device is not visible in list. RED LED still on.

    7. Switch back to nRF Edge Impulse. Error: "Lost Device Rremot Management Connection. Disconnecting from device." RED LED still on.

    8. Try to reconnect in nRF Edge Impulse. Not possible --> Connection Timed out. 

    9. Turn off and on Thingy:53. Reconnect in nRF Edge Impulse. RED LED on. Disconnect in nRF Edge Impulse. RED LED off.

    10. Switch to nRF Programmer. Install nRF Machine Learning. Device is visible in list. Update without issues. 

    11. Thingy:53 blinking as per nRF Machine Learning --> device changed name to EI Thingy53. Reinstall Edge Impulse through nRF Programmer with success. Asked to forget device in app --> removed.

    12. Switch back to nRF Edge Impulse. Connect to device. RED LED on. iPhone screen turned off and lock: Error: Lost Device Remote Management connection. Disconnecting from device. RED LED still on.

    13. Try to reconnect in nRF Edge Impulse. Connection time out.

  • Hi Oyvind, thanks a lot for your efforts. At the moment the situation is the same for me, as I load the edge impulse Fw using the nRF connect for desktop -> Programmer. After turning the Thingy off and on, I still can not connect with the nRF Edge Impulse App, the led goes RED and the connection always times out.

    I created a ticket at the Edge Impulse forum as well:

    --------

    https://forum.edgeimpulse.com/t/thingy-53-cant-connect-with-edge-impulse-app-after-rolling-back-to-initial-edge-impulse-fw/6573

    Edge Impulse team's reply:

    Hi @drselim !
    Your problem looks like an issue with CPUNET firmware (Bluetooth core), not with Edge Impulse firmware. However, I recommend getting an external programmer (e.g. nRF5340DK) and trying to perform a full-erase chip and flash from scratch using the firmware from the Nordic website.
    Let me know if you have any progress or update on this topic.

    Best regards,
    Mateusz

    -----------

    I was thinking of doing the proposal, I ordered a 10 pin SWD cable for connection between the 7002 DK and the Thingy 53 and waiting for it to arrive, As soon as I receive it I'll update the ticket here and at edge impulse..

    I think that I somehow managed to create a corrupt firmware with Edge Impulse Studio website (I did not use the mobile app, I used it just to get sensor logs, then I switched to studio web) to create the ML model and the firmware. And now I can not remove / repair that corruption with the nrf connect desktop -> programmer tool. 

    Regards

    Selim

  • drselim said:
    I was thinking of doing the proposal, I ordered a 10 pin SWD cable for connection between the 7002 DK and the Thingy 53 and waiting for it to arrive, As soon as I receive it I'll update the ticket here and at edge impulse..

    Yes, at this time I would agree that the next step is to reprogram the device using an external programmer as you propose. Make sure to perform the full erase and then try to reprogram the Edge Impulse sample from the procompiled package using the Programmer app in nRF Connect for Desktop.

  • Thank you Oyvind, I'll let you know when I perform it. I also documented my project in a video, you can take a look at it if you'd like:

    https://youtu.be/dQrAdGYdvfs

  • drselim said:
    Thank you Oyvind, I'll let you know when I perform it

    Looking forward to hear back from you. 

    drselim said:
    I also documented my project in a video, you can take a look at it if you'd like:

    This is excellent! Great work!

Related