Detailed description
- This is a new feature.
- Currently there's no easy way to extend SRAM of AT32F403A via
monitor option commands because EOPB0 is out of reach for the normal 16-byte driver.
- The PR solves it by conditionally bumping the option byte ranges.
Past first commit see my work of adding yet more part ID lists for other families in AT32F4 lineup. This is probably getting unmanageable, so I started incorporating F_SIZE and "Product ID" readouts from UID (in their DESig analog). If this is fine, e.g. does not result in problems for RDP1-enabled targets, then all such lists can be dropped or gated under ENABLE_DEBUG to not hog precious BMF flash -- it only needs to know flash parameters (banks, sector size, total size), not exact package & pinout. I may move this to a separate PR (and a split translation unit) as no users have probably asked for F421, F413 or F425. F423 and F402/F405 are plain unimplemented (F405 with USB HS PHY would be nice to have though). I have none of these chips to test on.
Your checklist for this pull request
Closing issues
Allows operating Arterytek User System Data, including Flash Access Protection enable/disable ops.
## Detailed description
* This is a new feature.
* Currently there's no easy way to extend SRAM of AT32F403A via `monitor option` commands because EOPB0 is out of reach for the normal 16-byte driver.
* The PR solves it by conditionally bumping the option byte ranges.
Past first commit see my work of adding yet more part ID lists for other families in AT32F4 lineup. This is probably getting unmanageable, so I started incorporating F_SIZE and "Product ID" readouts from UID (in their DESig analog). If this is fine, e.g. does not result in problems for RDP1-enabled targets, then all such lists can be dropped or gated under ENABLE_DEBUG to not hog precious BMF flash -- it only needs to know flash parameters (banks, sector size, total size), not exact package & pinout. I may move this to a separate PR (and a split translation unit) as no users have probably asked for F421, F413 or F425. F423 and F402/F405 are plain unimplemented (F405 with USB HS PHY would be nice to have though). I have none of these chips to test on.
## Your checklist for this pull request
* [x] I've read the [Code of Conduct](https://github.com/blackmagic-debug/blackmagic/blob/main/CODE_OF_CONDUCT.md)
* [x] I've read the [guidelines for contributing](https://github.com/blackmagic-debug/blackmagic/blob/main/CONTRIBUTING.md) to this repository
* [x] It builds for hardware native (see [Building the firmware](https://github.com/blackmagic-debug/blackmagic?tab=readme-ov-file#building-black-magic-debug-firmware)) ...and overflows flash
* [x] It builds as BMDA (see [Building the BMDA](https://github.com/blackmagic-debug/blackmagic?tab=readme-ov-file#building-black-magic-debug-app))
* [x] I've tested it to the best of my ability
* [x] My commit messages provide a useful short description of what the commits do
## Closing issues
Allows operating Arterytek User System Data, including Flash Access Protection enable/disable ops.