2025-07-14 2:57 AM
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.
2025-07-14 3:05 AM
@ronnabh wrote:I can't find any information on the BOOT1 pin in this MCU to enter the system memory boot mode
Here:
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
2025-07-14 3:08 AM
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.
2025-07-14 5:29 AM
Hi,
Thank you both very much this is very helpful,
How do I control the Boot1 (bit) ?
2025-07-14 5:38 AM
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.