Skip to main content
egoltzman
Senior
March 10, 2020
Question

When I switch a working TouchGFX application from using LCD16bpp to LCD8bpp_ARGB2222 I get an Hard Fault when calling HAL::initialize()

  • March 10, 2020
  • 2 replies
  • 770 views

I have a working F429 CubeIDE project that I want to switch from 16BPP to 8BPP, I changed:

static LCD16bpp display;

to

static LCD8bpp_ARGB2222 display;

and when I run the application I fall into Hard Fault when the application calls HAL::initialize().

Any idea what could be wrong?

Thanks

This topic has been closed for replies.

2 replies

Alexandre RENOUX
Visitor II
March 11, 2020

I do not think that changing only this line of code will make the application running.

Do you use assets in your project ? If yes, are they in the ARGB2222 format ? What display and display interface do you use ? Are you sure they can both support ARGB2222 ? Did you make sure that your hardware is correctly configured for ARGB2222 ?

Please check all these information and provide more details on your setup.

/Alexandre

egoltzman
egoltzmanAuthor
Senior
March 11, 2020

Hello Alexander and thank you for getting back to me.

This single line that I put here is not the only change, I just mention it here to try and clarify the issue.

I did changes on both the Designer project and on the LTDC definition under the CubeMX (Reflected in MX_LTDC_Init, basically using L8 with lookup color table)

Also, I'm currently trying this with no assets, only draw boxes.

I'll further explore this issue to see if I defined something wrong.

Thanks,

Eyal