Nrf52840 Custom Board Not Detected After erase from VSCode

We are facing strange issue we have this board https://www.raytac.com/product/ins.php?index_id=47

whenever we flash any firmware it works fine but if we erase from vs code it no more detectable to flash or do anything again ?

using nrf connect sdk 2.7.0 already have brick 5 boards so worried to try on more

Parents
  • Hello,

    Have you created a custom board with the Raytac module in the link, or are you using a Raytac development board? In either case, it would be helpful to see a picture of your setup (board + debugger) along with your board schematics. I can't think of any obvious reasons why the board would become bricked after an erase.

    Best regards,

    Vidar

  • Here is schematic for reference 

    connection using Segger and have connected 3.3v and GND from TTL and SWDIO and SWDCLK from segger 
    it flashes other boards but not if already flashed and trying to reflash this custom board 

    Here is the error message from nRF connect sdk Desktop Programmer when try to connect and flash

    14:44:42.102 Failed "reading readback protection status for application core". Error: code: 1, description: Generic, message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1)
    14:44:42.313 Error: Failed with exit code 1. One or more batch tasks failed: - [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1), code: Generic. Message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1).
    14:44:42.313 Error: Failed with exit code 1. One or more batch tasks failed: - [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1), code: Generic. Message: Batch task protection-get failed, [Probe] Device error: Failed to write DebugPort register 2: Unknown Error in J-Link DLL (error code =-1).

  • Please see if you are able to recover the board using nrfutil from the commnand line:

    nrfutil device recover

  • Hi  had tried nrfjprog --recover but no luck
    I see it only happens if have erased board 

  • OK, I can't think of any obvious reasons for this. Please provide as much relevant details as possible. Were you using a board from Raytac?

Reply Children
Related