2021-06-10 09:32 PM
Hi,
I have a system that is packed entirely. I have only a USB port and reset pin for my access. Now, How can I move the controller from In-Application Programming mode to In-System Programming mode?
Solved! Go to Solution.
2021-06-14 07:51 AM
See this for how to jump to the bootloader in software:
https://stm32f4-discovery.net/2017/04/tutorial-jump-system-memory-software-stm32/
Should be similar (probably identical) for the STM32G0 series. Note that the bootloader assumes the chip is in a reset state, so some periperphals/interrupts need disabled first.
You could also set the boot option bytes to jump to the bootloader on reset, then reset the device.
2021-06-11 07:08 AM
Not quite sure what you mean, but if the USB is a supported bootloader peripheral for your unknown chip, you could jump to the bootloader and use USB to program it.
2021-06-13 08:26 PM
Hi,TDK
Thanks for the answer, I am using the STM32G070KB chip.USART1 bootloader is supported. As per the AN2606 note, 0x1FFF0000 is the address of the bootloader. I am moving to the bootloader section by Pattern 11(erasing the first page). Is there any other way to move to bootloader address( 0x1FFF0000) from the main code(Main flash memory code)? I am using C language in Keil Vision 5 .
2021-06-14 06:04 AM
2021-06-14 07:51 AM
See this for how to jump to the bootloader in software:
https://stm32f4-discovery.net/2017/04/tutorial-jump-system-memory-software-stm32/
Should be similar (probably identical) for the STM32G0 series. Note that the bootloader assumes the chip is in a reset state, so some periperphals/interrupts need disabled first.
You could also set the boot option bytes to jump to the bootloader on reset, then reset the device.
2021-06-15 04:28 AM
Thanks TDK.