Taking a look at STM32G0 series

Anything not related to STM32
dannyf
Posts: 447
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

a ready-made board is much more convenient for sure. a minimalist board has its own appeal too.
ag123
Posts: 1798
Joined: Thu Dec 19, 2019 5:30 am
Answers: 28

Re: Taking a look at STM32G0 series

Post by ag123 »

a 'minimalist' board is more like a module, hence all the pins are up to one to assign.
i'd think stm32g030f6 is a decent chip for 'minimalist' boards as the 'adapter pcb's are readily available.
the larger TSSOP/QFN 32 or 48 pin ones are somewhat more challenging, while adapter boards are available, many of them used a 'square' outline of 2.54 pitched pins, that basically rule out placing directly on a breadboard, and rather often one may want to have the HSE crystal permanently affixed and maybe a usb connnector etc. For those, i'd guess it'd be 'better' to use pre-designed PCBs e.g. pill style boards etc.
dannyf
Posts: 447
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

qfn is beyond my soldering skills. never tried tssop48. tssop32 is doable for me.
dannyf
Posts: 447
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

I just found out that there is this STM32G031 chip that has considerably more features than the STM32G030.

I'm ordering some F8 versions to try on.

One downside with those TSSOP20 pacakages: they don't have OSC_OUT pins so the use of an external crystal is not an option for those chips. But their HSI is quite accurate out of the box.
ag123
Posts: 1798
Joined: Thu Dec 19, 2019 5:30 am
Answers: 28

Re: Taking a look at STM32G0 series

Post by ag123 »

nice find, it seemed the main things are some low poewer LPUART and low power timer utilities.
my main fuss is that it still has 8 kB sram, while adequate for 'light weight' apps, could become an issue with 'fatter' kernels.
have not tried stm32duino with either yet
dannyf
Posts: 447
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

I'm used to coding on chips with ram measures in bytes :).

So 8kb is more than enough for me.

32kb flash is a sweet spot as well. My base code comes in at 4 to 8KB so plenty of space left for applications.

Will report back when I get my hands on them.
dannyf
Posts: 447
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

STM32G030 and STM32G031 might be the same chip.

STM32G031 has a (32-bit) TIM2, while STM32G030 does not. However, this code blinks an led on STM32G030. Yes, TIM2 works on STM32G030 where it is not supposed to have a TIM2.

Code: Select all

	if (TIM2->CNT > F_CPU / 2) {			//has enough time passed?
		TIM2->CNT = 0;						//if so, reset tim2 counter
		led_flp();							//flip our led
	}
haven't tried other peripherals but would be surprised if they don't work.
dannyf
Posts: 447
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

I can also confirm that LPTIM1 and LPTIM2 both work on STM32G030, inspite of the fact that neither shows up in the datasheet :)
ag123
Posts: 1798
Joined: Thu Dec 19, 2019 5:30 am
Answers: 28

Re: Taking a look at STM32G0 series

Post by ag123 »

cool to find the 'extra' timers and LP timers :lol:
dannyf
Posts: 447
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

LPUART1 exists on STM32G030 - not supposed to :)

I think STM32G030 is the same chip as STM32G031. Not complaining here.
Post Reply

Return to “Off topic”