2019-06-02 11:21 PM
Hi All , its been almost a week that I'm trying to integrate CubMX for configuration, TouchGFX for Graphics and workbech! no success. I am using STM32F429I board.
What i could manage to do:
https://www.youtube.com/watch?v=xZ0pPhQCQUY&t=11s
However, I am still facing the following error :
Regardless to the fact that i excluded all simulator related files and folder, I still getting :
"Description Resource Path Location Type
fatal error: SDL2/SDL_video.h: No such file or directory HALSDL2.hpp /touch_third/Middlewares/ST/TouchGFX/touchgfx/framework/include/platform/hal/simulator/sdl2 line 22 C/C++ Problem
"
would really appreciate any guidance.
Thanks
2019-06-03 12:52 AM
Hi @Ash,
It's difficult to follow the compilation error from the screenshot, but there must be something trying to include SDL2. Maybe do a project wide search for which .cpp files do that and exclude them from build.
/Martin
2019-06-03 09:25 PM
Hi @Martin KJELDSEN , Thanks a lot for your response,
I could manage to compile the project by excluding folders as following :
Also, could upload the code and see the image on the display.
Then i followed instruction to fix the touch functionality for this board. i copied necessary driver files from CubMX and added "stm32f429i_discovery_ts.h" in "STM32F4TouchController.cpp".
modified needed lines and faced issue with this part:
BSP_TS_GetState(&state);
if (state.TouchDetected)
{
x = state.x;
y = state.y;
return true;
}
looking at " stm32f429i_discovery_ts.h"
i found this declaration:
typedef struct
{
uint16_t TouchDetected;
uint16_t X;
uint16_t Y;
uint16_t Z;
}TS_StateTypeDef;
so i change x to X and y to Y. this one solved!
Then i faced an issue with multiple function deceleration " void LCD_Delay(uint32_t Delay)" . it was decelerated in both , "BoardConfiguration.cpp" and "stm32f429i_discovery.c".
by removing the deceleration on one them(doesn't matter which one!) i could manage to upload the code and having the touch functionality too.
Happy by this, i tried to add a simple blink test too.
for what ever reason i could never blink the LED on the board until i removed " osKernelStart();" from the main.cpp . then the LED Blink, have the image on the screen BUT no Touch functionality.
Any suggestion?
Thanks
2019-06-03 09:50 PM
Probably, the issue backs to my RTOS default task schedule implementation.
Thanks
2019-06-05 08:09 AM
Hello @Ash. From my (fading) memory, believe the issue is that the wizard is truly missing the referenced file.
As a possible work around, create a fresh project but start with the TouchGFX toolchain -> select your same target kit -> create a simple GUI -> compile and test with the simulator. All working ok? If not, report back.
Assuming this is working correctly, navigate to the folders on your PC using the browse code button and Windows file manager. Now go to the top of this project generated by Touchgfx and then search for the above missing file. It should appear inside the SIMULATOR folder.
Next, open up File Manager (new window) and dig down to your non-working project and note that the same file is missing!!
Copy the folder and structure from the good project to the non-working project and compile again.
Please post your results. Hope this works for you.
2019-06-05 03:47 PM
Hi @Mon2 , Thanks a lot for your response,
I could manage to compile the project and enable the touch functionality as i described in the above reply.
TouchGFX seems to be a great tool for GUI. However, for me, lots of headache to to make it work on STM32F429i board. not sure if it works on custom designed boards and touchscreens. I hope they have enough and proper support to improve it.
I just recall, user codes on the defaultTask doesn't work. I had to create a second task to be able to blink a LED.
Ash
2019-06-05 04:58 PM
Hello again @Ash . Quickly review the following document we wrote after a lot of R&D on the same kit. The tools are based on the IAR / SW4STM32 compilers (Free):
https://s3.amazonaws.com/axxonshare/my_combo_tutorial.zip
Hope this helps a bit.
Kumar
2019-06-06 04:04 PM
Thanks a lot @Mon2 , it was helpful.