cancel
Showing results for 
Search instead for 
Did you mean: 

Can controller programming pins be used as GPIO as well?

DJ17
Associate II

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?

2 REPLIES 2
AScha.3
Principal III

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".
Loki
Associate

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.