Detailed description
- This is a new feature.
- The existing problems are described in #2229. Mostly ROM bootloaders not readable by default, and GDB not picking auto hardware breakpoints in there (Cortex-M FPB).
- The PR solves it by providing a method to advertise ROM regions to GDB, much like RAM regions.
Added (削除) small 2 KiB STM32F1 bootloader to GD32F303, medium 16 KiB AT32F403A bootloader, (削除ここまで) 16 KiB RP2040 bootrom, just to see flash impact of 192-200 bytes (else some of the functions might be eliminated as dead code by the compiler and/or the linker).
Tested in BMDA. Tested on blackpill-f4. Need to find out and add important "bootrom" regions to other targets, like RP2350.
Your checklist for this pull request
- I've read the Code of Conduct
- I've read the guidelines for contributing to this repository
- It builds for hardware native (see Building the firmware)
- It builds as BMDA (see Building the BMDA)
- I've tested it to the best of my ability
- My commit messages provide a useful short description of what the commits do
Closing issues
Fixes #2229.