Skip to content

Add Geehy builtin target support and align cmd erase behavior #1932

Open
WuKaiLy wants to merge 4 commits intopyocd:developfrom
WuKaiLy:main
Open

Add Geehy builtin target support and align cmd erase behavior #1932
WuKaiLy wants to merge 4 commits intopyocd:developfrom
WuKaiLy:main

Conversation

@WuKaiLy
Copy link
Copy Markdown

@WuKaiLy WuKaiLy commented Mar 25, 2026

Summary

  • add builtin target support for the current Geehy MCU families
  • align pyocd cmd erase behavior with standalone erase by resetting and halting before flash operations

Included targets

  • APM32F003x6
  • APM32F035x8
  • APM32F030x8 / APM32F030xC / APM32F051x8 / APM32F072xB / APM32F091xC
  • APM32F103xB / APM32F103xC / APM32F103xE
  • APM32F105xC / APM32F107xC
  • APM32F402xB / APM32F403xB
  • APM32F405xG / APM32F407xG / APM32F411xE / APM32F415xG / APM32F417xG / APM32F427xG / APM32F465xE
  • APM32M35xx
  • BMP561
  • G32A1445 / G32A1465
  • G32M3101x8
  • G32R430xB
  • G32R501xx / G32R501Dxx

Validation

  • G32A1465: cmd erase/load/readback compare passed
  • APM32F003x6: erase/load/readback compare passed
  • APM32F411xE: erase/load/readback compare passed
  • APM32F427xG: erase/load/readback compare passed
  • APM32F035x8 / APM32M35xx: basic erase/readback checks passed
  • APM32F103xB: erase/load/readback compare passed

WuKaiLy and others added 4 commits March 20, 2026 13:42
Align commander erase with the standalone erase flow by resetting and halting the target before starting flash operations, so multicore Geehy targets can run post-reset init reliably.
Add static builtin targets for the current Geehy MCU families so the devices can be used directly without external target scripts.

Include the grouped flash algorithms, memory maps, target registration updates, and the G32A14xx security-aware connect flow needed for erase, load, and readback support.
Add Geehy builtin target support and align cmd erase behavior
@TeoMahnic
Copy link
Copy Markdown
Collaborator

Hi @WuKaiLy, thank you for your contribution.

Our current preference is to rely on CMSIS-Pack based target support wherever possible, and we aim to keep new additions aligned with that approach.

Based on a review of the devices listed in this PR and a search on the keil.arm.com device database, CMSIS-Pack support appears to be available for the majority of them. Given this, adding internal target support would not be in line with our approach.

Additionally, please separate the commands.py changes into a different PR, as they are not directly related to the internal target additions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants