cancel
Showing results for 
Search instead for 
Did you mean: 

How to do the pin connections for STM32L476RGT6U on PCB so that a program can be uploaded?

Prajnyajit
Associate II

I'm trying to mount STM32L476RGT6U on pcb. I want to upload program using IDE to the controller on the pcb. Please advice me the suitable connection diagram to fullfill this particular requirement.​

27 REPLIES 27
MM..1
Chief III

For direct connect exist internal bootloader and around five usable buses (USB,UART,I2C,SPI...). Read bootloader docs.

Simpler is use SWD interface for debug and load code. But here you need next hw to provide stlink IF.

Diagram here is simple for basic designs two wires and gnd .

TDK
Guru

Make it easy on yourself and use a standard connector used by the programmer of your choice.

https://www.st.com/en/development-tools/stlink-v3mini.html#documentation

0693W00000FAOVIQA5.png

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

So what is it uses ? Like should I connect my pcb mounted MCU with this and thorough this to pc ? If so, what should be it's connection ? How STM32L476RGT6U should be connected to this ?

Please help me a bit more on how to use it ?

Or should I mount this ​stlink V3 mini on pcb itself with MCU ?

The U parts are on ST boards, they are not retail parts.

Perhaps you can review the part Data Sheet, and board schematics, for say NUCLEO, DISCO or EVAL series board, to get some idea what you're doing.

The debug interface mainly needs connectivity of SWDIO and SWCLK pins, the NRST and SWO pins are also very helpful.

>>Or should I mount this ​stlink V3 mini on pcb itself with MCU ?

Most would use a header connector, and then a cable to the debug pod

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
TDK
Guru

Put a 14-pin header on your board and connect the signals in the table to the relevant pins on your board. For example, T_SWO is the SWO of the target MCU, which is pin PB3 on your board. T_VCC should connect to the power rail on your board. Note that you will still need to provide the board power.

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

Can you refer to any manual or material which can help me ?​

If what I linked previously didn’t help, not sure I can do anything.
If you feel a post has answered your question, please click "Accept as Solution".

Data Sheet and related documents can be found here:

https://www.st.com/en/microcontrollers-microprocessors/stm32l476rg.html

https://www.st.com/en/evaluation-tools/nucleo-l476rg.html

https://www.st.com/resource/en/schematic_pack/nucleo_64pins_sch.zip

Perhaps consult with colleagues or supervisor for guidance or training.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Sir, thank you. Is it the corresponding diagram for my case? STM32L476RGT6U which is of LQFP64 package. I found it from the document you have sent me. (https://www.st.com/resource/en/schematic_pack/nucleo_64pins_sch.zip)