How to flash: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-step-by-step.html Disable DFU protection: https://community.st.com/s/question/0D50X00009XkXooSAF/disabling-flash-sectors-protection-through-dfu