cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-G071RB with X-NUCLEO-GFX01M1 won't launch into debug.

SPang.1
Associate III

I have a NUCLEO-G071RB with X-NUCLEO-GFX01M1 display board and I've imported the GFX01M1_HelloWorld application but it won't launch into debug. I get this error:

Error in final launch sequence:

Failed to execute MI command:

load /Users/sukkinpang/STM32CubeIDE/workspace_stm32g0_imported/Projects/NUCLEO-G071RB/Applications/GFX01M1_HelloWorld/STM32CubeIDE/Debug/X-NUCLEO-GFX01M1.elf 

Error message from debugger back end:

Load failed

Failed to execute MI command:

load /Users/sukkinpang/STM32CubeIDE/workspace_stm32g0_imported/Projects/NUCLEO-G071RB/Applications/GFX01M1_HelloWorld/STM32CubeIDE/Debug/X-NUCLEO-GFX01M1.elf 

How can I fix this ?

1 ACCEPTED SOLUTION

Accepted Solutions

HI please refer to this post. https://community.st.com/s/question/0D53W00000LC29WSAT/important-working-on-the-stm32g0-nucleo-with-stm32cubeide

It is a new step necessary for the G0 and upcoming new ST kits.

View solution in original post

11 REPLIES 11
Alexandre RENOUX
Principal

Hello,

Instead of doing this, can you try the G071-NUCLEO Application Template available in the Designer and do a simple GUI with a box and a button ?

This Application template was done by TouchGFX but not the GFX01M1_HelloWorld.

/Alexandre

SPang.1
Associate III

Hi Alexandre,

I've started Designer but there is no template for the G071-NUCLEO.

How do I get this template ?

Sukkin

Hi,

Are you using TouchGFX 4.15 ? The STM32G0 nucleo application template is only available in this new version.

FYI I will create a new post on the forum to explain how to work with STM32CubeIDE and the G0 (you can still run your project on target from Designer with no issue) if this your case as well. Unlike all of the other boards this AT requires to manually add the external loader to the installation folder of CubeIDE in order to be able to debug and run the project. Building is already working fine without this.

/Romain

SPang.1
Associate III

Where can I get 4.15 ?

The download is only shows 4.14.

0693W000004JwEZQA0.jpg

SPang.1
Associate III

Managed to install Designer 4.15 and got a button and new screen working on the simulator. Generated the code.

In CubeIDE used Open project from file system and it compiled ok but when I tried to upload the code I get this error:

ERROR: Couldn't parse external memory loader 'S25FL032P_STM32G071B-NUCLEO.stldr' 

Error in final launch sequence:

Failed to start GDB server

Failed to start GDB server

Error in initializing ST-LINK device.

Reason: (-2147155971) Unknown. Please check power and cabling to target.

In the Debugger setting the External Loader is checked and this is selected:

S25FL032P_STM32G071B-NUCLEO, 0x90000000, SPI_FLASH, S25FL032P_STM32G071B-NUCLEO.stldr

Then in CudeIDE I've created a test program and it uploaded to the board and ran ok, so I know the hardware is work.

Any idea of how to fix this ERROR: Couldn't parse external memory loader 'S25FL032P_STM32G071B-NUCLEO.stldr'  ?

SPang.1
Associate III

In Designer I also clicked Run Target but I get this error:

 Compiling TouchGFX/App/app_touchgfx.c

    Compiling gcc/syscalls.c

    Compiling gcc/sysmem.c

    Compiling ASM gcc/startup_stm32g071rbtx.s

    Linking TouchGFX/build/bin/target.elf

    Producing additional output formats...

     target.hex - Combined internal+external hex

     intflash.elf - Internal flash, elf debug

     intflash.hex - Internal flash, hex

     extflash.bin - External flash, binary

    Done

  Flash

    make -f ../gcc/Makefile flash

    Reading TouchGFX/application.config

    Linking TouchGFX/build/bin/target.elf

    Producing additional output formats...

     target.hex - Combined internal+external hex

     intflash.elf - Internal flash, elf debug

     intflash.hex - Internal flash, hex

     extflash.bin - External flash, binary

    /usr/bin/sh: C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe: No such file or directory

    gcc/Makefile:260: recipe for target '_extflash_' failed

    make[1]: *** [_extflash_] Error 127

    ../gcc/Makefile:47: recipe for target 'flash' failed

    make: *** [flash] Error 2

    Failed

  Failed

Do I have to install the STM32_Programmer_CLI.exe myself ?

Alexandre RENOUX
Principal

It seems you haven't installed STM32CubeProgrammer.

Please install it, the CLI is automatically installed along with it.

CubeProgrammer is mandatory to be able to flash STM32 boards.

/Alexandre

SPang.1
Associate III

Ok, I've now installed STM32CubeProgrammer and when I click Run Target the code is uploaded and I can see buttons on the LCD. Great !!

I then tried to debug the program in CubeIDE but still get the error:

ERROR: Couldn't parse external memory loader 'S25FL032P_STM32G071B-NUCLEO.stldr' 

Any ideas ?

HI please refer to this post. https://community.st.com/s/question/0D53W00000LC29WSAT/important-working-on-the-stm32g0-nucleo-with-stm32cubeide

It is a new step necessary for the G0 and upcoming new ST kits.