2021-05-11 05:02 AM
2021-05-11 11:30 PM
Hi @ECoud.1,
Downloading your project file I notice that the project is a "C" project. Not a C++ project. Maybe you initially created it as a C project?
You can convert it into a C++ project and all settings from the C Compiler/Linker will be copied/migrated to the corresponding C++ tools.
Right-click on the project > Convert to C++
After doing that, and opening TGFX Designer 4.16.1 and clicking generate, I have all the files needed to successfully compile the project.
But the linking fails since the TouchGFX_Framebuffer needs 750KB RAM and the device only has 320KB...
So, I assume you have to also modify the size of this frame buffer (rely on partial frame buffers, or rely on external RAM depending on what performance you need). I by-passed it by modifying the linker script to set :
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 1024K
Only to validate that the project could build successfully. I can of course not run this code... =)
2021-05-12 12:29 AM
Hi @mattias norlander
Thanks for you help :D . I have another question if I want to save my program on the board how can I do that ?
2021-05-12 01:05 AM
@mattias norlander , yes because when we turn off and turn on the board, software doesn't stay. It seems removed.
2021-05-12 02:14 AM
Are you using the RAM linker script to build the application instead of the FLASH?
Looking at the project you uploaded you are relying on the flash variant (STM32F469NIHX_FLASH.ld)...
Do you have external memories? If so your application must initialize those memories....
The application could work as intended when debugging because the debugger would first initalize the external memory using a flash loader file. But if you later power off/on the board then your application code must perform the same initialization.
Those are the two main sources that could lead to this new found issue (that I can think of right now).
2021-05-12 02:25 AM
Thanks for your help I will try this.
2021-05-14 08:03 AM
Hello @mattias norlander
I have tried another thing to make my project work. I've started a project with touchgfx by selecting stm32f469i-disco board. Then I modify the cubeide to have analog value display on the screen. To do that I have added a task and a semaphore on touchgfx task. I have tried to add .h and .c files on the project but it didn't work so I have deleted the files. Next I choosed to put all my functions on the main file. When I compile the project I have no errors but touchgfx Interactions doesn't work. I send you my new project in attached file. Could you please check it ?
Best Regards