SPI Library for 240x320 TFT LCD with ILI9320, ILI9325 and ILI9328 chip

Dependencies:   BurstSPI

Dependents:   KL25Z_ILI9320_Demo Mini-DK

Issue: Compilation failure (Closed: Fixed)

Hi,

When I import library, I encountered this compilation failure. Did I set anything wrong or missed something?

( I couldn't attach screen shot of error)

"Class "SPI_TYPE" has no member "SR" while....."

Thanks,

Bryan

03/18/2014 - Solved - KL25Z support has been added to the library.

5 comments:

22 Feb 2014

The problem is that it was made for the LPC1768. When it was made BurstSPI only supported the LPC1768, this is no problem, meanwhile it also supports the KL25Z, and updating burstSPI removes that problem. Problem two is that it writes its own flash memory using the IAP library, which doesn't support the KL25Z.

Final issue is that then it will compile, but the KL25Z only supports 8-bit writes, not the 16-bit of the LPC1768 (and some others). I don't know if Frank has time/interest in fixing this right now properly, but for me it will for sure not be very soon. That said if you just want a dirty fix for yourself, you got to:

Update BurstSPI lib (click on it, click update at right side).

Delete IAP folder, and all related errors to it (they should all be between #ifndef NO_FLASH_BUFFER).

Finally, everywhere there is spi.format(16,3), remove that one, and replace the subsequent fastwrite line by two lines:

_spi.fastWrite(color>>8);
_spi.fastWrite(color&0xFF);

(Of course assuming the original was color).

22 Feb 2014

Hi Bryan,

The error you get is related to the BurstSpi code and probably indicates a wrong platform selection.
Can you publish your code or give more info on your project: platform, spi pin declarations, ....
Also make sure you use the latest mbed libraries.
As a test, I re-compiled the demo code with all libraries updated : I got no errors.

Frank

edit : the mbed site seems a little slow today - Erik's reply only appeared after I sent my reply. I'll try to free up some time to fix the problem.

23 Feb 2014

Thanks guys,

After following your suggestions, it's compilable now and trying to understand the program.

Best regards,

Bryan

24 Feb 2014

Btw Frank,

How could I share my code to you?

Thanks,

Bryan

16 Mar 2014

Hi Bryan,

Sorry I did not reply earlier but there seems to be a problem with the mbed site forwarding messages as I did not get an E-mail with your reply. As for sharing your code, you can upload a zip file using the insert images or files link above the comment window or publish your code as non-public and send me a pm with the link.
I just started reworking the ILI9320 code to allow the use with other mcu's (apologies for the delay).

Frank