2020-08-05 08:37 AM
Hello everyone,
I am currently working on a project with touchGFX (4.13.0) and I want to use CMSISv2 functions and calls. Since the default configuration from touchGFX is CMSISv1, I open the cubeMX project created by touchGFX and changed the CMSIS version in the FreeRTOS config menu. I generated files from cubeMX, then generated files from touchGFX. And when I "Run Target" I get this error :
Run Target
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Post Generate Target
touchgfx update_project --project-file=../STM32F7508-DK.ioc --platform=m7
Done
Compile
make -f ../gcc/Makefile -j8
Generating TouchGFX/generated/texts/src/Texts.cpp
Generating TouchGFX/generated/texts/src/LanguageGb.cpp
Compiling TouchGFX/generated/fonts/src/Font_verdana_40_4bpp_0.cpp
Compiling TouchGFX/generated/fonts/src/Kerning_verdana_40_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/Kerning_verdana_20_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/Kerning_verdana_10_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/Table_verdana_10_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/Table_verdana_40_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/Font_verdana_20_4bpp_0.cpp
Compiling TouchGFX/generated/fonts/src/Font_verdana_10_4bpp_0.cpp
Compiling TouchGFX/generated/fonts/src/Table_verdana_20_4bpp.cpp
Compiling TouchGFX/generated/texts/src/LanguageGb.cpp
Compiling TouchGFX/generated/texts/src/Texts.cpp
Compiling TouchGFX/target/generated/TouchGFXGeneratedHAL.cpp
Compiling TouchGFX/target/generated/STM32DMA.cpp
Compiling TouchGFX/target/generated/TouchGFXConfiguration.cpp
Compiling TouchGFX/target/TouchGFXHAL.cpp
Compiling TouchGFX/target/generated/OSWrappers.cpp
TouchGFX/target/generated/OSWrappers.cpp:21:10: fatal error: cmsis_os2.h: No such file or directory
#include <cmsis_os2.h>
^~~~~~~~~~~~~
compilation terminated.
gcc/Makefile:327: recipe for target 'TouchGFX/build/STM32F7508-DK/TouchGFX/target/generated/OSWrappers.o' failed
make[2]: *** [TouchGFX/build/STM32F7508-DK/TouchGFX/target/generated/OSWrappers.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Compiling TouchGFX/target/TouchGFXGPIO.cpp
make[1]: *** [generate_assets] Error 2
gcc/Makefile:294: recipe for target 'generate_assets' failed
../gcc/Makefile:47: recipe for target 'all' failed
make: *** [all] Error 2
Failed
Failed
So when touchGFX compiles, it does not find CMSISv2 files. I tried messing around with some includes or paths but I could not come up with something useful...
I appreciate any help you could give me!
Thanks in advance!
Alex
Solved! Go to Solution.
2020-08-11 02:05 AM
Hello,
Did you program your Flash correctly ?
Because if your code is running but your screen is black, that means that the data of the image is not retrieved correctly.
Try to put a box on top of your image in your start up screen. And see if you see the box.
When you talk about "a different page as start up screen", what the difference with the one not working ?
/Alexandre
2020-08-12 06:45 AM
Hello,
I was able to fix my issues, turns out that the main problem was that the make file was note correctly generated (had to changed CMSISv1 refference to CMSISv2). The rest were some coding errors on my part.
Some thing strange tho, I had a screen with a big image (bigger resolution than the screen I am displaying on) that work perfectly on CMSISv1. When I switched to CMSISv2, the image display operation crashed the TouchGFX thread... I don't know why. The fix was simply to reduce the resolution of the image to match the screen.
Thank you for all the help!!
Alex