Add support for APM32F072#3631
Conversation
|
There was a problem hiding this comment.
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_APM32F0XXoption and FSDEV variant wiring (TUP_USBIP_FSDEV_APM32,fsdev_apm32.hselectingUSBD_BASE/USBD_IRQn, 1KB PMA). - New
hw/bsp/apm32f0xxfamily (CMake + Make builds,family.cboard init using HSI48 + CRS, board files forapm32f072_dev_board). - Documentation/board listing updates in
README.rstanddocs/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.
|
Hi, which board is it ? I can only find https://global.geehy.com/design/hardware_detail/49 |
|
It's an unnamed board which looks like this: 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. |

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