Skip to main content
Associate
August 16, 2024
Solved

Can't choose Data Enable polarity of LTDC if DSI is enabled and missing pins for STM32U5G9NJ

  • August 16, 2024
  • 3 replies
  • 2322 views

We are using MIPI-DSI on a STM32U5G9NJ.

First bug: There are 2 pins missing in the Pinout View: D4 and J9. Both are VDD11 pins.

 

Second bug:

After Enabling LTDC and DSI in STM32CubeMX I can't select "Active High" for "Data Enable Polarity" in LTDC -> Parameter settings.

 

To reproduce:

* Create project with STM32U5G9NJ (or a different STM32U5G9 package)

* Enable HSE (System Core -> RCC -> HSE)

* Enable LTDC (with a DSI setting; which one doesn't matter)

* Now I'm able to choose "Active High" for "Data Enable Polarity"

* Enable DSI (mode doesn't matter)

* Now I can only select "Active Low" for "Data Enable Polarity" (if "Active High" was selected previously, LTDC displays an error telling me to select something different)

We use a display where we need DE polarity "Active high". So we can see that this setting is applied and making a huge difference when changing it manually in the source code.

Best answer by Mahmoud Ben Romdhane

Hello @upCntx ,

 

Further to your comment, I can confirm that there is a mismatch between STM32CubeMX and DSI14102.

MahmoudBenRomdhane_0-1726064340609.png

Thank you for bringing this issue to our attention, it has been reported internally to Dev team for correction (under internal ticket number 190802).

 

Thanks.

Mahmoud

3 replies

Technical Moderator
September 4, 2024

Hello @upCntx ,

First let me thank you for posting and welcome to the ST Community.

The package that matches with the STM32U5G9NJ is : TFBGA216 DSI SMPS.

This package does not include a pin with J9 number :

MahmoudBenRomdhane_0-1725446581881.png

And includes PI7 pin

 

MahmoudBenRomdhane_2-1725447052809.png

MahmoudBenRomdhane_3-1725447870336.png

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
upCntxAuthor
Associate
September 10, 2024

I'm sorry, after writing some of the text I changed the package without double-checking that both bugs are present in this one.

The faulty package is exactly the UFBGA-144, therefore the STM32U5G9ZJ.

Take a look:

upCntx_0-1725988061102.png

 

Technical Moderator
September 11, 2024

Hello @upCntx ,

 

Further to your comment, I can confirm that there is a mismatch between STM32CubeMX and DSI14102.

MahmoudBenRomdhane_0-1726064340609.png

Thank you for bringing this issue to our attention, it has been reported internally to Dev team for correction (under internal ticket number 190802).

 

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
KDJEM.1
Technical Moderator
September 4, 2024

Hello @upCntx ,

It is mentioned in AN4860 that "In all DSI modes, LTDC NOT DE polarity must be set to active low and so DSI DE polarity must be active high. The inverse cannot be used."

KDJEM1_0-1725457971018.png

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
upCntxAuthor
Associate
September 10, 2024

That's why I'm telling you to update your configuration and documentation.

I've tested it.

With "Active Low" our display shows some garbage, with "Active High" it's working properly.

At least for the U5 this flag is working.

Never trust some documentation when someone tells you the reality is different. Especially if the documentation is old and covers multiple families of STM32s. I guess no one really checks all the details for the families added later on. ;)

 

PS: You didn't read my post properly. I don't know why someone would give you Kudos for your answer.

KDJEM.1
Technical Moderator
September 10, 2024

Hello @upCntx ,

Thank you for updating post.

Could you please give more detail about the DSI mode. What are the states of the DEP and DEPOL bits in DSI_LPCR register and in LTDC_GCR register?

Could you please share your project.

I reported the issue internally for checking.

Internal ticket number: 190180 (This is an internal tracking number and is not accessible or usable by customers).

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
KDJEM.1
Technical Moderator
September 11, 2024

Hello @upCntx ,

 

Thank you for these information and details.

Now I see the real problem - in the CubeMX the configuration says "DE polarity", but in reality it's "notDE polarity" (the exported CUBE HAL source code contains the line "hltdc.Init.DEPolarity = LTDC_DEPOLARITY_AL;"). So I think you should change the description.

I understand your point of view and I reported it to the relevant team.

Thank you for your contribution in STCommunity, all your questions, reported bugs, suggestions and comments.... are welcome.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.