Relative Content

Tag Archive for stm32firmwarestm32f0dfu

STM32F0 Jump to bootloader from application

I have a custom board with an STM32F042C4T6 where I use usart2 to load the firmware. Unfortunately on the connector I only have rx-tx-gnd and to load via usart I have to set the boot0 pin high. I would like to point out that boot0 is in pulldown via a resistor. Doing the first tests by putting in high boot0 the firmware loading works without problems. The only thing is that in the future I won’t be able to access the PCB and therefore I can’t set the boot0 pin high manually. Searching the web I found a couple of pieces of information about jumping memory from the application to the bootloader so I can recall it when I need it. I leave you below the function that I tried without success. The memory address is: 0x1FFFC400. If I try to connect with cube programmer it gives me an error telling me to check the connections and/or the status of the boot pin. Anyone who can help me? Thank you