TouchGFX and Textarea problem
Hello
This problem has arised when creating a more complex program and I have narrow it down to a single test.project. I have created the usual project for the STM32F769 Disco using TouchGFX 4.20 Designer . I have set only one single TextArea, configured a wilcard to use the buffer with enough space and initial value of 0. The wildcard range is 0-9
Then, I have exported the source code and I have modified it in STM32CubeIDE 1.10.1 and HAL1.16 to increase a counter in Screen1View::handleTickEvent() with the following code
Unicode::snprintf(textArea1Buffer,TEXTAREA1_SIZE,"%u",ctr++);
textArea1.resizeToCurrentText();
textArea1.invalidate();
ctr is a uint32_t protected member in Scereen1View.hpp
The problem is:
- Executable generated by the simulator runs as expected.
- Elf compiled and flashed by the TouchGFX Designer runs in the target as expected.
- Elf compiled by STM32CubeIDE does not work.It crashes when initializing the TextArea1 in Screen1ViewBase
Unicode::snprintf(textArea1Buffer, TEXTAREA1_SIZE, "%s", touchgfx::TypedText(T___SINGLEUSE_YO0H).getText());
either by not passing an assertion in touchgfx::TypedText::getText() (assert(IsValidID...) or some other times (I cannot say when) by triggering the MemManage_Handler.
I have used TextAreas in a previous project with the same toolchain and I had never an issue.
Any hint on what I am doing wrong is greatily appreciated.
Best regards
