platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
407 stars 312 forks source link

Request to add board manifest for generic STM32G030C8 #662

Open julim29 opened 2 years ago

julim29 commented 2 years ago

Hi,

I'm making this PR because I had to do a little bit of research to configure a certain microcontroller to work with the platformio framework, and I thought that maybe this could help someone.

Currently I'm working with the STM32G030C8 microcontroller, it seems that it's still quite new in the market and that because of this there are no well known development boards for it.

I knew that there were different manifest files to support generic STM32 microcontrollers but unfortunatelly mine wasn't on that list, so I had to make a custom embedded board manifest file as it's explained here.

To make this board manifest json file as reusable as I could, I tried to make it as similar to the rest of generic manifest files such as the following ones:

Regarding the testing of this manifest file, I've tested compiling different "hello world" programs using all frameworks listed ("arduino", "cmsis", "libopencm3", "stm32cube") and they worked flawlessly.

In my current application I can only communicate with the microcontroller using stlink, that's the only upload/debug protocol that I could test, and again, it works fine.

Even though this was the only upload/debug protocol that I could test, I listed all the standard supported protocols in the STM32 family as they were listed in the others manifest files, I don't see any reason why they shouldn't work.

Thanks for reading.

brainelectronics commented 1 year ago

@julim29 thanks for your contribution. I've also added support for this controller with #622. I hope there will be a lot of merges in the future