SparkFun Qwiic OpenLog random dropped characters in log

Hi, I am having a problem when logging data to a micro sd card using the Qwiic OpenLog and a redboard turbo. I am using the SparkFun example 1 for the Qwiic OpenLog. the code is here: https://github.com/sparkfun/SparkFun_Qw … ingLog.ino. When I run the program and wait for it to complete, then disconnect power, remove the micro sd card and insert it my computer, the log file has some of the characters randomly dropped. I ran the program multiple times with the same result. I also tried other examples in the githup repo, but with the same result. I tried changing the program to loop printing “Hello World!” 10 times. My code is here:

#include <Wire.h>
#include "SparkFun_Qwiic_OpenLog_Arduino_Library.h"
OpenLog myLog;

const byte OpenLogAddress = 42;
int ledPin = 13; //Status LED connected to digital pin 13
void setup(){
  pinMode(ledPin, OUTPUT);
  Wire.begin();
  myLog.begin();
  for (int i=0; i<10; i++)
    myLog.println("Hello World!");
  myLog.syncFile(); 
}

void loop(){
  digitalWrite(ledPin, HIGH);
  delay(100);
  digitalWrite(ledPin, LOW);
  delay(1000);
  }

And the results logged on the micro sd card looked like this:

Hello Wrld!

Hello World!

Helo World!

Hello Wold!

Hello World!

Hello World!

Hello World!

Hello Worl!

Hello World!

Hello World!

As the results show, some characters in the logged data were randomly dropped. The code was supposed to print “Hello World!” 10 times, but some lines said things like “Hello Wrld!” and “Helo World!”

Please let me know what I am doing wrong. Thanks for your time.

sorry… I don’t have your answer just the exact same problem with a Redboard Turbo

Hoping someone else knows what to try

I have the same exact problem using a Qwiic OpenLog connected to a Qwiic Micro. Random dropped characters, sometimes entire words or 1/2 a line dropped. In fact, none of the examples work even the simple ones like Example #1 - Write, or Example #2 - Append. The missing character positions seem very random.

Were you able to figure anything out that helped with your issue?

I am having the same problem on a Redboard Turbo. The logged messages are basically dropping every other character, although the pattern is not completely consistent. I ran at 100KHz (I think this is I2C default?) and 400 KHz and had the same problem, although the exact pattern of the dropped characters is different.

I ran the same sketch on an Arduino Mega and it worked fine at both 100KHz and 400KHz.

This has been reported for a year and a half, and no response?

Hi “character droppers”,

I have had the same issue, and I was able to solve it, by changing the SD-card for a Class-10 type.

This has to do with the maximum data transfer speed that the SD card allows. Anything that is a

lower class (2, 4, 6 or 8) did NOT work correctly, and dropped random characters.

Hope this helps you all.

This does not resolve the issue. I have a class 10 SD card and there are still many dropped characters. Seems like a problem especially for the SAMD21 chips.