Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 11 months ago.
SPISlave Class dosn't work on LPC1114
I tried " SPISlave device(dp2, dp1, dp6, dp25); mosi, miso, sclk, ssel" as the sample code in the Handbook.
It didn't work. I think IOCON_SCK_LOC is not set properly.
Question relating to:

1 Answer
10 years, 10 months ago.
Hi Uno-san,
Thank you very much for your report. Yes, you are right. There are extra IOCON settings for specific functions of LPC11xx.
I fixed the problem in the LPC1114 SDK and it merged into master repo.
https://github.com/mbedmicro/mbed/pull/756
You will get the fix by next SDK release.
Assigned to
10 years, 10 months ago.This means that the question has been accepted and is being worked on.
Hello,
this is the implementaiton https://github.com/mbedmicro/mbed/blob/master/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/spi_api.c . Looks like you are working offline, so you can see the implementation for spi slave.
posted by Martin Kojtal 10 Oct 2014Quote:
Is this now in the main library? I still had to set the SCK_LOC register to get it working.
Doug
The updated mbed library hasn't been released yet.
You can use latest mbed-src libray (rev 425 or lator) instead. http://developer.mbed.org/users/mbed_official/code/mbed-src/rev/73631a54077f
posted by Toyomasa Watarai 04 Jan 2015