CommunityGD32Cores / ArduinoCore-GD32

Arduino core for GD32 devices, community developed, based on original GigaDevice's core
Other
92 stars 33 forks source link

Will this ArduinoCore support GD32F350 in the future? #62

Closed ldicdican closed 1 year ago

ldicdican commented 2 years ago

Please add support on this m4 gd32 chip - GD32F350. Thanks.

maxgerhardt commented 2 years ago

We already have a variant of that: https://github.com/CommunityGD32Cores/ArduinoCore-GD32/tree/main/variants/GD32350G_START

What exactly is your chip / board?

ldicdican commented 2 years ago

My chip is GD32F350CBT6 has USBFS support, HDMI and DAC, is it compatible with GD32350G? Took a peek on the 350G pin definitions and didn't find the USBFS pin define. Sorry for my being ignorant on this.

maxgerhardt commented 2 years ago

USB is a whole different matter, this core does not yet have any USB capability. (But SPL projects like this would have). USB functionality is worked on separately as that is a whole different beast.

The "GD32350G-START" board has a GD32F350G8 chip on it. According to GD32F350xx_Datasheet_Rev1.5 page 9+10 the chips have the same peripherals as a CB but different number of total GPIO pins due to their package and larger flash + SRAM. It should be relatively easy to at least setup a blinky test for your board.

Does you board have an on-board high speed crystal (8MHz)?

ldicdican commented 2 years ago

20220327_095154 20220327_094515

Actually, this chip is not on a dev board, it is on a broken vape(e-cigar) unit given to me by a friend. I was amazed that this device uses GD32 ARM M4 procie, which has LCD, buttons and some sort of sensor (?). It even has programming (SWD) pins which I labeled based on its datasheet.

I just wanna play around with this chip since I have a clone ST-Link which I use on my first bluepill board.

Thank you very much for your help and maybe I will just tinker on the GPIO pins and will ignore/keep out of my mind about the USB functionality. Btw it has also DAC, I2S, and TSI.

maxgerhardt commented 2 years ago

Arduino core aside, you may just want to try out https://github.com/CommunityGD32Cores/gd32-pio-projects/tree/main/gd32-spl-blinky with regards to uploading and debugging. (That is, with board = genericGD32F350CB in the platformio.ini)

And yes, the X1 component looks like a crystal so it should have a HSE.

ldicdican commented 2 years ago

Thank you Max, will let you know if I have successfully make it work with ST-Link(uploading) and this gd32-spl-blinky sample.

maxgerhardt commented 1 year ago

Fixed in https://github.com/CommunityGD32Cores/ArduinoCore-GD32/commit/66300c8b0ccf97789a3f96a26f6ca05cdee61b9d