Skip to main content
Breeze1
Associate III
June 23, 2020
Solved

Touch can not initialize HAL

  • June 23, 2020
  • 5 replies
  • 2271 views

Touch Designer set pix format as ARGB2222, RGB LCD using LTDC setted pix format as L8. In a simple project ,now it can show correctly. But I imgrate this project with a Touch Designer Demo Project , it can not work correctly. Error show 0693W000001rFiSQAU.jpg

I found

uint16_t stride = lcd().framebufferStride();

Than deeper in LCD8bpp_ARGB2222.hpp

0693W000001rFjLQAU.jpg

this makes error.How can I fix the error?

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Great - When you use CubeMX, main.c will contain calls to start TouchGFX automatically so this is what's changed in your project. If you try to run TouchGFX in a task while it hasn't been configured yet, LCD will report this error.

/Martin

5 replies

Martin KJELDSEN
Principal III
June 23, 2020

Hi, it sounds like you haven't started TouchGFX yet. How did you create the project?

/Martin

Breeze1
Breeze1Author
Associate III
June 23, 2020

I creata a project using CUBE MX 5.6 and Touch Designer 4.13 , it simpley make LCD and touchgfx work. In this project not using DMA2D, touch desinger not using LTDC, save these setting and code.Most code in TouchGFXGeneratedHAL.cpp, OSWrappers.cpp.Setting in ProjectName.touchgfx, application.config, Application.props,app.mk

Then use Touch Designer make a Demo Project as below.

0693W000001rG5lQAE.jpg

I like the demo project architecture .

Then I migrate my own project which is only working on TouchGFX simulator, using demo project architecture, using the first project code and setting.

Breeze1
Breeze1Author
Associate III
June 24, 2020

Problem fixed.Maybe some setting Error.Now I use CUBE MX created project , it can work correctly now.

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
June 24, 2020

Great - When you use CubeMX, main.c will contain calls to start TouchGFX automatically so this is what's changed in your project. If you try to run TouchGFX in a task while it hasn't been configured yet, LCD will report this error.

/Martin