Go Down

Topic: Using SDIO with Extended database (Read 75 times) previous topic - next topic

scroggyg

I am intending to use the Teensy 3.6 with onboard SDIO SDCard along with EDB libraries.
I have downloaded and I am using the EDB_SDCARD.ino. I have created a EDB_SDIOCARD version which uses the examples provided by PRJC, and this works.
If I run the demo I get the output shown in red below.
The fact that it always returns -1 and never sees the file indicate that the card is not being written to.
if I look at EDB.cpp the library is reading an writing records, byte by byte.
Whereas the SD card expects to write 512 byte blocks.
Is this correct, and has anyone got SDIO working EDB?

Extended Database Library + External SD CARD storage demo

Initializing SD card...Wiring is correct and a card is present.

Card type: SDHC

Volume type is FAT32

Volume size (Kbytes): 7557120
Volume size (Mbytes): 7380

Files found on the card (name, date and size in bytes):
SYSTEM~1/     2017-04-25 16:17:20
  WPSETT~1.DAT  2017-04-25 16:17:20 12
  INDEXE~1      2017-04-25 16:17:26 76
Dir for Db files does not exist, creating...
Creating table... DONE
Record Limit: 340
Record Count: 0
Creating Records... DONE
Record Count: 10
Recno: 1 ID: -1 Temp: -1
Recno: 2 ID: -1 Temp: -1
Recno: 3 ID: -1 Temp: -1
Recno: 4 ID: -1 Temp: -1
Recno: 5 ID: -1 Temp: -1
Recno: 6 ID: -1 Temp: -1
Recno: 7 ID: -1 Temp: -1
Recno: 8 ID: -1 Temp: -1
Recno: 9 ID: -1 Temp: -1
Recno: 10 ID: -1 Temp: -1
Deleting recno: 5
Record Count: 9
Recno: 1 ID: -1 Temp: -1
Recno: 2 ID: -1 Temp: -1
Recno: 3 ID: -1 Temp: -1
Recno: 4 ID: -1 Temp: -1
Recno: 5 ID: -1 Temp: -1
Recno: 6 ID: -1 Temp: -1
Recno: 7 ID: -1 Temp: -1
Recno: 8 ID: -1 Temp: -1
Recno: 9 ID: -1 Temp: -1
Appending record... DONE
Record Count: 10
Recno: 1 ID: -1 Temp: -1
Recno: 2 ID: -1 Temp: -1
Recno: 3 ID: -1 Temp: -1
Recno: 4 ID: -1 Temp: -1
Recno: 5 ID: -1 Temp: -1
Recno: 6 ID: -1 Temp: -1
Recno: 7 ID: -1 Temp: -1
Recno: 8 ID: -1 Temp: -1
Recno: 9 ID: -1 Temp: -1
Recno: 10 ID: -1 Temp: -1
Inserting record at recno: 5... DONE
Record Count: 11
Recno: 1 ID: -1 Temp: -1
Recno: 2 ID: -1 Temp: -1
Recno: 3 ID: -1 Temp: -1
Recno: 4 ID: -1 Temp: -1
Recno: 5 ID: -1 Temp: -1
Recno: 6 ID: -1 Temp: -1
Recno: 7 ID: -1 Temp: -1
Recno: 8 ID: -1 Temp: -1
Recno: 9 ID: -1 Temp: -1
Recno: 10 ID: -1 Temp: -1
Recno: 11 ID: -1 Temp: -1
Updating record at recno: 10... DONE
Recno: 1 ID: -1 Temp: -1
Recno: 2 ID: -1 Temp: -1
Recno: 3 ID: -1 Temp: -1
Recno: 4 ID: -1 Temp: -1
Recno: 5 ID: -1 Temp: -1
Recno: 6 ID: -1 Temp: -1
Recno: 7 ID: -1 Temp: -1
Recno: 8 ID: -1 Temp: -1
Recno: 9 ID: -1 Temp: -1
Recno: 10 ID: -1 Temp: -1
Recno: 11 ID: -1 Temp: -1
Record Count: 11
Truncating table... DONE
Use insertRec() and deleteRec() carefully, they can be slow
Record Count: 0
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Inserting record at recno: 1... ERROR: Table full
DONE
Record Count: 0
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Deleting recno: 1
Record Count: 0



Go Up