cancel
Showing results for 
Search instead for 
Did you mean: 

LTDC Register Write Problem

N ORhan
Associate III
Posted on May 22, 2018 at 14:30

Hi everyone,

I'm using Atollic True Studio 9.0.0 for my STM32F746G DISCO board project. No HAL Drivers, no CUBEMX, programming mcu manually. I have a debug problem. After i build and download the code, pressing the 'resume' button starts my application but when i 'pause' debug session and look at my 'LTDC register' values, it seems no register is configured as in my 'register configuration function'. However, if i restart the debug and continue debugging step by step, it enters my register configuration function and configures registers of LTDC as my wish. What can be the reason behind this problem? Also i have another issue about this problem such that only the LTDC registers are facing this issue. Can you please help me?

Thanks a lot.

2 REPLIES 2
Posted on May 22, 2018 at 15:17

It may be that there's some delay needed between you enable the LTDC clock in RCC, and you start writing into LTDC registers.

With the first written LTDC register, try to loop writing it and reading it back, until the readback matches the written value.

JW

Posted on May 22, 2018 at 15:43

Thanks JW, its OK now.