cancel
Showing results for 
Search instead for 
Did you mean: 

Tutorial 1 Run target error

JKim.1006
Associate

I bought a stm32H747I DISCO for using TouchGFX.

Now I'm following steps of tutorial 1, but Run target is not working.

I will attach Detatiled Log.

Thank you.

---------------------------------------------------------------------------------------------------------------------------------------

Run Target

  Generate

    Done

  Generate Assets

    make -f simulator/gcc/Makefile assets -j8

    Converting images

    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

    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

    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

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

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

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

    make: *** [flash] Error 2

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

    Failed

  Failed

---------------------------------------------------------------------------------------------------------------------------------------

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III
/usr/bin/sh: C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe: No such file or directory

You need to install STM32CubeProgrammer.

/Martin

View solution in original post

7 REPLIES 7
Martin KJELDSEN
Chief III
/usr/bin/sh: C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe: No such file or directory

You need to install STM32CubeProgrammer.

/Martin

DMeis.1
Associate III
Run Target
    Generate
        Done
    Generate Assets
        make -f simulator/gcc/Makefile assets -j10
        Converting images
        Done
    Post Generate
        touchgfx update_project --project-file=../EWARM/STM32F7508_DISCO.ewp --gui-group-name=Application/User/TouchGFX/gui --generated-group-name=Application/User/TouchGFX/generated && touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
        Done
    Compile
        make -f ../gcc/Makefile -j8
        Converting images
        Linking TouchGFX/build/bin/target.elf
        Producing additional output formats...
          target.hex   - Combined internal+external hex
        Done
    Flash
        make -f ../gcc/Makefile -j8 flash
        Converting images
        Linking TouchGFX/build/bin/target.elf
        Producing additional output formats...
          target.hex   - Combined internal+external hex
        /usr/bin/sh: C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe: No such file or directory
        gcc/Makefile:311: recipe for target '_flash_' failed
        make[1]: *** [_flash_] Error 127
        make: *** [flash] Error 2
        ../gcc/Makefile:50: recipe for target 'flash' failed
        Failed
    Failed

I am getting a similar error, i don't know how to install STM32 ST-Link

Great. We've considered how to get around users having this issue, maybe bundling the tools and installing them as pre-requisites when installing designer.

OK so now I am getting this error...

    Flash
        make -f target/gcc/Makefile -j8 flash
        make: target/gcc/Makefile: No such file or directory
        make: *** No rule to make target 'target/gcc/Makefile'.  Stop.
        Failed
    Failed

Check target/gcc/Makefile - Do you have that file?

yeah the solution here was I went in configure-> build and changed the Target Flash from

make -f target/gcc/Makefile -j8 flash

to

make -f ../gcc/Makefile -j8 flash