I'm also having the same issue with the graphic window.
I have the LCD controllerdisplaying images using the background window but I can't get the graphic window functionality to work at all.
The description in the reference manual seems simple enough but are there any special tricks to get the graphic window going?
Does anyone have a working code example using the graphic window?
w=32; // note W must be multiple of 16 // must be multiple of 32 for B/W h=32; // grafic window address (just use rest behind normal screen) long addr=uint32(MCF_LCDC.ssar)+(CONFIG_DSP_H*LINE_LEN(CONFIG_DSP_W)); // copy data to sdram (just use a pattern for test) //memcpy((void*)addr,cursor,sizeof(cursor)); for(int n=0;n<w*h;++n) ((char*)addr)[n]=n; // setup registers MCF_LCDC.gwsar=addr; // grafic window address MCF_LCDC.gwpor=0; // panning offset // note w really should be (w>>4)<<20 but makes no diff MCF_LCDC.gwsr=(w<<16)|(h<<0); // grafic window size MCF_LCDC.gwdcr=(1<<31)|(8<<16)|(4<<0); // DMA settings MCF_LCDC.gwvpw=LINE_LEN(w)/4; // page width MCF_LCDC.gwpr=(x<<16)|(y<<0); // position const uint32 gwcr=0 |(0xff<<24) // visible |(1<<23) // keying |(1<<22) // enable |(0<<21) // not revers |(0x3F<<12) // keying |(0x3F<<6) // keying |(0x3F<<0) // keying ; // if(MCF_LCDC.gwcr!=gwcr) { // see manual MCF_CCM.disable_lcd_clock(); // disable clock MCF_LCDC.gwcr=gwcr; MCF_CCM.enable_lcd_clock(); // enable clock }