TouchGFX not updating framebuffer. (or not running at all)
Im new to TouchGFX. Im goung to create my first demostration on a custom setup.
I got a NUCLEO-L4A6ZG board with a display shield using an MCU interface.
This works:
- Internal frame buffer 320x240x2 bytes
- Driver for display, bit banging GPIOs for display control
- Task that maps the frame buffer to the display periodically.
- When I alter the frame buffer manually it is is shown correctly on the display.
I have no touch controller on the hardware, expecting to use hardware buttons.
This should have been the hard part. But now I have to get TouchGFX working. I got:
- Two screens defined in the TouchGFX designer with buttons that alters between the screens.
- Works on simulator
- Generates code with no warnings/errors.
- Everything compiles in STM32MXCube IDE.
- From the main function MX_TouchGFX_Init and MX_TouchGFX_PreOSInit is called, and returned.
- A second task calls the MX_TouchGFX_Process which does not return ast it should not.
In the project browser I can see code generated for the screens and the buttons on the screens. And I can verify that the code is actually in the elf-file and flashed to the board.
But:
- The display is blank. Framebuffer never updaded by TouchGFX.
- I can see that the MX_TouchGFX_Process is calling os_Delay periodically.
- The code for the screens is never called.
- When I open CubeMX from the Cube IDE, I got a warning that TouchGFX 4.24.2 is not found.And I should use Embedded Software Packages updates to fix it. But there is not updates. Cube MX allows me to select TouchGFX 4.24.1
- When start TouchGFX Designer from the Cube IDE by clicking on the thouchgfx file in the project browser, it starts the designer in version 4.24.2. (Same version if I check in windows Add/remove programs)
So here is the questions:
- How do I fix the version confusion? Should I care?
- How do I debug TouchGFX?
- Is there some kind of status function to call? to see whats going on?
Please give some hints. Thanks in advance.
Regards
Leonhardt
