cancel
Showing results for 
Search instead for 
Did you mean: 

Programming the STM32G030K6T6 via USB (DFU)

MattH2
Associate II

Hi,

I originally planned to program my STM32G030K6T6 via USB using the DFU bootloader, but the datasheet doesn’t mention USB_DM/USB_DP, and STM32CubeIDE’s .ioc file shows no USB option under Connectivity, so I believe USB DFU isn’t supported. What’s the best and easiest way to program this MCU, considering future mass production? I’m looking for a reliable, scalable method.

Thank you for the assistance!

STM32G0 Series Bootloader

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

SWD is typically the best way to program as it's always active.

USB is not available on STM32G030K6T6. You can use the UART bootloaders. See AN2606 for supported pins. You can use the bootloader but you will need to ensure the bootloader is active. It'll start when the chip is empty, but after that, you will need to jump into it or program option bytes appropriately.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

1 REPLY 1
TDK
Super User

SWD is typically the best way to program as it's always active.

USB is not available on STM32G030K6T6. You can use the UART bootloaders. See AN2606 for supported pins. You can use the bootloader but you will need to ensure the bootloader is active. It'll start when the chip is empty, but after that, you will need to jump into it or program option bytes appropriately.

If you feel a post has answered your question, please click "Accept as Solution".