Pages: 1 2 [3]   Go Down
Author Topic: ATMega1284p issues with SD Card  (Read 2389 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#elif defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644__)|| defined(__AVR_ATmega1284P__)
Then my code compiled and it now seems to run without a hitch.
Logged

Pages: 1 2 [3]   Go Up
Jump to: