Skip to main content
Visitor II
February 15, 2024
Solved

Connect STM32L476RG with Nucleo-GFX01M2

  • February 15, 2024
  • 2 replies
  • 1465 views

Hallo zusammen,

Ich bin noch Anfänger auf dem ganzen hier,

Ich habe folgendes Problem: 

Ich habe ein STM32L476RG Board und möchte nun das Nucleo-GFX01M2 Display in betrieb nehmen, ich habe alle nötigen Programme heruntergeladen(ST-Link, CubeIDE, CubePrg, und TouchGFXDesigner), nun weiss ich nicht ganz auf was ich achten muss oder wie ich vorgehen muss das ich vom TouchGFX etwas auf mein Display Importieren kann. 

Danke schonmal im voraus für die Hilfe!

 

Das ist der Code den ich aktuell bekomme wenn ich etwas über den TouchGFX auf mein Display laden möchte:

 

Program and Run Target
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Reading ./application.config
Reading ./target.config
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Post Generate Target
touchgfx update_project
.cproject file: ../STM32CubeIDE/.cproject
Writing STM32CubeIDE project file: ../STM32CubeIDE/.project
Writing STM32CubeIDE project file: ../STM32CubeIDE/.cproject
Done
Compile
make -f ../gcc/Makefile -j8
Reading TouchGFX/application.config
Reading TouchGFX/target.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
Done
Flash
make -f ../gcc/Makefile flash
Reading TouchGFX/application.config
Reading TouchGFX/target.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
-------------------------------------------------------------------
STM32CubeProgrammer v2.15.0
-------------------------------------------------------------------

ST-LINK SN : 0667FF555185754867205934
ST-LINK FW : V2J43M28
Board : NUCLEO-L476RG
Voltage : 3.25V
SWD freq : 4000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x415
Revision ID : Rev 4
Device name : STM32L4x1/STM32L475xx/STM32L476xx/STM32L486xx
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : 0x92
Debug in Low Power mode enabled



Memory Programming ...
Opening and parsing file: target.hex
File : target.hex
Size : 102.20 KB
Address : 0x08000000


Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 33]
Erasing memory corresponding to segment 1:
Erasing external memory sector 0
Error: failed to erase memory


Error: failed to erase memory
c:/TouchGFXProjects/FirstTry/gcc/include/flash_sections_int_ext.mk:5: recipe for target '_extflash_' failed
make[1]: *** [_extflash_] Error 1
../gcc/Makefile:47: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed
Failed

    This topic has been closed for replies.
    Best answer by KDJEM.1

    Hello @Dallle and welcome to the Community :),

    Thanks to develop your posts in English so it helps us, and the users of our community understand your question and try to help you.

    I've translated your question using a translation tool to increase the chances of getting you a reply from our experts and community members, since the majority interact in English.  

    Here is the translation of your post using Google translate:

    Hello everyone,

    I'm still a beginner at this whole thing, I have the following problem: I have an STM32L476RG board and now want to put the Nucleo-GFX01M2 display into operation. I have downloaded all the necessary programs (ST-Link, CubeIDE, CubePrg, and TouchGFXDesigner), now I don't really know what I have to pay attention to or how to proceed I need to be able to import something from TouchGFX onto my display.

    Thanks in advance for the help! This is the code I currently get when I want to load something onto my display via TouchGFX:

    Program and Run Target
    Generate
    Done
    Generate Assets
    make -f simulator/gcc/Makefile assets -j8
    Reading ./application.config
    Reading ./target.config
    Done
    Post Generate
    touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
    Done
    Post Generate Target
    touchgfx update_project
    .cproject file: ../STM32CubeIDE/.cproject
    Writing STM32CubeIDE project file: ../STM32CubeIDE/.project
    Writing STM32CubeIDE project file: ../STM32CubeIDE/.cproject
    Done
    Compile
    make -f ../gcc/Makefile -j8
    Reading TouchGFX/application.config
    Reading TouchGFX/target.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
    Done
    Flash
    make -f ../gcc/Makefile flash
    Reading TouchGFX/application.config
    Reading TouchGFX/target.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
    -------------------------------------------------------------------
    STM32CubeProgrammer v2.15.0
    -------------------------------------------------------------------

    ST-LINK SN : 0667FF555185754867205934
    ST-LINK FW : V2J43M28
    Board : NUCLEO-L476RG
    Voltage : 3.25V
    SWD freq : 4000 KHz
    Connect mode: Normal
    Reset mode : Software reset
    Device ID : 0x415
    Revision ID : Rev 4
    Device name : STM32L4x1/STM32L475xx/STM32L476xx/STM32L486xx
    Flash size : 1 MBytes
    Device type : MCU
    Device CPU : Cortex-M4
    BL Version : 0x92
    Debug in Low Power mode enabled



    Memory Programming ...
    Opening and parsing file: target.hex
    File : target.hex
    Size : 102.20 KB
    Address : 0x08000000


    Erasing memory corresponding to segment 0:
    Erasing internal memory sectors [0 33]
    Erasing memory corresponding to segment 1:
    Erasing external memory sector 0
    Error: failed to erase memory


    Error: failed to erase memory
    c:/TouchGFXProjects/FirstTry/gcc/include/flash_sections_int_ext.mk:5: recipe for target '_extflash_' failed
    make[1]: *** [_extflash_] Error 1
    ../gcc/Makefile:47: recipe for target 'flash' failed
    make: *** [flash] Error 2
    Failed
    Failed"

     

    Have you tried with an example in  X-CUBE-DISPLAY package like the project in this path en.X-CUBE-DISPLAY.3.0.0\Projects\NUCLEO-L476RG\Applications\GFX01M2_FreeRTOS?

    I hope this help you!

    Kaouthar

     

    2 replies

    KDJEM.1Answer
    Technical Moderator
    February 23, 2024

    Hello @Dallle and welcome to the Community :),

    Thanks to develop your posts in English so it helps us, and the users of our community understand your question and try to help you.

    I've translated your question using a translation tool to increase the chances of getting you a reply from our experts and community members, since the majority interact in English.  

    Here is the translation of your post using Google translate:

    Hello everyone,

    I'm still a beginner at this whole thing, I have the following problem: I have an STM32L476RG board and now want to put the Nucleo-GFX01M2 display into operation. I have downloaded all the necessary programs (ST-Link, CubeIDE, CubePrg, and TouchGFXDesigner), now I don't really know what I have to pay attention to or how to proceed I need to be able to import something from TouchGFX onto my display.

    Thanks in advance for the help! This is the code I currently get when I want to load something onto my display via TouchGFX:

    Program and Run Target
    Generate
    Done
    Generate Assets
    make -f simulator/gcc/Makefile assets -j8
    Reading ./application.config
    Reading ./target.config
    Done
    Post Generate
    touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
    Done
    Post Generate Target
    touchgfx update_project
    .cproject file: ../STM32CubeIDE/.cproject
    Writing STM32CubeIDE project file: ../STM32CubeIDE/.project
    Writing STM32CubeIDE project file: ../STM32CubeIDE/.cproject
    Done
    Compile
    make -f ../gcc/Makefile -j8
    Reading TouchGFX/application.config
    Reading TouchGFX/target.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
    Done
    Flash
    make -f ../gcc/Makefile flash
    Reading TouchGFX/application.config
    Reading TouchGFX/target.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
    -------------------------------------------------------------------
    STM32CubeProgrammer v2.15.0
    -------------------------------------------------------------------

    ST-LINK SN : 0667FF555185754867205934
    ST-LINK FW : V2J43M28
    Board : NUCLEO-L476RG
    Voltage : 3.25V
    SWD freq : 4000 KHz
    Connect mode: Normal
    Reset mode : Software reset
    Device ID : 0x415
    Revision ID : Rev 4
    Device name : STM32L4x1/STM32L475xx/STM32L476xx/STM32L486xx
    Flash size : 1 MBytes
    Device type : MCU
    Device CPU : Cortex-M4
    BL Version : 0x92
    Debug in Low Power mode enabled



    Memory Programming ...
    Opening and parsing file: target.hex
    File : target.hex
    Size : 102.20 KB
    Address : 0x08000000


    Erasing memory corresponding to segment 0:
    Erasing internal memory sectors [0 33]
    Erasing memory corresponding to segment 1:
    Erasing external memory sector 0
    Error: failed to erase memory


    Error: failed to erase memory
    c:/TouchGFXProjects/FirstTry/gcc/include/flash_sections_int_ext.mk:5: recipe for target '_extflash_' failed
    make[1]: *** [_extflash_] Error 1
    ../gcc/Makefile:47: recipe for target 'flash' failed
    make: *** [flash] Error 2
    Failed
    Failed"

     

    Have you tried with an example in  X-CUBE-DISPLAY package like the project in this path en.X-CUBE-DISPLAY.3.0.0\Projects\NUCLEO-L476RG\Applications\GFX01M2_FreeRTOS?

    I hope this help you!

    Kaouthar

     

    Technical Moderator
    February 23, 2024

    Hello,

    Have a look at this thread. It may help you.