gps shield error with logger sketch

friends, I am using arduino13 on a windows xp machine and every time i tried downloading sketch and trying to download to the duemilanove 328 board i get this error and i am novish to programming. CAN ANY BODY HELP ME PLEASE

In file included from hardware\libraries\AF_SDLog/sd_raw.h:15,

from hardware\libraries\AF_SDLog/AF_SDLog.h:5,

hardware\libraries\AF_SDLog/sd_raw_config.h:86:6: error: #error "no sd/mmc pin mapping available!"

I added the ā€˜328Pā€™ lines to this section of sd_raw_config and it fixed the error you cited. I have all kinds of other problems that have cropped up with the AF_SDLog library similar to others. Frustrating but it will all work out.

/* defines for customisation of sd/mmc port access */
#if defined(AVR_ATmega8) ||
defined(AVR_ATmega48) ||
defined(AVR_ATmega88) ||
defined(AVR_ATmega168) ||
#define configure_pin_mosi() DDRB |= (1 << DDB3)
#define configure_pin_sck() DDRB |= (1 << DDB5)
#define configure_pin_ss() DDRB |= (1 << DDB2)
#define configure_pin_miso() DDRB &= ~(1 << DDB4)

#define select_card() PORTB &= ~(1 << PB2)
#define unselect_card() PORTB |= (1 << PB2)
#elif defined(AVR_ATmega16) ||
#define configure_pin_mosi() DDRB |= (1 << DDB5)
#define configure_pin_sck() DDRB |= (1 << DDB7)
#define configure_pin_ss() DDRB |= (1 << DDB4)
#define configure_pin_miso() DDRB &= ~(1 << DDB6)

#define select_card() PORTB &= ~(1 << PB4)
#define unselect_card() PORTB |= (1 << PB4)
#elif defined(AVR_ATmega64) ||
defined(AVR_ATmega128) ||
#define configure_pin_mosi() DDRB |= (1 << DDB2)
#define configure_pin_sck() DDRB |= (1 << DDB1)
#define configure_pin_ss() DDRB |= (1 << DDB0)
#define configure_pin_miso() DDRB &= ~(1 << DDB3)

Hum no PB2 is unknown for 328P

You have to use PINB2

I tried adding 644P to raw file and still i get the error , i am at a loss are u willing to share u r good code, all the files in a zip format, i am even wiling to pay for it as i am trying to work with school kits as a teaching project and i am not a programmer by any standards


Try downloading the AF_SDLog library again from Ladyada's site She recently released an updated version 2.0 that works with the 328p.

Replace the AF_SDLog folder with the contents of the updated zip. To be on the safe side delete any .o files in that folder and then re-compile your code.