"LPC_SC" is undefined: LPC11U24

28 Jan 2013

Hi,

I am new to mbed and I am trying to compile an LCD library that uses DMA to drive the SPI. However, I get the error "LPC_SC" is undefined. I added #include "LPC11Uxx.h" just in case, but I can't see what else I can do to include "LPC_SC"? Is it possible that the LPC11U24 device library does not support this functionality?

Thanks,

Kevin.

28 Jan 2013

Hi, what library are u trying to use, can you put the link to the library?, so i can test it with my mbed LPC1768 and try to help u

Greetings

28 Jan 2013

Had a quick check, you can compare those names using http://mbed.org/users/mbed_official/code/mbed/file/0954ebd79f59/LPC11U24/LPC11Uxx.h and http://mbed.org/users/mbed_official/code/mbed/file/0954ebd79f59/LPC1768/LPC17xx.h. For the 11u24 it is called LPC_SYSCON. However good chance just changing that wont be enough. And with good chance I mean for sure. I dont use the 11u24 myself, but I just checked the user guide, and unless I am mistaken it only has DMA for USB function, so you cant use DMA there.

As alternative, you can in the compiler go to revisions, and then go back in time to see if there is a version which doesnt include DMA.

You can also have a look at http://mbed.org/users/frankvnk/code/SPI_TFT_ILI9320/. Another SPI LCD library, which also runs at max speed (=it completes a full screen write in the theoretical amount of time it should require, so no significant overhead), but it doesnt use DMA. Using that together with the original library probably allows you to make one which doesnt use DMA and is still fast.