2025-07-08 5:16 AM
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!
Solved! Go to Solution.
2025-07-08 7:22 AM
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.
2025-07-08 7:22 AM
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.