Hi:
Developemente environment:
Mac OS 10.7.5
IDE Arduino 1.5.4
Hardware:
Arduino Yun
MP3 Player Shield (SparkFun MP3 Player Shield - DEV-12660 - SparkFun Electronics) Linked ICSP-4- Digital pin 11, ICSP-1- Digital pin 12 and ICSP-3- Digital pin 13
SD:
Micro SD ScanDisk 2 GB
Formated Fat 16 with SDformatter 4.0
LIBs:
Fat16Lib:
Sketch:
fat16info
I have modified SdCard.h:
about line 60 of SdCard.h
//------------------------------------------------------------
#elif defined(AVR_ATmega32U4)
uint8_t const SPI_SS_PIN = SS;
uint8_t const SPI_MOSI_PIN = MOSI;
uint8_t const SPI_MISO_PIN = MISO;
uint8_t const SPI_SCK_PIN = SCK;
And added this line at the beginning of SdCard.h:
#include <Arduino.h>
When i run this sketch with the bootloader it always works ok.
When i use AVRisp MkII, i need to use the full program space, it loads correctly but my arduino yun becomes very unestable. Some times works ok but many others incorrectly.
Any idea?
Thanks