Skip to main content
SPang.1
Associate II
October 14, 2020
Solved

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

  • October 14, 2020
  • 11 replies
  • 2606 views

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 ?

This topic has been closed for replies.
Best answer by Romain DIELEMAN

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.

11 replies

Alexandre RENOUX
Visitor II
October 15, 2020

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
SPang.1Author
Associate II
October 15, 2020

Hi Alexandre,

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

How do I get this template ?

Sukkin

Romain DIELEMAN
ST Employee
October 15, 2020

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
SPang.1Author
Associate II
October 15, 2020

Where can I get 4.15 ?

The download is only shows 4.14.

0693W000004JwEZQA0.jpg

SPang.1
SPang.1Author
Associate II
October 15, 2020

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
SPang.1Author
Associate II
October 15, 2020

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
Visitor II
October 16, 2020

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
SPang.1Author
Associate II
October 16, 2020

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 ?

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
October 16, 2020

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.

SPang.1
SPang.1Author
Associate II
October 16, 2020

I've followed the above procedure and it works. I can now debug in CodeIDE.

Thanks everybody.

Alexandre RENOUX
Visitor II
October 16, 2020

Please mark this post as answered :)

/Alexandre