This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LCDC clocks not enabled - causes exception

I am experiencing an intermittent issue with the LCD peripheral. Sometimes the clocks aren't enabled, so when the software tries to configure the raster mode, there is an exception.

This happens with both Starterware 2.0.0.6 and 2.0.0.7 demo applications.

I am running on an EVM board using XDS100v3 for my debugger in CCS 5.2.0.00069

Any thoughts or recommendations?

  • If I try to browse the memory location of the LCD Controller, it returns nothing, indicating (to me) that the clocks were not properly configured. This does not happen every time. Sometimes it works, some times it does not. 

  • Hi Jay,

    Are you facing problem with example/evmAM335x/raster/*.*   or  with example/evmAM335x/demo/*.* . After  calling "RasterClocksEnable" could you poll for the "LCDC_CLKC_ENABLE" register until LCDC_CLKC_ENABLE_CORE, LCDC_CLKC_ENABLE_DMA, LCDC_CLKC_ENABLE_LIDD bitfileds get set. I am not able to reproduce the issue reported by you.

    Regards

    Savinay

  • It happens with raster, demo, or grlib demo.

    If I can't read that memory address, how am I to poll that register?

    I used the demo application to test this again this morning. If I have the memory view open, with the LCDC registers displayed before enabling the clocks, the exception will occur. 

    Reloading the application or resetting it will not clear the issue. A power cycle seems to be the only solution. 

    So my solution seems to be, make sure my code (or debug tools) don't try to read a memory mapped registers prior to clocks being enabled. Seems doable, just an annoyance.