cancel
Showing results for 
Search instead for 
Did you mean: 

Failure on GO Command of STM32G070

TesterSAM
Visitor

I have questions on the System Memory Boot Mode of the STM32G070CB MCU

Setup:

  1. Access the System Memory Bootloader Mode every power cycle. Hence, I updated the Option Bytes as below:TesterSAM_0-1753438525495.png
  2. The MCU contains the Application image only; it does not contain a custom bootloader.
  3. Using Cube Programmer, configure the nBoot0 option bytes, able to run as System Memory Boot Mode OR Main Application

What I tried to do was exit the System Memory Boot Mode and Access the Main Application, but failed:

  1. Tried using the UART sending the GO Command with the Application Address 0x0800 0000, but the MCU does not work (no UART Log)TesterSAM_0-1753438716884.png

     

  2. Tried using the UART method to send the GO Command with the Application Address stored in the Image like below, the MCU does not work. TesterSAM_1-1753438734226.pngTesterSAM_2-1753438752242.png
  3. Tried to uncomment the “USER_VECT_TAB_ADDRESS” in system_stm32g0xx.c.
    The MCU outputs some unexpected UART log if sending the GO Command with the Application Address 0x0800 0000

               Abnormal UART Log (unknown pattern)

TesterSAM_3-1753438775393.png

              Normal Application Uart Log (expected)

TesterSAM_0-1753438826590.png

 

Question:

  1. Any other setting required for the GO command ?
  2. How to implement :
    1. Power up -> System Memory Boot Mode -> Using the GO Command to access the Main Application
  3. How the GO command operate? 
1 REPLY 1
TDK
Super User

Looks like the application is running but the clock rate is not as expected.

The time between UART bursts is about 0.7s instead of 1s and the length is similarly reduced. This indicates a bad clock speed.

Doesn't seem like a GO command problem but rather a clock initialization problem. Connect with the debugger and examine the state of the chip.

If you feel a post has answered your question, please click "Accept as Solution".