2019-12-06 03:10 AM
Hi all,
we have a STM32F103 MCU with an Epson TFT controller with an internal framebuffer. This framebuffer is attached via FSMC bus and memory-mapped at 0x68000000. We already have an application that draws graphics successfully to our display (using Atollic TrueStudio 9). Now we are evaluating touchGFX as an abstraction layer to create the GUI. What we have achieved so far:
Most important steps we are doing in pseudo-code:
init_our_hardware();
NoDMA dma;
LCD16bpp display;
NoTouchController tc
touchgfx_init() {
HAL& hal = touchgfx_generic_init<STM32F103HAL>(dma, display, tc, 320, 240, 0, 0);
hal.setFrameBufferStartAddress((uint16_t*)frameBuf0, 16, false, false);
hal.lockDMAToFrontPorch(false);
// if we uncomment the next two lines we can draw pixels on the TFT via the framebuffer pointer:
// Rect r(0,0,320,240);
// hal.flushFrameBuffer(r);
}
create_20hz_timer();
HAL::getInstance()->taskEntry();
Finally we have two issues that are not clear to us / that do not work:
When trying to address problem 1 we already fiddled with Model::tick() and HAL::tick() but without success.
Thanks in advance for any ideas!
2021-02-11 10:46 AM
I have the same problem, could you check this thread please - https://community.st.com/s/question/0D73W000000VwnS/stm32idetouchgfx-cant-start?s1oid=00Db0000000YtG6&s1nid=0DB0X000000DYbd&emkind=chatterCommentNotification&emvtk=hYqBG56cqqMdHcEc1yqtmHCOiPmIYvIuCFlgTtCv6ss%3D&s1uid=0050X0000088f1Z&emtm=1611164145384&fromEmail=1&s1ext=0
I made video for better understanding what happens.
Thank you a lot!!!