Skip to main content
Visitor II
February 10, 2023
Question

Not able to enter into UART bootloader mode

  • February 10, 2023
  • 3 replies
  • 3131 views

To perform firmware upgrade through UART, we had tried to put the MCU into bootloader mode by following sequence

a) NRST pin set to LOW and BOOT0 pin to HIGH to select System memory

b) NRST pin set to HIGH to boot into bootloader

To accomplish this, we have attempted in the following order and still were not successful:

1) BOOT0 and NRST are signalled manually

2) BOOT0 NRST signalled using ESP32 controller

3) Using the FTDI module, connect the BOOT0 pin to DTR and the NRST pin to RTS. Signalling using FTDI module itself.

4) Added the additional pull ups in UART Tx,Rx as suggested in the data sheet

0693W00000YAQwgQAH.png 

Please let me know what went wrong with the signalling portion. Your assistance and backing are much appreciated.

MCU used is STM32G030F6P6

    This topic has been closed for replies.

    3 replies

    Graduate II
    February 10, 2023

    You cant use any RX TX pins read AN2606, what STM ???

    Visitor II
    February 11, 2023

    @MM..1​  We have used USART2 Rx and Tx in STM32G030F6P6.

    Graduate II
    February 11, 2023

    For USART2 you only can use PA2 PA3 and

    0693W00000YAWELQA5.png

    Visitor II
    February 16, 2023

    @MM..1​ 

    We have used PA2 and PA3 and followed the signalling sequence to do pattern 11

    a) NRST pin set to LOW and BOOT0 pin to HIGH to select System memory

    b) NRST pin set to HIGH to boot into bootloader

    Is the above mentioned sequence correct? Please let me know if there is anything wrong with the sequence/pattern

    Technical Moderator
    February 16, 2023

    Hello @arjun.binu​,

    As already answer by @MM..1​, the STM32G030 bootloader is configurated by pattern 11.

    I advise you, when you configured the bootloader, to refer at this AN2606 "STM32 microcontroller system memory boot mode" and get inspired form the steps described in this MOOC "STM32 boot and startup tips - 2 Embedded bootloader investigations".

    I hope this help you!!

    Thank you.

    Kaouthar