Skip to main content
Visitor II
September 13, 2024
Solved

Bootloader activation STM32G0C1

  • September 13, 2024
  • 1 reply
  • 1432 views

I cannot enter the bootloader with the BOOT0 pin in the STM32G0C1 while I can with the NUCLEO-G0B1RE.

I already checked the option bytes, and tried with nBOOT_SEL = 0 and nBOOT_SEL = 1.

In the Nucleo board, it seems this nBOOT_SEL has no effect at all, Nucleo always stays in bootloader if BOOT0 pin is HIGH after reset.

In the STM32G0C1, the only way to enter bootloader is when the flash if fully erased.

How can I force the bootloader at booting, using the external BOOT0 pin?

Also nBOOT_SEL seems to configured to 1 as factory default. 

 

    This topic has been closed for replies.
    Best answer by Stefano Ugolini

    The issue was caused by the debugger as stated in the Errata sheet document.

    https://www.st.com/resource/en/errata_sheet/es0548-stm32g0b1xbxcxe-device-errata-stmicroelectronics.pdf

     

    StefanoUgolini_0-1726228403495.png

     

    1 reply

    Technical Moderator
    September 13, 2024

    Hello @Stefano Ugolini 

    To activate bootloader on your MCU, you have to follow one of the 4 configurations mentioned on the Pattern 11 of the AN2606:

     

    STTwo32_0-1726216840518.png

    Best Regards.

    STTwo-32

    Visitor II
    September 13, 2024

    Hi @STTwo-32 ,

    thank you for the reply,

     

    I am applying pattern 11, second raw, but the bootloader is not activated.

    Other users reported a similar issue on the same family.

    https://community.st.com/t5/stm32-mcus-embedded-software/stm32g070-entering-system-bootloader-mode-with-the-boot-pin/td-p/78972

     

    Could you please check internally if there is an issue with the activation of the bootloader for the STM32G0C1 family?

    Could you please tell me what are the factory value for the option bytes?

     

    Thank you

    Stefano

     

     

    Stefano UgoliniAuthorAnswer
    Visitor II
    September 13, 2024

    The issue was caused by the debugger as stated in the Errata sheet document.

    https://www.st.com/resource/en/errata_sheet/es0548-stm32g0b1xbxcxe-device-errata-stmicroelectronics.pdf

     

    StefanoUgolini_0-1726228403495.png