cancel
Showing results for 
Search instead for 
Did you mean: 

High level at the outputs of PA9 and PA10 after reset. STM32G030K8

Akoli.2
Associate III

After resetting, the output of PA9 and PA10 of the STM32G030K8 microcontroller is high. These pins are not initialized, according to the datasheet after reset they should have the function of an analog input. Once configured, they function normally as outputs.

It is important for me that after the reset and before the adjustment, the outputs are like analog inputs.

7 REPLIES 7
Uwe Bonnes
Principal III

Your flash is probably empty and you are in Bootloader Mode.

It can't be. If the microcontroller was in bootloader mode it would not execute my code. Even if the microcontroller is empty, according to the datasheet, the pins should be analog inputs.

You are correct that when the microcontroller is empty, PA9 and PA10 are high.

Pin BOOT0 is connected to GND through a resistor and the microcontroller should not be in bootloader mode.

Earlier, I see a high status of PA9 and PA10. I have now checked again with an empty code while (1); and PA9 and PA10 are not high

Uwe Bonnes
Principal III

Carefully check AN2606 for the conditions of bootlloader empty.

These are the USB Power Delivery Dead-Battery (UCPDx_DBCCx) pins, even if the 'G030 DS does not mark them as such. RM0444 says:

 

The DBCC pads (GPIOs of FT_d type) present more leakage than standard GPIOs. Refer

to product datasheet for values.

 

I mistook it for 'G070, sorry.

JW

TDK
Guru

Hold the chip in reset. Do they behave as analog pins? If you release reset and they change, something is configuring them otherwise either in the bootloader or in user code.

If not, then either the RM is wrong, or you're mistaken.

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