Need Help in Creating a custom Platform for PY32F002A for Puya Boards

Creating a new PlatformIO platform is a very involved task. It needs a lot of background knowledge on how PlatformIO works internally (platforms, packages, frameworks, board definitions, builder scripts) as well as how microcontroller firmwares are created in general (compiler options, linker scripts, startup assembly files, upload programs like OpenOCD, debugger probes, …).

A good point to start reading would be

Also know that someone already created a PlatformIO platform for PY32F0 chips:

Adding a new board definition, updating or adding new framework packages and modifying the builder scripts to work for those chips will be easier than creating a new platform from scratch. But for that, you would have to at least read through all previous links to get started.

1 Like