Wasn't sure what was happening as far as timing and T_4.1 was at hand.
Just for fun with :: unsigned int blockLength = 8*4096; // 2048; // Number of characters to log in a block
Code:
4071,29765,0,0,0,32211,346,1852,697,993,1139,810,1733,451,1470,662,607,413,184,1768,768,1504,1769,316,1761,1326,1549,1006,842,1757,878,1595,411,911,1842,1005,1109,1717,1751,736,828,1589,1420,724,1017,436,647,1119,913,587,1363
4072,29772,0,0,0,32437,258,371,178,1676,536,236,264,1416,882,1689,1687,1216,681,211,860,235,1740,932,582,278,1048,560,1859,1739,1255,1116,1480,285,756,1126,752,560,1085,912,899,180,281,945,1337,295,705,193,694,1745,869
4073,29779,0,0,0,32656,1239,401,594,1764,1186,514,1214,369,1109,970,450,874,1140,915,1847,1868,1577,1449,1763,1331,416,760,405,10
Run complete: 30 Seconds
And a second run:
Code:
4071,29677,0,1,1,32139,346,1852,697,993,1139,810,1733,451,1470,662,607,413,184,1768,768,1504,1769,316,1761,1326,1549,1006,842,1757,878,1595,411,911,1842,1005,1109,1717,1751,736,828,1589,1420,724,1017,436,647,1119,913,587,1363
4072,29684,0,1,1,32365,258,371,178,1676,536,236,264,1416,882,1689,1687,1216,681,211,860,235,1740,932,582,278,1048,560,1859,1739,1255,1116,1480,285,756,1126,752,560,1085,912,899,180,281,945,1337,295,705,193,694,1745,869
4073,29691,0,1,1,32584,1239,401,594,1764,1186,514,1214,369,1109,970,450,874,1140,915,1847,1868,1577,1449,1763,1331,416,760,405,1097,1816,1349,260,746,382,487,540,703,1029,369,901,365,876,568,1765,1027,
Run complete: 30 Seconds
So maybe it is the SD card speed? Pulled out a T_3.5 - FAILED on start at 32KB
But stepping down to 4096 byte buffer on T_3.5 at 120 MHz : unsigned int blockLength = 4096;
Code:
4212,29947,0,1,1,3617,1038,1786,961,867,1734,1321,681,1732,535,1736,837,1739,725,381,1522,697,176,1029,672,215,1760,302,1827,1314,326,1060,1013,323,861,219,1717,1519,821,1213,1592,1048,262,668,877,419,1357,594,771,1083,1620
4213,29954,0,1,1,3841,1175,1724,509,1396,1633,1609,845,1753,1381,659,520,1248,1161,676,1075,746,1156,1769,575,184,1533,1813,1761,613,851,1669,558,1027,239,925,439,613,647,770,443,896,381,1597,1345,383,216,1718,1714,1640,586
4214,29961,0,1,1,4065,472,725,1231,1746,202,1870
Run complete: 30 Seconds
T_3.5 Going to : blockLength = 2048; { and 8192
Code:
SD write failed: 0 Seconds
At 144 MHz 1024 and 4096 work but 2048 and 8192 fail.
at 4096 and 144 MHz:
Code:
4210,29945,0,14,13,3642,1272,1594,485,1241,507,205,727,450,485,1060,637,821,1506,778,1287,349,276,1705,215,449,1235,1660,1222,611,1458,256,1757,962,1811,203,972,1614,631,1258,1184,206,1027,1478,687,925,432,1373,1586,1365,355
4211,29952,0,14,13,3867,1069,1502,1524,901,1105,1552,1117,787,1097,1450,1367,823,656,1282,1872,245,1829,1658,1593,701,1463,326,1085,1253,1219,829,322,996,180,1784,1716,489,1021,1471,1736,1112,622,232,1509,1644,559,1406,667,768,408
4212,29959,0,14,1
Run complete: 30 Seconds
and again :
Code:
4221,29955,0,10,9,2551,1787,1712,800,783,1708,1544,1235,1471,1753,756,1545,985,293,427,960,1239,1015,392,1442,657,1202,522,1407,258,1668,1149,1230,874,923,401,285,1067,465,1778,1529,793,383,1097,472,1221,1437,383,946,771,297
4222,29962,0,10,9,2776,1155,657,1098,1282,734,1855,805,1467,969,1424,536,1197,1421,1490,1188,1771,1549,811,253,1444,686,842,1507,983,503,1151,1747,308,1514,1015,831,999,347,1210,259,972,
Run complete: 30 Seconds