Skip to main content
Saif Ul Islam
Associate
May 20, 2021
Solved

I am looking for minimal schematic for stm32l031f4p3

  • May 20, 2021
  • 3 replies
  • 1112 views

..

This topic has been closed for replies.
Best answer by Peter BENSCH

On the MicroPython website you will find a bunch of different boards and prepared binaries, also created for NUCLEO boards. Some of the targets don't provide USB, like your STM32L031, so maybe you could copy some parts of the schematics from the NUCLEO_F091RC or the NUCLEO_F401RE. Both are based on the same board MB1136, which also contains the debugger ST-LINK/V2-1, but in your design you can connect an ST-LINK externally using SWD pins of your STM32L031F4P3 (pin 19, 20).

Alternatively, you can also use UART2 or SPI1 for programming, but this would require an UART or an SPI interface and some user interaction, since BOOT0=1 and nBOOT1=1 must be set for the internal bootloader (see AN2606, pattern 2).

Regards,

/Peter

3 replies

Peter BENSCH
ST Technical Moderator
May 20, 2021

...to do what?

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Saif Ul Islam
Associate
May 20, 2021

Actually I have to design a board based on this STM32L031F4P3 controller for a client he wants to implement micro python in it. I am looking for some reference design of said controller I have confusion regarding what hardware is required to connect it to PC for Programming? Will it be a UART to USB converter or ST-link or something else ?

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
May 20, 2021

On the MicroPython website you will find a bunch of different boards and prepared binaries, also created for NUCLEO boards. Some of the targets don't provide USB, like your STM32L031, so maybe you could copy some parts of the schematics from the NUCLEO_F091RC or the NUCLEO_F401RE. Both are based on the same board MB1136, which also contains the debugger ST-LINK/V2-1, but in your design you can connect an ST-LINK externally using SWD pins of your STM32L031F4P3 (pin 19, 20).

Alternatively, you can also use UART2 or SPI1 for programming, but this would require an UART or an SPI interface and some user interaction, since BOOT0=1 and nBOOT1=1 must be set for the internal bootloader (see AN2606, pattern 2).

Regards,

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.