cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G47 PA9 Appears to be Set high in bootloader mode opposed to pulled high

benefit
Visitor

As the title says, the STM32G47 PA9 pin appears to be set high in boot mode opposed to pulled high though a resistor which is states in AN2606. This is becoming a problem because it introduces negative behaviors in our design when we try to reprogram. Is this a known behavior documented elsewhere?

I have gotten pretty frustrated when migrating from the STMF3 family to the STMG4 since there are many more pins being pulled or set in one direction or another during boot mode. 

Is there any way to disable some of these hardware defined communications protocols during the boot loader mode initiated by the BOOT0 pin?

5 REPLIES 5
TDK
Super User

> the STM32G47 PA9 pin appears to be set high in boot mode opposed to pulled high though a resistor which is states in AN2606

It's an output pin. It should be in push-pull mode.

TDK_0-1756307600802.png

I don't see anywhere where it says for STM3247x it's only pulled up. Am I missing it?

 

 

> Is there any way to disable some of these hardware defined communications protocols during the boot loader mode initiated by the BOOT0 pin?

Sadly no. The bootloader is in ROM and its behavior cannot be changed.

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

Unless there's an activity at PA10, which the bootloader may judge as start of the UART bootloader, PA9 should not be pulled hard.

While you can't change the bootloader behaviour and there are no sources available, you *can* debug it, including stopping and observing the GPIO and perhaps also the involved peripherals registers' content.

JW

I agree that the document says the pin PA9 is in push/pull mode when in the bootloader mode. However, when we tried grounding this pin with a 6k or 1k resistor we are still able to measure 3.3V (Vdd) at the pin which implies the pin is actually driven high opposed to connected high through a pull up. 

> implies the pin is actually driven high opposed to connected high through a pull up. 

That's what push/pull mode means. It's driven to VDD (push) or GND (pull) directly, not through a resistor.

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

That is good to know, but I will say that the ambiguity of "Used in alternate push-pull, pull-up mode." is not very clear. If the pin was in pull-up mode or pulled down in push-pull mode I wouldn't have an issue.