Error flashing custom board w/ nRF52832 (unable to read)

I'm trying to flash a custom board (schematics in this ticket - Schematic/Layout review request) using a Jlink EDU mini and keep running into an error message saying it's failing to read or erase memory. I've seen suggestions on other posts that running nrfjprog --recover can remove the read protection mechanism, but when I ran that (with --log, which I've attached) it also failed.

 

4274.log.log

I've had the flash process succeed sometimes, but the board doesn't act any differently to before (can't control the GPIO) so I'm assuming that's another issue.

Any ideas for what could be causing this?

Thanks

  • Hello,

    I am unsure what might be going wrong here. I doubt it’s a hardware issue since this is a custom board.

    I've had the flash process succeed sometimes, but the board doesn't act any differently to before (can't control the GPIO) so I'm assuming that's another issue.

    Does this mean the system works sometimes but throws this error intermittently? If so, it could potentially be a power issue. Please verify that the voltage levels on the VDD pin of your custom board are within the acceptable range for the nRF52 (typically 1.7V to 3.6V).

    Additionally, could you share the J-Link version you are using? I couldn’t find that information in the logs (apologies if I missed it).

    Kind Regards,

    Abhijith

  • Hi, sorry the "Hardware" tag was more referring to the MCU itself, I wasn't sure what the categories meant. I can't reliably get the system to flash, and it hasn't done so recently so I wouldn't say it does so intermittently. I have been checking the supply voltage periodically and its always 3.3V +/- 50mV.

    The J-Link version is the EDU mini, and I've attached the log file for when I try to flash instead of recover in case that helps.

    Thanks

    3755.log.log

  • Hi

    Abhijith is currently out of office, so I'm taking over this ticket while he's away.

    The J-Link version Abhijith is referring to I think is the J-Link firmware on your computer. Please make sure you have J-Link v7.94i or later installed on your computer. Can you also share some info on what firmware you're trying to flash onto your board here?

    Best regards,

    Simon

  • Hi Simon,

    Thanks for your response. I had multiple versions (one of which was v7.80) so I removed them all and installed the latest (v8.12), which is still giving me the same error (no read access for JLink). I'm not sure what firmware info would be useful, but given that I can flash the application to the nrf52dk I have successfully (and the custom design's MCU section was a direct copy of that), I would suspect something in my config files is incorrect (I'll attach the files for the custom board).

    The general function of the firmware is to initialise BLE advertising and upon connection, send packets containing measurements from the IMU.

     Tennis Sensor board files.zip

Related