cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L412RB - Programming

ronnabh
Visitor

Hi, 

Is there an option to program the STM32L412RB with DFU / Serial interface? 
I was programming the STM32F407 with DFU and Serial before and now I want to use the STM32L412RB and program it the same way. 
I can't find any information on the BOOT1 pin in this MCU to enter the system memory boot mode

Thank you in advance for your help, 

Ron. 

4 REPLIES 4
Andrew Neil
Super User

@ronnabh wrote:

I can't find any information on the BOOT1 pin in this MCU to enter the system memory boot mode


Here:

AndrewNeil_0-1752487416781.png

https://www.st.com/resource/en/datasheet/stm32l412rb.pdf#page=18

via: https://www.st.com/en/microcontrollers-microprocessors/stm32l412rb.html#documentation

 

So BOOT1 is an Option Bit - not a pin

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
STTwo-32
ST Employee

Hello @ronnabh and welcome to the ST Community. 
For the STM32L412RB, you will follow the pattern 16 for Bootloader activation (you can find it on the table 2 of the AN2606) no BOOT1 pin to use . Also the paragraph 68 of the AN2606 should give you all details you need.

Best Regards.

STTwo-32

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.

ronnabh
Visitor

Hi, 

Thank you both very much this is very helpful, 

How do I control the Boot1 (bit) ? 

the nBOOT1 is the bit 23 of the FLASH_OPTR register. So, you can set and reset it throw code. Also, you can connect to the STM32CubeProgrammer and go to the option bytes menu to set/reset the nBOOT1 bit. 

Best Regards.

STTwo-32

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.