Go Down

Topic: ATMega1284p issues with SD Card (Read 3294 times) previous topic - next topic

phenyl

Hi Bratan.
I had the same problem today, I couldn't get an SD card to work with the SD library on an atmega 1284P with the mighty1284P 16 MHz optiboot bootloader.
The solution turned out to be a missing definition of the correct chip.

in
/Applications/Arduino.app/Contents/Resources/Java/libraries/SD/utility/Sd2PinMap.h
one needs to add "|| defined(__AVR_ATmega1284P__)" to the atmega644 line so that it reads:
Code: [Select]

#elif defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644__)|| defined(__AVR_ATmega1284P__)

Then my code compiled and it now seems to run without a hitch.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy