How to start with STM32duino - STM32G030F6
Posted: Wed Jan 19, 2022 11:18 am
Hi! A newbie questions here. I wanna use STM32G030F6 [1] for my project. I don't want to use any development board, but bare standalone chip with internal oscillator. Now my questions. How do I do it using STM32duino?
I've found out that STM32duino supports STM32G030F6 as it was added last month to the supported boards (generic STM32G030F6 [2]). How do I start now? In Arduino IDE I can find the board and I can compile a code for the board but I have no idea what are, for instance, GPIO pins called in Arduino world. Also, the chip has two hardware serials. If I simply use "Serial.begin(xxxx)" what serial on what pins will it use? How to use the second serial? Does Arduino supports that?
I want to use the internal oscillator so I have fewer components on the board. Do I have to somehow tell to compiler to compile it for the internal oscillator on the specific frequency or I just compile it as is?
I wanna program the STM32G030F6 using SWD with ST-link V2.
I just don't know how to start with STM32duino as I don't fully understand the concept. I've always done projects with Arduino Uno or standalone atmega328p-au.
I'll greatly appriciate any suggestions and advices. Thank you.
Krystof
[1] https://www.st.com/en/microcontrollers- ... l#overview
[2] https://github.com/stm32duino/Arduino_C ... xx/G030F6P
I've found out that STM32duino supports STM32G030F6 as it was added last month to the supported boards (generic STM32G030F6 [2]). How do I start now? In Arduino IDE I can find the board and I can compile a code for the board but I have no idea what are, for instance, GPIO pins called in Arduino world. Also, the chip has two hardware serials. If I simply use "Serial.begin(xxxx)" what serial on what pins will it use? How to use the second serial? Does Arduino supports that?
I want to use the internal oscillator so I have fewer components on the board. Do I have to somehow tell to compiler to compile it for the internal oscillator on the specific frequency or I just compile it as is?
I wanna program the STM32G030F6 using SWD with ST-link V2.
I just don't know how to start with STM32duino as I don't fully understand the concept. I've always done projects with Arduino Uno or standalone atmega328p-au.
I'll greatly appriciate any suggestions and advices. Thank you.
Krystof
[1] https://www.st.com/en/microcontrollers- ... l#overview
[2] https://github.com/stm32duino/Arduino_C ... xx/G030F6P