2020-01-19 11:02 AM
hi everyone,
i wanted to create a project with touchGFX but there are errors, i just create the graphic interface, i didn't add any code!
even though when i tried to upload to my card an example it said error too!
how can i resolve this?
Solved! Go to Solution.
2020-01-26 04:13 AM
It's working as intended =) You're getting the right ideas now.
As i said, CubeMX does not know anything about touch controllers. This is BSP! It only does MCU configuration.
The application template comes with a working project. What we did is start from cubemx/generator (like you) and then manually made the touch controller work, manually configured SDRAM and QSPI, because that's how you would bring up a custom board. The touch controller is display/board specific! CubeMX has no clue, so you need to write the code yourself. And that's what we did for you, in all the application templates.
/Martin
2020-01-20 02:06 AM
Please show me the log from the designer on why "run target" fails - Which board is this? You need ST-Link installed, and you haven't, is my guess.
As far as your linker issues - Looks like the generated image code has not been added to your project. This looks like Keil - Did you simply start from an Application template? The "Generate" code button should update the project with new files but you can add them manually - I'm not sure what could be wrong with that - but "Generate code" will fail if it cannot execute its "post generate command".
/Martin
2020-01-20 11:52 AM
hi @Martin KJELDSEN,
i use the F746G-disco board, I have cubeProgrammer installed, I found the trick but now i have an other problem, PostGenerateCommand "echo test" i put.
so, I created a project on cubeIDE, I added TouchGFX on the middleware, then I executed TouchGFX Designer, I created 2 screen to test, Then I opened again Cube IDE, and here the errors.
I use Cube IDE 1.0.2 and touchGFX 4.13.0
N.B.: I tried to exclude simulators files as someone did on a tutorial but it didn’t work!
is there any documents?
2020-01-20 12:48 PM
you'll have to have ST-Link installed. It's not the same as the cubeProgrammer (although it might rely on ST-Link as well? I'm not completely sure)
It seems that you have followed a guide for an old version of TouchGFX. Be aware that the 4.13.0 have significant enhancements and changes that most likely render the 'old' method obsolete.
2020-01-20 10:54 PM
it's the same. the issue isn't from there
2020-01-20 10:59 PM
Hi @Martin KJELDSEN
I did same as you did on youtube, but still not working!
please me @Martin KJELDSEN
2020-01-20 11:16 PM
hi @Martin KJELDSEN
I got 1 error now, please help, I can't understand how to make .elf
It said cannot find -llibtouchgfx-float-abi-hard
2020-01-21 05:05 AM
There's a linker error somewhere - Can you show me a bit further up the log window?
/Martin
2020-01-21 05:47 AM
Hi @Martin KJELDSEN ,
14:39:21 **** Build of configuration Debug for project Gaming_Project ****
make -j4 all
arm-none-eabi-g++ -o "Gaming_Project.elf" @"objects.list" -llibtouchgfx-float-abi-hard -mcpu=cortex-m7 -T"C:\Users\Idris\STM32CubeIDE\workspace_1.0.2\Gaming_Project\STM32F746NGHX_FLASH.ld" --specs=nosys.specs -Wl,-Map="Gaming_Project.map" -Wl,--gc-sections -static -L"C:\Users\Idris\STM32CubeIDE\workspace_1.0.2\Gaming_Project\Middlewares\ST\TouchGFX\touchgfx\lib\core\cortex_m7\gcc" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -lstdc++ -lsupc++ -Wl,--end-group
c:\st\stm32cubeide_1.0.2\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -llibtouchgfx-float-abi-hard
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:83: Gaming_Project.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
14:39:40 Build Failed. 1 errors, 0 warnings. (took 18s.447ms)
here what i excluded:
here the path I added:
I hope you'll find the error !
Thank you
2020-01-21 06:06 AM
arm-none-eabi\bin\ld.exe: cannot find -llibtouchgfx-float-abi-hard
Is the library on your library path ("Library Paths")? Also, the syntax looks strange, but this may just be representation from CubeIDE since the library seems to be correctly listed in your screenshot.
/Martin