2.3.8 Boot modes At startup, boot pins are used to select one of three boot options: • Boot from user Flash • Boot from system memory • Boot from embedded SRAM The bootloader is located in the system memory. It is used to reprogram the flash memory by using USART1. For further details, refer to AN2606, available on www.st.com.
-erase, -e Erases flash memory of the device. -program, -p Erases the range for writing to the device and writes to the device. -erase-chip Erases all data in the flash memory of the device and clears the configuration settings.