Skip to main content
Associate
November 7, 2023
Question

Can controller programming pins be used as GPIO as well?

  • November 7, 2023
  • 2 replies
  • 1573 views

Hi I am using STM32F401RE controller but on my PCB, so here can I use the pins allocated for its programming/code dumping also as normal GPIO's. Any precautions which needs to be taken care of?

This topic has been closed for replies.

2 replies

AScha.3
Super User
November 7, 2023

basically yes, you can use all these pins as gpios.

but you want leave some way to program the chip - right ? so minimum is, leave boot pin usable, to have a way to get a program to the chip. - even if never want debug it. :)

"If you feel a post has answered your question, please click ""Accept as Solution""."
Visitor II
November 12, 2023

Yes you can use all the pins, except NRST and Boot pins.

For programming your ic you can give UART line with additional jumper and add the SPDT button in Boot pin, connect one line to VCC and other to GND, so whenever you want to program your controller move boot to High state.

But it's not good practice to use all the pins of controller.