Skip to content

Add support for APM32F072#3631

Open
rhgndf wants to merge 2 commits into
hathach:masterfrom
rhgndf:apm32f072
Open

Add support for APM32F072#3631
rhgndf wants to merge 2 commits into
hathach:masterfrom
rhgndf:apm32f072

Conversation

@rhgndf

@rhgndf rhgndf commented May 2, 2026

Copy link
Copy Markdown
Contributor

The SDK is at https://global.geehy.com/uploads/tool/APM32F0xx_SDK_V1.8.6.zip, no git repo available for get_deps.py as far as I can tell apart from an old version at https://github.com/GeehySemi/APM32F072-USB-TSC-MOUSE/tree/master

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected across 2233 targets. View Project Dashboard →

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds TinyUSB device-controller support for the Geehy APM32F072 MCU, which uses the same FSDEV USB IP as STM32 parts. A new BSP family for the APM32F072 development board is introduced and the FSDEV port is extended with an APM32 variant header.

Changes:

  • New OPT_MCU_APM32F0XX option and FSDEV variant wiring (TUP_USBIP_FSDEV_APM32, fsdev_apm32.h selecting USBD_BASE/USBD_IRQn, 1KB PMA).
  • New hw/bsp/apm32f0xx family (CMake + Make builds, family.c board init using HSI48 + CRS, board files for apm32f072_dev_board).
  • Documentation/board listing updates in README.rst and docs/reference/boards.rst.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/tusb_option.h Defines OPT_MCU_APM32F0XX (2700) under Geehy.
src/common/tusb_mcu.h Maps APM32F0XX to FSDEV with APM32 variant and 1KB PMA.
src/portable/st/stm32_fsdev/fsdev_common.h Includes new fsdev_apm32.h when TUP_USBIP_FSDEV_APM32 is set.
src/portable/st/stm32_fsdev/fsdev_apm32.h New APM32 FSDEV variant: IRQ list, int enable/disable, connect/disconnect.
hw/bsp/apm32f0xx/family.mk Make build for APM32F0xx family using Geehy SDK.
hw/bsp/apm32f0xx/family.cmake CMake build for APM32F0xx family.
hw/bsp/apm32f0xx/family.c Clocks, LED, UART stubs, UID, IRQ forwarding for the family.
hw/bsp/apm32f0xx/boards/apm32f072_dev_board/board.{h,mk,cmake} Board definitions for APM32F072 dev board.
README.rst Adds Geehy APM32 F072 row to supported CPU list.
docs/reference/boards.rst Adds Geehy/APM32F072 dev board entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HiFiPhile

Copy link
Copy Markdown
Collaborator

Hi, which board is it ? I can only find https://global.geehy.com/design/hardware_detail/49

@rhgndf

rhgndf commented May 31, 2026

Copy link
Copy Markdown
Contributor Author

It's an unnamed board which looks like this:

Product listing picture:
image

Anyway I got this a while back and currently isn't that interesting anymore since it is no longer the lowest cost mcu with usb dfu/isp and gcc/clang support available on jlcpcb.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants