[SOLVED] Erase a secured ateml SAMD device

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Erase a secured ateml SAMD device

    Hi,

    I'm trying to flash an ATSAME51G19A on a CANBed M4 developer board (docs.longan-labs.cc/1030013/) using SWD. When I connect, I'm notified that the device is secured and that it needs to be unsecured using a mass erase of the internal flash. It seems to do something for a couple of minutes, repeating "Mass erase done!" but then fails at the end.

    Is there another way I could unsecure the device to allow for flashing?
















  • Hi,
    It seems like the unlock via mass erase does not work for your device.

    1) Is it possible to connect and read/write the device when selecting "Cortex-M4" as device name?
    2) Could you please send us a J-Link log file? How to enable:
    wiki.segger.com/J-Link_DLL#Enable_J-Link_Log_File

    Best regards,
    Fabian
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.