Page 1 of 1

Problem with SD examples

Posted: Wed Apr 30, 2008 11:26 pm
by rmteo
I have tried to compile the examples in the in the SDMMC folder. Every one of the 3 examples gives the following error:
Identifier not declared : spiOscDiv64
Any suggestions? I am using a PIC18F4620.

Posted: Thu May 01, 2008 6:31 am
by Steven
Are you using the SD library that came with the compiler, or the updated version from the wiki? Can you post one of the codes that you are trying to compile.

Posted: Thu May 01, 2008 6:36 am
by rmteo
I am using the library that came with the compiler (I think it is 4.0.9 - after an on-line update).

Anyway, I solved the problem by using the example from the SF wiki. It works fine now. Thanks for your help.

Posted: Thu May 01, 2008 6:42 am
by Steven
OK, great - I hadn't realised that the latest version was included in an online update. I changed the place where the spi speed is declared - it is now in an #option rather than as a parameter in the Init() call. The examples on the wiki should hopefully all work and are more extensive than those in the original help file.