SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
By hdheetderks
#138621
Is there something in the micro-SD interface in the logomatic which disallows use of TIMER0 and TIMER1 if you are using the routines which write to the SD card? Is this discussed anywhere in the documentation?

I have code using both timers which works fine until it executes anything related to the micro-SD such as fat_initialize(), which causes an immediate crash.
By hdheetderks
#138653
Adding to yesterday's post: I discovered that after putting the VICIntEnable for the timer at the end of the routine which sets up the interrupts, rather at the beginning where it had been, the code now works as expected. Curiously, this is required only if the routines for writing to the micro SD are present. If the micro SD is not used, the timer code works no matter where VICIntEnable is put.