I am using the Arduino SD library (and the Adafruit RTC library)
Code: Select all
#include <SD.h> // SD card
#include <RTClib.h> // real-time clock
Code: Select all
/Users/andy/Documents/Arduino/libraries/SD/src/utility/SdFile.cpp: In member function 'uint8_t SdFile::open(SdFile*, const char*, uint8_t)':
/Users/andy/Documents/Arduino/libraries/SD/src/utility/SdFile.cpp:532:15: warning: taking address of packed member of 'directoryEntry' may result in an unaligned pointer value [-Waddress-of-packed-member]
532 | dateTime_(&p->creationDate, &p->creationTime);
| ^~~~~~~~~~~~~~~~
/Users/andy/Documents/Arduino/libraries/SD/src/utility/SdFile.cpp:532:15: warning: taking address of packed member of 'directoryEntry' may result in an unaligned pointer value [-Waddress-of-packed-member]
/Users/andy/Documents/Arduino/libraries/SD/src/utility/SdFile.cpp:532:33: warning: taking address of packed member of 'directoryEntry' may result in an unaligned pointer value [-Waddress-of-packed-member]
532 | dateTime_(&p->creationDate, &p->creationTime);
| ^~~~~~~~~~~~~~~~
/Users/andy/Documents/Arduino/libraries/SD/src/utility/SdFile.cpp:532:33: warning: taking address of packed member of 'directoryEntry' may result in an unaligned pointer value [-Waddress-of-packed-member]
/Users/andy/Documents/Arduino/libraries/SD/src/utility/SdFile.cpp: In member function 'uint8_t SdFile::sync(uint8_t)':
/Users/andy/Documents/Arduino/libraries/SD/src/utility/SdFile.cpp:1155:17: warning: taking address of packed member of 'directoryEntry' may result in an unaligned pointer value [-Waddress-of-packed-member]
1155 | dateTime_(&d->lastWriteDate, &d->lastWriteTime);
| ^~~~~~~~~~~~~~~~~
/Users/andy/Documents/Arduino/libraries/SD/src/utility/SdFile.cpp:1155:17: warning: taking address of packed member of 'directoryEntry' may result in an unaligned pointer value [-Waddress-of-packed-member]
/Users/andy/Documents/Arduino/libraries/SD/src/utility/SdFile.cpp:1155:36: warning: taking address of packed member of 'directoryEntry' may result in an unaligned pointer value [-Waddress-of-packed-member]
1155 | dateTime_(&d->lastWriteDate, &d->lastWriteTime);
| ^~~~~~~~~~~~~~~~~
/Users/andy/Documents/Arduino/libraries/SD/src/utility/SdFile.cpp:1155:36: warning: taking address of packed member of 'directoryEntry' may result in an unaligned pointer value [-Waddress-of-packed-member]
Sketch uses 43584 bytes (8%) of program storage space. Maximum is 507904 bytes.
Device : ATSAMD51x19
Version : v1.1 [Arduino:XYZ] Apr 8 2018 13:59:27
Address : 0x0
Pages : 1024
Page Size : 512 bytes
Total Size : 512KB
Planes : 1
Lock Regions : 32
Locked : none
Security : false
BOD : false
BOR : true
Write 44272 bytes to flash (87 pages)
[ ] 0% (0/87 pages)
[== ] 9% (8/87 pages)
[===== ] 18% (16/87 pages)
[======== ] 27% (24/87 pages)
[=========== ] 36% (32/87 pages)
[============= ] 45% (40/87 pages)
[================ ] 55% (48/87 pages)
[=================== ] 64% (56/87 pages)
[====================== ] 73% (64/87 pages)
[======================== ] 82% (72/87 pages)
[=========================== ] 91% (80/87 pages)
[==============================] 100% (87/87 pages)
Done in 0.662 seconds
Verify 44272 bytes of flash
[= ] 3% (3/87 pages)
[= ] 4% (4/87 pages)
[= ] 5% (5/87 pages)
[== ] 6% (6/87 pages)
[== ] 8% (7/87 pages)
[== ] 9% (8/87 pages)
[=== ] 10% (9/87 pages)
[=== ] 11% (10/87 pages)
[=== ] 12% (11/87 pages)
[==== ] 13% (12/87 pages)
[==== ] 14% (13/87 pages)
[==== ] 16% (14/87 pages)
[===== ] 17% (15/87 pages)
[===== ] 18% (16/87 pages)
[===== ] 19% (17/87 pages)
[====== ] 20% (18/87 pages)
[====== ] 21% (19/87 pages)
[====== ] 22% (20/87 pages)
[======= ] 24% (21/87 pages)
[======= ] 25% (22/87 pages)
[======= ] 26% (23/87 pages)
[======== ] 27% (24/87 pages)
[======== ] 28% (25/87 pages)
[======== ] 29% (26/87 pages)
[========= ] 31% (27/87 pages)
[========= ] 32% (28/87 pages)
[========== ] 33% (29/87 pages)
[========== ] 34% (30/87 pages)
[========== ] 35% (31/87 pages)
[=========== ] 36% (32/87 pages)
[=========== ] 37% (33/87 pages)
[=========== ] 39% (34/87 pages)
[============ ] 40% (35/87 pages)
[============ ] 41% (36/87 pages)
[============ ] 42% (37/87 pages)
[============= ] 43% (38/87 pages)
[============= ] 44% (39/87 pages)
[============= ] 45% (40/87 pages)
[============== ] 47% (41/87 pages)
[============== ] 48% (42/87 pages)
[============== ] 49% (43/87 pages)
[=============== ] 50% (44/87 pages)
[=============== ] 51% (45/87 pages)
[=============== ] 52% (46/87 pages)
[================ ] 54% (47/87 pages)
[================ ] 55% (48/87 pages)
[================ ] 56% (49/87 pages)
[================= ] 57% (50/87 pages)
[================= ] 58% (51/87 pages)
[================= ] 59% (52/87 pages)
[================== ] 60% (53/87 pages)
[================== ] 62% (54/87 pages)
[================== ] 63% (55/87 pages)
[=================== ] 64% (56/87 pages)
[=================== ] 65% (57/87 pages)
[==================== ] 66% (58/87 pages)
[==================== ] 67% (59/87 pages)
[==================== ] 68% (60/87 pages)
[===================== ] 70% (61/87 pages)
[===================== ] 71% (62/87 pages)
[===================== ] 72% (63/87 pages)
[====================== ] 73% (64/87 pages)
[====================== ] 74% (65/87 pages)
[====================== ] 75% (66/87 pages)
[======================= ] 77% (67/87 pages)
[======================= ] 78% (68/87 pages)
[======================= ] 79% (69/87 pages)
[======================== ] 80% (70/87 pages)
[======================== ] 81% (71/87 pages)
[======================== ] 82% (72/87 pages)
[========================= ] 83% (73/87 pages)
[========================= ] 85% (74/87 pages)
[========================= ] 86% (75/87 pages)
[========================== ] 87% (76/87 pages)
[========================== ] 88% (77/87 pages)
[========================== ] 89% (78/87 pages)
[=========================== ] 90% (79/87 pages)
[=========================== ] 91% (80/87 pages)
[=========================== ] 93% (81/87 pages)
[============================ ] 94% (82/87 pages)
[============================ ] 95% (83/87 pages)
[============================ ] 96% (84/87 pages)
[============================= ] 97% (85/87 pages)
[============================= ] 98% (86/87 pages)
[==============================] 100% (87/87 pages)
Verify successful
Done in 1.046 seconds
I moved the shield to a plain Metro and used the Cardinfo example and, while there are no compile warnings, the SD.begin() call still fails with an "0X01,SD_CARD_ERROR_CMD0 - Card reset failed" error.
A side question is wondering why I am seeing the verbose reporting on compile and upload when I have those flags turned off in the IDE (2.0.4) ?
Anyone have any suggestions?
Thanks,
.Andy