915 views
in Getting started by

Hello, I am trying to follow the guide posted here:

https://doc.embedded-wizard.de/getting-started-stm32f769-discovery?v=10.00

However, each time I start the programming process, I got these errors (first with the FlashMasterDemo.bat and then also with `make install` step on the Hello World example)

*******************************************************************************
* Welcome to Embedded Wizard Build Environment for STM32F769-Discovery V10.00
*******************************************************************************

STM-CubeProgrammer:  "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer"
ext. FLASH loader:   "MX25L512G_STM32F769I-DISCO.stldr"

All checks are passed!

*******************************************************************************
*
* Getting started with Embedded Wizard and STM32F769-Discovery board:
*
* https://doc.embedded-wizard.de/getting-started-stm32f769-discovery
*
*******************************************************************************


Entering Embedded Wizard template project


*******************************************************************************
*
* Flashing Embedded Wizard Master Demo for target STM32F769-Discovery
*
*******************************************************************************

      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.6.0
      -------------------------------------------------------------------

Error: External loader C:\Program cannot be loaded.
Error: External loader Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer/bin/ExternalLoader/MX25L512G_STM32F769I-DISCO.stldr cannot be loaded.
ST-LINK SN  : 066BFF544856846687081250
ST-LINK FW  : V2J35M26
Board       : STM32F769I-DK
Voltage     : 3.24V
SWD freq    : 4000 KHz
Connect mode: Normal
Reset mode  : Software reset
Device ID   : 0x451
Revision ID : Rev Z
Device name : STM32F76x/STM32F77x
Flash size  : 2 MBytes
Device type : MCU
Device CPU  : Cortex-M7

Memory Programming ...
Opening and parsing file: EmbeddedWizard-STM32F769-Discovery.hex
  File          : EmbeddedWizard-STM32F769-Discovery.hex
  Size          : 5411896 Bytes
  Address       : 0x08000000

Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 7]
Erasing memory corresponding to segment 1:
Download in Progress:
█████████▒ 19% << Progress got stuck here when flashing the Master Demo.

When flashing the Hello World example, the process actually completes (as shown), but the screen remains black even when power cycled.
Memory Programming ... 
Opening and parsing file: EmbeddedWizard-STM32F769-Discovery.hex   
File          : EmbeddedWizard-STM32F769-Discovery.hex   
Size          : 292648 Bytes   
Address       : 0x08000000 
Erasing memory corresponding to segment 0: 
Erasing internal memory sectors [0 4] 
Erasing memory corresponding to segment 1: 
Download in Progress: ██████████████████████████████████████████████████ 100%██ 

File download complete 
Time elapsed during download operation: 00:00:07.469 
RUNNING Program ...   
    Address:      : 0x8000000 
Application is running 
Start operation achieved successfully 
EmbeddedWizard-STM32F769-Discovery successfully flashed !!

In either case I observed that the COM LED on the ST-Link connection does blink between green/red which means communication is going.
If I launch STM32CubeProgrammer, I am able to connect to the discovery board.
 

The Environment path to the STM32CubeProgrammer is:

set STM32CubeProgrammer_Path=C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer

And the file MX25L512G_STM32F769I-DISCO.stldr does exist in

C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader

My STM32CubeProgrammer is version 2.6.0

What am I missing?

1 Answer

0 votes
by
Hello,

it seems to me that something went wrong during the installation of your STM32CubeProgrammer...

I just verified the download on the STM32F769-Discovery board with the provided Build Environment and STM32CubeProgrammer (CLI) version 2.5.0.

Can you try to flash one of the binaries (MasterDemo or the HelloWorld created by yourself) by using the STM32CubeProgrammer IDE? Don't forget to select the external flash loader.

If this does not work, please try to reinstall the STM32CubeProgrammer IDE.

Best regards,

Manfred.
by

Hello,

Thanks for the suggestion. Flashing both MasterDemo and the locally built HelloWorld with STM32CubeProgrammer IDE 2.6.0 works.

Out of curiosity, did you have your STM32CubeProgrammer installed in the default path? (i.e. with "Program Files")?

This error makes me think having a space in the path confuses the STM32CubeProgrammer CLI.

Error: External loader C:\Program cannot be loaded.
Error: External loader Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer/bin/ExternalLoader/MX25L512G_STM32F769I-DISCO.stldr cannot be loaded.
by

Hello,

yes, I am using exactly the default path as it is defined in the StartGccBuildEnvironment.bat file. The blanks should not cause the issue as the path is used in "...".

I'm wondering, because you mentioned that the MX25L512G_STM32F769I-DISCO.stldr does not exist at that location... Do you have installed somewhere a second STM32CubeProgrammer?

Best regards,

Manfred.

by

Hello,

Just to clarify, the MX25L512G_STM32F769I-DISCO.stldr file does exist at that location, it's just that for me the CLI tool cannot seem to find it because I think it is not handling "Program Files" as passed from the .bat files. I do not have a second STM32CubeProgrammer installed.

In any event, I am unblocked now, I can flash using the STM32CubeProgrammer IDE instead of its CLI from .bat files. Just sharing my observations in case others encounter the same issue while getting started.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...