Skip to main content
Visitor II
June 11, 2021
Solved

How to change the controller from IAP mode to ISP

  • June 11, 2021
  • 3 replies
  • 2287 views

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?

    This topic has been closed for replies.
    Best answer by TDK

    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.

    3 replies

    Super User
    June 11, 2021

    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.

    RK.10Author
    Visitor II
    June 14, 2021
    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 .
    RK.10Author
    Visitor II
    June 14, 2021

    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 .

    TDKAnswer
    Super User
    June 14, 2021

    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.

    RK.10Author
    Visitor II
    June 15, 2021

    Thanks TDK.