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 output is all 0x7fff

c6748

Here are the values of the relevant registers

REVID                         0x4C100102
LCD_CTRL                0x00000F01
RASTER_CTRL        0x00000080
RASTER_TIMING_0 0x07000130
RASTER_TIMING_1 0x0400013F
RASTER_TIMING_2 0x03300000
LCDDMA_CTRL        0x00000640

PINMUX16                  0x22222244
PINMUX17                  0x22222222
PINMUX18                  0x22088022

basically we set it up as 16-bit output with no palette

I thought I had it running with these parameters but now all of the output is 0x7fff.  I've checked and recheckd the palette and frame buffer - the palette is 0x4000, 0, 0, ..., 0 - the data is a good looking ramp pattern.

any ideas? why 0x7fff?  why not 0xffff?

  • Are you sure your DDR is configured correctly? How are you checking the frame buffer? Are you connecting to CCS and viewing through the memory window? Are you running your code standalone or loading it though CCS?

    Jeff

  • Are you sure your DDR is configured correctly? well the values look OK in the debugger.  I was getting good output at one point last week. then we fixed a problem with the ramp generator. now we only get 0x7fff as output.  the ramp pattern now looks good in DDR.

    How are you checking the frame buffer? emulator/debugger

    Are you connecting to CCS and viewing through the memory window? yes

    Are you running your code standalone or loading it though CCS? loading through CCS

  • And just to be sure, your LCDDMA_FB registers match with the location of your frame buffer in the DDR memory?

    You might want to look at other regions of the DDR memory map and see what the uninitialized values are. If you see a lot of 0x7fff, it might indicate your frame buffer address is not setup correctly.

    Jeff

  • LCDDMA_FB0 looks fine.  I copied the address from the base register into the memory display just to be sure.

    I have added initializing all my DDR to zero on startup, still getting bad output

    Kurt

  • If you have an EVM, LogicPD provides a board support library with working LCD code. You might want to look at the initialization done there and compare to what you're doing. Otherwise you could send your code to me privately and I could see how you are setting it up.

    Jeff

  • found it.  was in our stuff.  thanks for trying.

    P.S. I cannot see GPIO Bank 8 in the CCS debugger registers GPIO0DSP

  • Thanks. Can you provide a little bit more description of what was going on for the record?

    I will look into the debug register issue as well.

    Jeff