Skip to main content
shan chen
Associate II
Nov 13, 2023 6:13 AM UTC
Question

stm32f103 startup io initialization problem

hello.

this is the first time I've had this problem , I describe this problem next:

1 the io initialization input is normal (this is the feature I want)

2 when I power off and restart, I find that the same pin initialization input is not responding

3 repeated power-off / power-on operation the pin initialization input sometimes does not respond

why does this happen, please tell me

thanks

 

This topic has been closed for replies.

4 replies

gbm
Super User
Nov 13, 2023 1:16 PM UTC

Not sure what you mean by "io initialization input is normal", but:

1. Check if BOOT0 pin is at logic LOW (connected to GND directly or via resistor).

2. If there is a high-capacity capacitor (like 1000uF) in the power supply path, wait longer between power off and power on, or use Reset button.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
shan chen
shan chenAuthor
Associate II
Nov 14, 2023 3:33 AM UTC

thank you for your help

1. "io initialization input is normal" means that the pin function i want is the input function.

2. just like you said, BOOT0 pin is at logic Low

3.max capacitor of the power supply is 100uf

thanks

mƎALLEm
ST Technical Moderator
Nov 14, 2023 8:12 AM UTC

Hi @shan chen ,

Please share your minimal project, not only the main file (if possible the .ioc file). So the members of the community and us can help you.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.