ArteryTek AT32F413 - Failed to erase/program

  • Hi,

    I'm using Artery AT32F413 with J-Link, and it seems erase and downloading fails on this chip. Here's what I experienced.

    1. After initiated connection, J-Link complains about secured part and prompted to unlock. After unlocking the chip, reading from flash memory works fine.

    2. Use erase command (with or without arguments) to initiate a mass-erase or sector erase, then I got the following error indicating there was a issue in RAMCode:


    3. Disconnect and connect using JLinkExe again, I still got the same secured part prompt with or without a power cycle to the target board. Still, reading protection status gives 0x5AA5 (not secured).

    Code
    J-Link>Mem32 0x1ffff800 1
    1FFFF800 = FFFF5AA5

    4. Using J-Flash on this device gives similar output, readback/erase always fails no matter the target RAM usage settings. (default 64k, however Artery only has 32k available by default).

    5. Using CMSIS-DAP mode with vendor supplied flash algorithm (CMSIS-Pack) worked fine. Tried using ISP mode to unlock and unsecure device, the unlock was a success, can erase device using CMSIS-DAP mode, still no luck with J-Link software.

    Thanks & Best Regards,
    Yilin Sun

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!