Not able to flash Thingy91x: nrf5340

Hello Team,

I am not able to flash any firmware to nRF5340 which is available in Thing 91x.

I had tried peripheral_lbs example which was working fine. When I tried to reflash it with standard connectivity bridge application, 

it got stuck and I had tried multiple restarts and even tried multiple flashing. SWD Switch is changed to nRF53 still I am not able to flash any firmware to it.

Even I am not able to re flash peripheral_lbs example. Need your support. I am doubting I may have bricked it.

Thanks and regards,

Vinay

Parents Reply Children
  • Even with Jlink I have tried the same command,

    I am facing the same issue.

    Error

    "

    Error: One or more device info tasks failed:
    * 506000160: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).

    This might indicate that the debug port is unavailable. Double-check device power supply and SWD lines, and ensure that SWD is not disabled (Generic)

    "

    Thanks and regards,

    Vinay

  • Do you have the USB connected to the Thingy 91X as well the SWD connector ? and the device is powered on ?

    This guide from Hackster.io might be better at showing all the steps: https://www.hackster.io/Salmanfarisvp/thingy-91x-rescue-guide-5cb80e 

    Is it showing the SWD port when you select the nRF9151 ? 


    Regards,
    Jonathan

  • No its not showing SWD Connection and even I can find core when I connect nrf9151 or nrf5340 any core if you switch I cant find core in nrf programmer. Its showing unknown family. 

    Thanks and regards,

    Vinay

  • Hi Vinay,  

    Make sure you have updated the J-Link and nrfconnect tools just to be sure its not a software issue as well. 

    Try to wiggle the power switch a bit and push it all the way to the "on" position. In case there is a issue with the power switch. 

    Have you tested "nrfutil device reset" to see for both the nRF9151 and the nRF5340 to see if it register in the terminal. The nRF Programmer app might not always connect successfully. 

    For the nRF5340 have you run both of the following commands? 
    nrfutil device recover --x-family nrf53 --core Network --traits jlink
    nrfutil device recover --x-family nrf53 --core Application --traits jlink


    It seems that the issue could be HW related, like that the device is not power properly or that the debug connection over SWD is not ok, is the cable you use good, does it work on other devices without issues? 


    Regards,
    Jonathan

  • Hi Jonathan,

    I yes my jlink is of latest version. I have tried wiggling switch also now. 

    Yes I have tried "nrfutil device reset" it also failed for me. 

    And even I tried "nrfutil device recover --x-family nrf53 --core Network --traits jlink
    nrfutil device recover --x-family nrf53 --core Application --traits jlink" commands.

    I am getting this error

    "

    C:\ncs>nrfutil device recover --x-family nrf53 --core Application --traits jlink
    x Failed to recover 506000160, Device error: Setting the debug port SELECT register failed while powering up sys and debError: One or more recover tasks failed:
    * 506000160: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).

    This might indicate that the debug port is unavailable. Double-check device power supply and SWD lines, and ensure that SWD is not disabled (Generic)

    "

    I am powering it using type c usb cable. I believe other Thingy 91x device is getting powered on correctly. I dont think its cable issue because we have used same USB cable for both boards to power on.

    Please let me know what am I missing here.

    Thanks and regards,

    Vinay

Related