Unable to flash STM32G031 (8 pins) with STM32CubeProgrammer & ST-LINK/V2.
I've have a custom board with a STM32G031,from the board we have access to the following MCU pins:
- +3V3_BT
- NRSTBT
- SWDIO
- SWCLK_USARTTX
I've connected this 4 pins to a ST-LINK/V2. Like this (left) mcu, (right) st-link.
- +3V3_BT --> VCC
- NRSTBT --> NRST
- SWDIO --> SWDIO
- SWCLK_USARTTX --> SWCLK
The current delivered by PSU goes to almost 0 after trying to flash (around 0.004A from the correct 0.041A). When trying to flash the uC these are the errors/log I get:
10:37:32 : ST-LINK SN : 55FF6E067871515343241267
10:37:32 : ST-LINK FW : V2J39S7
10:37:32 : Board : --
10:37:32 : Voltage : 2,60V
10:37:32 : SWD freq : 4000 KHz
10:37:32 : Connect mode: Normal
10:37:32 : Reset mode : Software reset
10:37:32 : Device ID : 0x466
10:37:32 : Revision ID : Rev 1.1
10:37:35 : Error: Database: There's no active configuration for this device. All the 6 configurations are disabled!
10:37:35 : Debug in Low Power mode is not supported for this device.
10:37:36 : UPLOADING OPTION BYTES DATA ...
10:37:36 : Bank : 0x00
10:37:36 : Address : 0x40022020
10:37:36 : Size : 108 Bytes
10:37:36 : Error: Uploading Option Bytes bank: 0 failed
10:37:38 : Error: Initializing the Option Bytes failed
10:37:38 : Disconnected from device.Isolating the errors:
Error: Database: There's no active configuration for this device. All the 6 configurations are disabled!
Error: Uploading Option Bytes bank: 0 failed
Error: Initializing the Option Bytes failedAny ideas on how to solve this?
Thanks!
