Add STM32G0B1KET6N variant

Post here first, or if you can't find a relevant section!
Post Reply
dirtyd
Posts: 2
Joined: Wed Mar 01, 2023 11:25 am

Add STM32G0B1KET6N variant

Post by dirtyd »

Hello, I'm trying to setup a board with STM32G0B1KET6N. I posted this in STM32 cores sub-section but probably should have posted here first?

I'm following the wiki page - https://github.com/stm32duino/Arduino_C ... 28board%29

I copied the following from boards_entry.txt in variants/G0B1K(B-C-E)(T-U)xN_G0C1K(C-E)(T-U)xN

Code: Select all

# Generic G0B1KETxN
GenG0.menu.pnum.GENERIC_G0B1KETXN=Generic G0B1KETxN
GenG0.menu.pnum.GENERIC_G0B1KETXN.upload.maximum_size=524288
GenG0.menu.pnum.GENERIC_G0B1KETXN.upload.maximum_data_size=147456
GenG0.menu.pnum.GENERIC_G0B1KETXN.build.board=GENERIC_G0B1KETXN
GenG0.menu.pnum.GENERIC_G0B1KETXN.build.product_line=STM32G0B1xx
GenG0.menu.pnum.GENERIC_G0B1KETXN.build.variant=STM32G0xx/G0B1K(B-C-E)(T-U)xN_G0C1K(C-E)(T-U)xN
I used CubeMX to generated the loader and clock config.

I can successfully program the micro via DFU. The first test I did was Blinky, and I did not get a signal on the pin I tried (PA4).

I'm a bit confused by the pinout options of an unmodified generic variant such as this. Is it supposed to "just work", or do I need to modify variant_generic.h and .cpp.

I read viewtopic.php?t=372 but it's still not clear to me, exactly how to the various files are supposed to interact together. If this has been explained elsewhere, a link would be greatly appreciated. Thank you.
Post Reply

Return to “General discussion”