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
  • Hi Jonathan,

    I tried the steps mentioned in the recovery of Thingy 91x guide.

    But the problem is, it is not even detecting SWD port.

    Error

    "C:\ncs>nrfutil device device-info
    Error: One or more device info tasks failed:
    * 506000160: Device error: Failed to configure Coresight: LOW_VOLTAGE (Generic)"

    Please let me know what is this issue pointing at.

    Thanks and regards,

    Vinay

  • 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

  • Hi Vinay, 

    Do you have the 10 pin debug pin cable connected? or only the USB?

    If the firmware on the nRF5340 is bugged in some way, it is only recoverable with external debugger. 

    What debugger are you using? 


    You can use something like this, should work. 


    I suspect that there is something that is not registering that the device is power from the dbug side of things. 

    Regards,
    Jonathan

  • Hi Jonathan,

    Yes I am using Jlink Ultra Plus debugger for flashing firmware using SWD.

    I have connected the board as shown in above picture.

    I am not able to flash the firmware need your help to understand the issue.

    Thanks and regards,

    Vinay

  • Hi Vinay, 

    Are there any missing pins on the adapter for the 10 pin cable you use there? Does the debugger + adapter and cable work fine with other devices, DK's or Thingy's 

    I dont have a Jlink Ultra Plus at hand so I can not test a 1 to 1 setup here. 

    It is possible that the device got damaged in some way, if the programming fail or was interrupted during the process but its unlikely, but not impossible. 

    I presume that this is the same setup that used when flashing it previously and it did not cause this issue?

    Regards,
    Jonathan

  • Hi Jonathan,

    As I have previously said, I have 2 Thingy 91x boards and I am able to flash one more 
    thingy 91x using Jlink Ultra plus using SWD connections and it doesnt give any issues.

    But this one board is not providing or able to flash any image or firmware using SWD interface or others.

    And when I connect Jlink ultra plus debugger it only shows 1 led and if I power on Thingy 91x, 2 led will be glowing in Jlink ultra plus. So I believe SWD power is available.

    Kindly please let me know any other issue is causing this problem.

    Thanks and regards,

    Vinay

Reply
  • Hi Jonathan,

    As I have previously said, I have 2 Thingy 91x boards and I am able to flash one more 
    thingy 91x using Jlink Ultra plus using SWD connections and it doesnt give any issues.

    But this one board is not providing or able to flash any image or firmware using SWD interface or others.

    And when I connect Jlink ultra plus debugger it only shows 1 led and if I power on Thingy 91x, 2 led will be glowing in Jlink ultra plus. So I believe SWD power is available.

    Kindly please let me know any other issue is causing this problem.

    Thanks and regards,

    Vinay

Children
Related