cancel
Showing results for 
Search instead for 
Did you mean: 

STM32IDE+TouchGFX can't start.

Sergii Volchenko
Associate III

I try to connect LCD by SPI to Nucleo-767 and TouchGFX.

LCD screen work perfect and I could draw on it without a problem, but I stuck with TouchGFX.

I found that void TouchGFXHAL::flushFrameBuffer never call.

Check this video - https://youtu.be/1UhEx7E_dH0

What I did:

  1. New project for my board
  2. Make timer for VSync each 15ms
  3. Add TouchGFX Generator package
  4. Add CRC
  5. In TouchGFX settings set size 320x240 and RGB888.
  6. Open TouchGFX Designer, add button, and generate code.
  7. In code add start & callback for timer and call function for generate tick
  8. add switch on led on board.

LED doesn't light.

Of course, I checked that timer callback works, led works.

In debug mode I found that app stuck in lockFrameBuffer function.

What I did wrong?

24 REPLIES 24

Other ticket writes about bug hang lockframebuffer in singlebuffer and no DMA, then i recommend you enable D2DMA plus irq, select it as TouchGFX accelerator. Second tickets writes about DCACHE and 4.16 with cortex7 . Try read and apply config to cortex 7 part in cube MX.

And next maybe stop you set framebuffer to internal ram by allocation, this is too not simplky with MMU ...

AND as primary good choice for build is select on create project for nucleo init onboard YES and not NO ...

dcache disabled, d2dma I tried without success (I read these tickets).

About nucleo init not sure that understand - could you explain please.

When you create project and click C++ name after accept wizard ask : Init nucleo periph... and you select NO.

I mean better is select YES.

When you not suceed try add one unlock call to initialize. I dont have this nucleo then cant help you with debug...

And for example bug in ticket say when dcache is disabled then code dont work TouchGFX 4.16.0 D-Cache flush causes HardFault... (st.com)

When you cant step forward ty other TouchGFX version , i recommend start with 4.14

Very sorry that we waste so much time only because you didn't check my video.

I selected YES....

Anyway very interesting why so big company as STM can't create tools that could work from the beginning without trick & so on...Probably better I will use LVGL lib...

Oh sorry i check it , but you use MAC and here YES is on RIGHT, in PC is on LEFT funny. But this isnt source ...

And for future video recorded on 4K monitor resolution is unreadeble.