Moving code from LPC2368 to LPC1768

15 Nov 2009

I am trying to compile some code I wrote using the LPC2368 compiler switch to the LPC1768 and I am gettring errors about SPI and Digital instances not being around. Any ideas? The error message are:

"No instance of constructor "mbed::SPI::SPI" matches the argument list (E289)" in file "rs485/main.cpp"

"          ^ (E0)" in file "rs485/main.cpp"

"No instance of constructor "mbed::DigitalOut::DigitalOut" matches the argument list (E289)" in file "rs485/main.cpp"

"                ^ (E0)" in file "rs485/main.cpp"

15 Nov 2009

I'd guess that maybe you're still using the old pin notation:

DigitalOut do(1);

Which you'll need to change to:

DigitalOut do(p1);

For recent versions of the mbed libraries.

15 Nov 2009

Oooops....... My bad!

Thanks Mike