Skip to main content
N ORhan
Associate III
May 22, 2018
Question

LTDC Register Write Problem

  • May 22, 2018
  • 1 reply
  • 567 views
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.

    This topic has been closed for replies.

    1 reply

    waclawek.jan
    Super User
    May 22, 2018
    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

    N ORhan
    N ORhanAuthor
    Associate III
    May 22, 2018
    Posted on May 22, 2018 at 15:43

    Thanks JW, its OK now.