Taking a look at STM32G0 series

Anything not related to STM32
ag123
Posts: 1653
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Taking a look at STM32G0 series

Post by ag123 »

i see :D
dannyf
Posts: 446
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

I have most of the operational bugs worked out with the py32f002a, using a code base from stm32f030.

And I have learned to recover quickly from jtah/swd losing connection.

It turns out that I was wrong earlier that while the py32f002a has a lot of the functionality of py32f030, it doesn't have all.

Still a good chip for its amazing value.
ag123
Posts: 1653
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Taking a look at STM32G0 series

Post by ag123 »

i took a look at a datasheet, stumbled into in a google search
https://www.lcsc.com/search?q=PY32F002
https://datasheet.lcsc.com/lcsc/2303271 ... 292060.pdf
they are apparently fairly low costs
but that flash 20k and sram 3k is on the 'low' side for ARM mcus
but that they have rather interesting SOP8 and SOP16 pinouts
interestingly, AliX sellers are marking up the price quite a bit so much that they cost as much as a STM32G030 or G031.
dannyf
Posts: 446
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

I got mine from lcsc.

They support external crystal in tssop20 packaging. The G in the same packaging does not.
dannyf
Posts: 446
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

i got pretty much all up and running on the py32.
1. has tmr3/16/17 - gaining 6 additional pwm channels.
2. has uart2 - limited pin availability however, due to the packaging.
3. has not be able to get the pll to work.

tmr14 on this chip allows a user-selectable clock input, making clock calibration easy.
dannyf
Posts: 446
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

I summarized my experience so far here: https://dannyelectronics.wordpress.com/ ... py32f002a/

the most interesting for those of us working the STM32 chips is that the STLink debugger works out of the box on programming and debugging the PY32.
dannyf
Posts: 446
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

Another vote for the PY32 chip: using itself to calibrate LSI: https://dannyelectronics.wordpress.com/ ... ing-tim14/

The same feature exists on STM32F0/G0/C0 chips - potentially more but I didn't check extensively. The only other chip that I know of that can do this is the MSP432 - it has multiple clocks.

I'm impressed by PY32.
dannyf
Posts: 446
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

Back to the G0: I did more experiements here: https://dannyelectronics.wordpress.com/ ... stm32g031/

I think the G030 and G031 are the same chip - that means the G030 has TIM2/14, LPTIM1/2 and LPUART, and the F6 variants has 64KB flash (vs. 32KB spec).

G031 has a big brother, G041. I am going to see if G030 and G031 have those peripherals spec'd for G041: TRNG, and AES.
dannyf
Posts: 446
Joined: Sat Jul 04, 2020 7:46 pm

Re: Taking a look at STM32G0 series

Post by dannyf »

I can confirm that the G030/G031 has the same true random number generator as on the G041.

Haven't tried AES yet.
ag123
Posts: 1653
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Taking a look at STM32G0 series

Post by ag123 »

that's cool, that random number generator is useful, certainly better than reading arbitrary ADC inputs from radio waves :)
Post Reply

Return to “Off topic”