K70 LCD hangs - HELP!!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K70 LCD hangs - HELP!!

863 Views
asmith
Contributor III

I am trying to get a minimal LCD implimentation up in our bootloader code - whihc is derived from a freescale bootloader 

 

I have tried the kinetis_sc example and after spending a day getting ti to build in CW`10.2 it fails in exactly the same way as my own attempt. 

 

We already have the LCD working fine - inside and MQX application. 

 

But when the same code is moved into a standalone application it hangs when it writes to the LCDC_LGWCR or LCDC_LDCR registers. 

 

I am assuming that this means something associated with DMA fromt he LCDC to the panel is fubar. 

Any clue what I need to look for ?

 

I have been scouring the MQX BSP and truing on every vaguely LCD or DMA related clock I can find - no joy.

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Kudos
Reply
3 Replies

586 Views
hl
Contributor II

Hi

I fear, I have the same problem.

Have you solved the problem in the meantime?

Is it a problem of the mask (I am using 0N96)?

Regards

HL

0 Kudos
Reply

586 Views
mjbcswitzerland
Specialist V

Hi

 

Have you enabled the LCD controller in SIM_SCGC3? (Bit 22)

 

Regards

 

Mark

 

0 Kudos
Reply

586 Views
asmith
Contributor III

SIM_SCGC3 |= SIM_SCGC3_LCDC_MASK;

One of the first things. 

 

The code I am using tracks very strongly against the kinetis_sc/projects/ldcd_rev2 project. 

Except:

Our SPI is SPI0

Our SPI programming is different, 

Our LCD is different resolution. 

 

Further the same setup code works inside MQX. 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Kudos
Reply