Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Feature: ArteryTek AT32F437/435 Read protection unlocking#1956

Open
ALTracer wants to merge 155 commits intoblackmagic-debug:mainfrom
ALTracer:feature/at32f43x-unrdp
Open

Feature: ArteryTek AT32F437/435 Read protection unlocking#1956
ALTracer wants to merge 155 commits intoblackmagic-debug:mainfrom
ALTracer:feature/at32f43x-unrdp

Conversation

@ALTracer
Copy link
Copy Markdown
Contributor

Detailed description

  • This is close to a new feature, but basically I cloned a couple existing functions and extended timeouts.
  • The existing problem is BMD internally timing out after 250ms after issuing a RDP1 degrade command (erase option bytes and write 0x5aa5) of which the latter takes ~14 seconds of DP WAIT because it is going through a mass erase of F437ZM 4032 KiB flash.
  • This PR solves it by using a couple different ADIv5 raw_access functions with extended timeouts and progress printout.

Tested to allow regression from RDP1 to Open state on AT-START-F437 via BMP or BMDA, via SWD or JTAG transport. I have no idea how to implement the same for CMSIS-DAP, JLink, FTDI and other backends. I don't expect this to be merged as-is, rather I publish a hacked working example of what must be done. Maybe there's a better way of repurposing existing drivers to not take up so much code flash of BMP (ENABLE_ARTERY is already opt-in). This is based on top of #1949 branch, just two new commits.

Your checklist for this pull request

Closing issues

@ALTracer ALTracer force-pushed the feature/at32f43x-unrdp branch 3 times, most recently from e253ad2 to 335b1b6 Compare October 26, 2024 15:42
@dragonmux dragonmux added this to the v2.1 release milestone Jul 26, 2025
@dragonmux dragonmux added the Enhancement General project improvement label Jul 26, 2025
gojimmypi and others added 25 commits March 8, 2026 09:20
…p USB, timing, and setting up the correct vector table address
@ALTracer ALTracer force-pushed the feature/at32f43x-unrdp branch from b5a0e30 to 1f8ff5b Compare March 29, 2026 22:04
@ALTracer ALTracer force-pushed the feature/at32f43x-unrdp branch from 1f8ff5b to a4b00b0 Compare April 5, 2026 17:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Enhancement General project improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants