I got:

with this sketch using SPI/SdFat+OneWire/DallasTemperature+EmonLib and no matter what I try I got corrupted files like this.

I even haven't attached my sensors yet :( I have tried with 3 SD cards so far, each formatted with SD Memory Card Formatter and each one has this problem.

There is a separate question like that (Corrupted files generated by Arduino with SD library. How to avoid that?) but it concerns SPI confict but here SD is my only SPI device on the bus.

Any ideas?

1 Answer 1


This SD shield has CS on D4, not D10

  • 1
    Did this solve your problem? Jan 15, 2016 at 18:05
  • yes, it did solve it
    – Kodak
    Jan 17, 2016 at 22:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.