Problem with SD examples

Coding and general discussion relating to user created compiler modules

Moderators: David Barker, Jerry Messina

Post Reply
rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Problem with SD examples

Post by rmteo » Wed Apr 30, 2008 11:26 pm

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.

User avatar
Steven
BETA Tester
Posts: 406
Joined: Tue Oct 03, 2006 8:32 pm
Location: Cumbria, UK

Post by Steven » Thu May 01, 2008 6:31 am

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.

rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Post by rmteo » Thu May 01, 2008 6:36 am

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.

User avatar
Steven
BETA Tester
Posts: 406
Joined: Tue Oct 03, 2006 8:32 pm
Location: Cumbria, UK

Post by Steven » Thu May 01, 2008 6:42 am

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.

Post Reply