STM32G030J6M6 pinout.

Post here first, or if you can't find a relevant section!
josephchrzempiec
Posts: 8
Joined: Mon Feb 07, 2022 11:10 pm

Re: STM32G030J6M6 pinout.

Post by josephchrzempiec »

Hello, I use Arduino and arduino ide to program everything. I do not have STM32CubeProgrammer. Also PA14 to high for bootloader mode then To low after programming or else it will go back into programming mode after power back up.

Joseph
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32G030J6M6 pinout.

Post by fpiSTM »

You need to install cubeprogrammer
josephchrzempiec
Posts: 8
Joined: Mon Feb 07, 2022 11:10 pm

Re: STM32G030J6M6 pinout.

Post by josephchrzempiec »

hello, I'm trying to find out which pins are for i2c? I can not find the arduino pinout for this processor on the github page I'm a little lost. Can someone please help me?

Joseph
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32G030J6M6 pinout.

Post by fpiSTM »

Here the list of pins number available and their values:

https://github.com/stm32duino/Arduino_C ... _generic.h

All pins capabilities are listed in the PeripheralPins.c, for I2C:

https://github.com/stm32duino/Arduino_C ... .c#L54-L72
josephchrzempiec
Posts: 8
Joined: Mon Feb 07, 2022 11:10 pm

Re: STM32G030J6M6 pinout.

Post by josephchrzempiec »

They are a lot of pins. Which one is which for the 8 pin processor that I do have? It shows pa and pb. Also shows pa_r pins I have no clue. All I’m trying to do is put a oled screen on the processor. But unsure which pin I need to put it on.

Is it the PA9_R and PA10_R?

Joseph
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32G030J6M6 pinout.

Post by fpiSTM »

The variant describes all pins available for STM32G030J6M. But depending of the package not all are available.
You have to refers to the datasheet and use the one you need/want --> https://www.st.com/resource/en/datashee ... g030j6.pdf
Example for SO-8
STM32G03Jx.png
STM32G03Jx.png (14.58 KiB) Viewed 1336 times
The datasheet also list properly each pins for each packages, see : Table 12. Pin assignment and description
PYn_R pins define in the variant indicate that those pins required to perform a remap, in the picture case: PA12[PA10] means PA12 is accessible without remap while PA10 require to perform a remap (PA10_R). You could not use PA12 and PA10 at the same time.
axeltyler6
Posts: 1
Joined: Wed Jun 01, 2022 7:24 pm

Re: STM32G030J6M6 pinout.

Post by axeltyler6 »

I been so busy with famil and taking care of my father and my friends family I had to put my projects on hold.
I'm once again at it. From my understanding I can use a FTDI programmer to program this processor is this correct.

Also Thank you all for helping me with the pinout.Your community is awesome.From what I can see Because The RX and TX pins Is there any other pin I would need for programming.I saw a Boot0 (PA14) pin in there is that needed and Where does that go in for programming mode.

Voice Teleservices
djix123
Posts: 8
Joined: Mon Oct 25, 2021 11:34 pm

Re: STM32G030J6M6 pinout.

Post by djix123 »

Normally you need to pull BOOT0 high to enter the system boot loader that would enable serial programming (e.g. with an FTDI).

On the STM32G030J6M6's I have the BOOT0 pin is, by default, turned off via the nBOOT_SEL option byte setting, and so the BOOT0 value is read from the nBOOT0 option byte setting.

These can be seen and modified using the STM32CubeProgrammer app with an STLInk probe connected.

[I've not tried this, but since BOOT0 shares the pin with PA14 there may be some interaction with SWD functionality when external BOOT0 is enabled]
Post Reply

Return to “General discussion”