cancel
Showing results for 
Search instead for 
Did you mean: 

Run target on STM32H747I-DISCO failed

victagayun
Senior III

Hello

I am using graph on STM32H747I-DISCO. Running simulation is ok, like having the sine wave on it but when I click "Run Target" I get this error...

Run Target
    Generate
        Done
    Generate Assets
        make -f simulator/gcc/Makefile assets -j8
        Converting images
        Reading ./application.config
        Done
    Post Generate
        touchgfx update_project --project-file=simulator/msvs/Application.vcxproj && touchgfx update_project --project-file=../EWARM/TouchGFX.ewp
        Done
    Compile
        make -f ../gcc/Makefile -j8
        STM32CubeProgrammer is placed in Program Files
        STM32CubeProgrammer is placed in Program Files
        Converting images
        Reading TouchGFX/application.config
        STM32CubeProgrammer is placed in Program Files
        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 -j8 flash
        STM32CubeProgrammer is placed in Program Files
        STM32CubeProgrammer is placed in Program Files
        Converting images
        Reading TouchGFX/application.config
        STM32CubeProgrammer is placed in Program Files
        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
        STM32CubeProgrammer is placed in Program Files
              -------------------------------------------------------------------
                               STM32CubeProgrammer v2.5.0                  
              -------------------------------------------------------------------
        
        ST-LINK SN  : 003100173137511539383538
        ST-LINK FW  : V3J7M2
        Board       : STM32H747I-DISCO
        Voltage     : 3.23V
        Error: ST-LINK error (DEV_TARGET_NOT_HALTED)
        2nd connect tentative with a lower frequency (8MHz)
        ST-LINK SN  : 003100173137511539383538
        ST-LINK FW  : V3J7M2
        Board       : STM32H747I-DISCO
        Voltage     : 3.23V
        Error: ST-LINK error (DEV_TARGET_NOT_HALTED)
        gcc/Makefile:334: recipe for target '_extflash_' failed
        make[1]: *** [_extflash_] Error 1
        make: *** [flash] Error 2
        ../gcc/Makefile:50: recipe for target 'flash' failed
        Failed
    Failed

1 ACCEPTED SOLUTION

Accepted Solutions

Yes, it is working on 2.5.0, see my previous answer (at the end)...

View solution in original post

5 REPLIES 5
victagayun
Senior III

Any demo would display the same error...

victagayun
Senior III

I use on another PC with cubeprogrammer 2.6.0, here is different error.

Run Target
    Generate
        Done
    Generate Assets
        make -f simulator/gcc/Makefile assets -j8
        Converting images
        Reading ./application.config
        Done
    Post Generate
        touchgfx update_project --project-file=simulator/msvs/Application.vcxproj && touchgfx update_project --project-file=../EWARM/TouchGFX.ewp
        Done
    Compile
        make -f ../gcc/Makefile -j8
        STM32CubeProgrammer is placed in Program Files
        STM32CubeProgrammer is placed in Program Files
        Converting images
        Reading TouchGFX/application.config
        STM32CubeProgrammer is placed in Program Files
        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 -j8 flash
        STM32CubeProgrammer is placed in Program Files
        STM32CubeProgrammer is placed in Program Files
        Converting images
        Reading TouchGFX/application.config
        STM32CubeProgrammer is placed in Program Files
        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
        STM32CubeProgrammer is placed in Program Files
              -------------------------------------------------------------------
                               STM32CubeProgrammer v2.6.0                  
              -------------------------------------------------------------------
        
        Error: External loader C:\Program cannot be loaded.
        Error: External loader Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader\MT25TL01G_STM32H747I-DISCO.stldr cannot be loaded.
        ST-LINK SN  : 003100173137511539383538
        ST-LINK FW  : V3J7M2
        Board       : STM32H747I-DISCO
        Voltage     : 3.24V
        SWD freq    : 24000 KHz
        Connect mode: Normal
        Reset mode  : Software reset
        Device ID   : 0x450
        Revision ID : Rev V
        Device name : STM32H7xx
        Flash size  : 2 MBytes
        Device type : MCU
        Device CPU  : Cortex-M7/M4
        
        
        
        Memory Programming ...
        Opening and parsing file: target.hex
          File          : target.hex
          Size          : 2475568 Bytes
          Address       : 0x08000000 
        
        
        Erasing memory corresponding to segment 0:
        Erasing internal memory sector 0
        Erasing memory corresponding to segment 1:
        Erasing internal memory sectors [0 1]
        Erasing memory corresponding to segment 2:
        Download in Progress:
        ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±± 0%
        ÛÛÛÛÛÛÛÛÛÛ 20%
        
        Error: failed to download Segment[2]
        Error: failed to download the File
        
        Hard reset is performed
        gcc/Makefile:334: recipe for target '_extflash_' failed
        make[1]: *** [_extflash_] Error 1
        ../gcc/Makefile:50: recipe for target 'flash' failed
        make: *** [flash] Error 2
        Failed
    Failed

previous error using another PC with cubeprogrammer 2.5.0 seems to be ok now.

Shripal_k
Associate

@victagayun​  I am also having exactly same problem when trying with STM32CubeProgrammer V2.6.0 on STM32H747i-Disco board. Can someone please provide any solution.

Run Target
    Generate
        Done
    Generate Assets
        make -f simulator/gcc/Makefile assets -j8
        Converting images
        Reading ./application.config
        Done
    Post Generate
        touchgfx update_project --project-file=simulator/msvs/Application.vcxproj && touchgfx update_project --project-file=../EWARM/TouchGFX.ewp
        Done
    Compile
        make -f ../gcc/Makefile -j8
        STM32CubeProgrammer is placed in Program Files
        STM32CubeProgrammer is placed in Program Files
        Converting images
        Reading TouchGFX/application.config
        STM32CubeProgrammer is placed in Program Files
        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 -j8 flash
        STM32CubeProgrammer is placed in Program Files
        STM32CubeProgrammer is placed in Program Files
        Converting images
        Reading TouchGFX/application.config
        STM32CubeProgrammer is placed in Program Files
        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
        STM32CubeProgrammer is placed in Program Files
              -------------------------------------------------------------------
                               STM32CubeProgrammer v2.6.0                  
              -------------------------------------------------------------------
        
        Error: External loader C:\Program cannot be loaded.
        Error: External loader Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader\MT25TL01G_STM32H747I-DISCO.stldr cannot be loaded.
        ST-LINK SN  : 002B00453137510D39383538
        ST-LINK FW  : V3J3M2
        Board       : STM32H747I-DK
        Voltage     : 3.23V
        SWD freq    : 24000 KHz
        Connect mode: Normal
        Reset mode  : Software reset
        Device ID   : 0x450
        Revision ID : Rev V
        Device name : STM32H7xx
        Flash size  : 2 MBytes
        Device type : MCU
        Device CPU  : Cortex-M7/M4
        
        
        
        Memory Programming ...
        Opening and parsing file: target.hex
          File          : target.hex
          Size          : 516204 Bytes
          Address       : 0x08000000 
        
        
        Erasing memory corresponding to segment 0:
        Erasing internal memory sector 0
        Erasing memory corresponding to segment 1:
        Erasing internal memory sectors [0 1]
        Erasing memory corresponding to segment 2:
        Download in Progress:
        ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±± 0%
        ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ 100%
        
        Error: failed to download Segment[2]
        Error: failed to download the File
        
        Hard reset is performed
        gcc/Makefile:334: recipe for target '_extflash_' failed
        make[1]: *** [_extflash_] Error 1
        make: *** [flash] Error 2
        ../gcc/Makefile:50: recipe for target 'flash' failed
        Failed
    Failed

Hi,

Could you download and try STM32CubeProgrammer 2.5 ? There are issues with the latest version 2.6 so we recommend to not use 2.6 until the next patch release.

/Romain

Yes, it is working on 2.5.0, see my previous answer (at the end)...