Forum Rule: Always post complete source code & details to reproduce any issue!
Page 1 of 2 1 2 LastLast
Results 1 to 25 of 30

Thread: SdFat SDIO for Teensy 4.0

  1. #1
    Senior Member
    Join Date
    Nov 2012
    Posts
    271

    SdFat SDIO for Teensy 4.0

    I have posted SdFat 2.0.0-beta.3 on GitHub. It supports SDIO on Teensy 4.0.

    It has slightly faster read/write performance on T4 than T3 for larger transfers. This may improve in the future.

    Here is the bench example for 512 byte transfers with a 50 MB file.

    T4:
    Code:
    FILE_SIZE_MB = 50
    BUF_SIZE = 512 bytes
    
    write speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    22123.89,4573,22,23
    22123.89,4030,22,23
    
    read speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    22665.46,748,22,22
    22655.19,1085,22,22
    T3:
    Code:
    FILE_SIZE_MB = 50
    BUF_SIZE = 512 bytes
    
    write speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    18525.38,50086,26,27
    18917.90,3028,26,26
    
    
    read speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    18719.58,251,27,27
    18712.57,251,27,27
    T4 is much faster for small writes such as print calls.

    Here are results for 8 byte transfers. T4 is almost three times faster.

    T4:
    Code:
    FILE_SIZE_MB = 50
    BUF_SIZE = 8 bytes
    
    write speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    12124.15,3444,0,0
    12124.15,3408,0,0
    
    read speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    12088.97,128,0,0
    12088.97,127,0,0
    T3:
    Code:
    FILE_SIZE_MB = 50
    BUF_SIZE = 8 bytes
    
    write speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    4441.29,3004,1,1
    4442.08,3033,1,1
    
    read speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    4293.32,218,1,1
    4293.69,217,1,1
    These results are for optimized FIFO programmed transfers. The SD card sees a single 50 MB transfer for T4. T3 requires two transfers due to an Errata.

    DMA transfers are very slow since the SD sees 512 byte transfers. Modern SD cards emulate 512 byte transfers.

    The Record Unit, RU, for a modern SDHC card is 512 KiB or 1024 time larger than a 512 byte sector. You only get full performance if you do transfers of multiple RUs.

    I am currently using High Speed mode with 3.3V signaling and 49.5 MHz SD clock. This is the real performance limitation.

    The T4 uSDHC supports the following modes.
    Code:
    DDR50 - DDR up to 50MHz 1.8V signaling
    SDR50 - SDR up to 100MHz 1.8V signaling
    SDR104 - SDR up to 208MHz 1.8V signaling
    I will try DDR50 or SDR50. The i.MX RT1060 documentation has very little programming info on these modes. The SDK for the chip is a nightmare but has some info. There is also a Linux driver for a NXP chip with a uSDHC module similar to the IMXRT1062.

  2. #2
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    4,284
    @Bill Greiman

    Fantastic Bill. Just gave it a try on Paul's breakout board with SDINFO sketch:
    Code:
    SdFat version: 2.0.0
    Assuming an SDIO interface.
    
    type any character to start
    init time: 216 ms
    
    Card type: SDHC
    
    Manufacturer ID: 0X3
    OEM ID: SD
    Product: ACLCD
    Version: 8.0
    Serial number: 0XA33D2B88
    Manufacturing date: 7/2011
    
    cardSize: 31914.98 MB (MB = 1,000,000 bytes)
    flashEraseSize: 128 blocks
    eraseSingleBlock: true
    
    OCR: 0XC0FF8000
    
    SD Partition Table
    part,boot,bgnCHS[3],type,endCHS[3],start,length
    1,0X0,0X20,0X21,0X0,0XC,0XFE,0XFF,0XFF,2048,62330880
    2,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
    3,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
    4,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
    
    Scanning FAT, please wait.
    
    Volume is FAT32
    sectorsPerCluster: 32
    clusterCount:      1946816
    freeClusterCount:  1946500
    fatStartSector:    4396
    dataStartSector:   34816
    
    type any character to start
    Works like a charm.

    What I like about you lib is that it gives me some error codes when it doesn't work

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    271
    Quote Originally Posted by mjs513 View Post
    @Bill Greiman

    Code:
    SD Partition Table
    part,boot,bgnCHS[3],type,endCHS[3],start,length
    1,0X0,0X20,0X21,0X0,0XC,0XFE,0XFF,0XFF,2048,62330880
    2,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
    3,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
    4,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
    
    Scanning FAT, please wait.
    
    Volume is FAT32
    sectorsPerCluster: 32
    clusterCount:      1946816
    freeClusterCount:  1946500
    fatStartSector:    4396
    dataStartSector:   34816
    How did you format your card? It doesn't seem to have the standard layout. The SD Formatter does a format that matches the card's flash layout. This allows update of the two FAT tables to be interleaved with writes to the data areas.

    What I like about you lib is that it gives me some error codes when it doesn't work.
    I have added some ability to print more info so I can help with problems.

    If you edit SdFat/src/SdCard/SdioTeensy.cpp at about line 213 and set this symbol nonzero, a line number and registers from the uSDHC controller will be dumped when an error occurs.
    Code:
    #define USE_DEBUG_MODE 0
    A trace of errors in the file system code can be enabled by editng SdFat/src/common/DebugMacros.h at about line 28 and setting this symbol nonzero.
    Code:
    #define USE_DBG_MACROS 0

  4. #4
    Senior Member
    Join Date
    Aug 2016
    Posts
    132
    apparently I dont know what I'm doing, when I try and compile the sdinfo sketch I get a bunch of errors
    Code:
    Arduino: 1.8.9 (Windows 10), TD: 1.47-beta7, Board: "Teensy 4.0, Serial, Faster, US English"
    
    D:\Arduino\arduino-builder -dump-prefs -logger=machine -hardware D:\Arduino\hardware -hardware C:\Users\admin\AppData\Local\Arduino15\packages -tools D:\Arduino\tools-builder -tools D:\Arduino\hardware\tools\avr -tools C:\Users\admin\AppData\Local\Arduino15\packages -built-in-libraries D:\Arduino\libraries -libraries C:\Users\admin\Documents\Arduino\libraries -fqbn=teensy:avr:teensy40:usb=serial,opt=o2std,keys=en-us -ide-version=10809 -build-path C:\Users\admin\AppData\Local\Temp\arduino_build_651614 -warnings=none -build-cache C:\Users\admin\AppData\Local\Temp\arduino_cache_345759 -verbose C:\Users\admin\Documents\Arduino\libraries\SdFat\examples\SdInfo\SdInfo.ino
    D:\Arduino\arduino-builder -compile -logger=machine -hardware D:\Arduino\hardware -hardware C:\Users\admin\AppData\Local\Arduino15\packages -tools D:\Arduino\tools-builder -tools D:\Arduino\hardware\tools\avr -tools C:\Users\admin\AppData\Local\Arduino15\packages -built-in-libraries D:\Arduino\libraries -libraries C:\Users\admin\Documents\Arduino\libraries -fqbn=teensy:avr:teensy40:usb=serial,opt=o2std,keys=en-us -ide-version=10809 -build-path C:\Users\admin\AppData\Local\Temp\arduino_build_651614 -warnings=none -build-cache C:\Users\admin\AppData\Local\Temp\arduino_cache_345759 -verbose C:\Users\admin\Documents\Arduino\libraries\SdFat\examples\SdInfo\SdInfo.ino
    Using board 'teensy40' from platform in folder: D:\Arduino\hardware\teensy\avr
    Using core 'teensy4' from platform in folder: D:\Arduino\hardware\teensy\avr
    Detecting libraries used...
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\sketch\\SdInfo.ino.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\sketch\\SdInfo.ino.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\sketch\\SdInfo.ino.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatDbg.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatFile.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatFilePrint.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatFileWrite.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatFormatter.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatPartition.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatVolume.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\upcase.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatDbg.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatFile.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatFileLFN.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatFilePrint.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatFileSFN.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatFormatter.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatPartition.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatVolume.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FmtNumber.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\StdioStream.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\fstream.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\istream.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\ostream.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FreeStack.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FsLib\\FsFile.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FsLib\\FsNew.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FsLib\\FsVolume.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\MinimumSerial.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\SdCard\\SdCardInfo.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\SdCard\\SdSpiCard.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\SdCard\\SdSpiCardEX.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\SdCard\\SdioCardEX.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\SdCard\\SdioTeensy.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\SpiDriver\\SdSpiESP8266.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\SpiDriver\\SdSpiParticle.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\SpiDriver\\SdSpiSAM3X.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\SpiDriver\\SdSpiSTM32.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\SpiDriver\\SdSpiTeensy3.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\common\\FmtNumber.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\common\\FsDateTime.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\common\\FsStructs.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\common\\PrintBasic.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\common\\SysCallBareUno.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\iostream\\StdioStream.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\iostream\\StreamBaseClass.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\iostream\\istream.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\iostream\\ostream.cpp" -o nul
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "D:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI\\SPI.cpp" -o nul
    Generating function prototypes...
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\sketch\\SdInfo.ino.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    "D:\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    Compiling sketch...
    "D:\\Arduino\\hardware\\teensy/../tools/precompile_helper" "D:\\Arduino\\hardware\\teensy\\avr/cores/teensy4" "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614" "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-ID:\\Arduino\\hardware\\teensy\\avr/cores/teensy4" "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch/Arduino.h" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch/Arduino.h.gch"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\sketch\\SdInfo.ino.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\sketch\\SdInfo.ino.cpp.o"
    Compiling libraries...
    Compiling library "SdFat"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FreeStack.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FreeStack.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\MinimumSerial.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\MinimumSerial.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatFormatter.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\ExFatLib\\ExFatFormatter.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatFilePrint.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\ExFatLib\\ExFatFilePrint.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatDbg.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\ExFatLib\\ExFatDbg.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatFileWrite.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\ExFatLib\\ExFatFileWrite.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatPartition.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\ExFatLib\\ExFatPartition.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\upcase.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\ExFatLib\\upcase.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatFile.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\ExFatLib\\ExFatFile.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\ExFatLib\\ExFatVolume.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\ExFatLib\\ExFatVolume.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatFormatter.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\FatFormatter.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\istream.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\istream.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatFileSFN.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\FatFileSFN.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatFile.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\FatFile.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatFilePrint.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\FatFilePrint.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\StdioStream.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\StdioStream.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatDbg.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\FatDbg.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FmtNumber.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\FmtNumber.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\fstream.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\fstream.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatPartition.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\FatPartition.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatVolume.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\FatVolume.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\ostream.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\ostream.cpp.o"
    "D:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=147 -DARDUINO=10809 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614/pch" "-ID:\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src" "-ID:\\Arduino\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\admin\\Documents\\Arduino\\libraries\\SdFat\\src\\FatLib\\FatFileLFN.cpp" -o "C:\\Users\\admin\\AppData\\Local\\Temp\\arduino_build_651614\\libraries\\SdFat\\FatLib\\FatFileLFN.cpp.o"
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp: In member function 'int StdioStream::printDec(float, uint8_t)':
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp:276:54: error: 'fmtFloat' was not declared in this scope
    
       char *ptr = fmtFloat(value, buf + sizeof(buf), prec);
    
                                                          ^
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp: In member function 'int StdioStream::printDec(uint16_t)':
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp:310:42: error: 'fmtDec' was not declared in this scope
    
       char *ptr = fmtDec(n, buf + sizeof(buf));
    
                                              ^
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp: In member function 'int StdioStream::printDec(uint32_t)':
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp:345:42: error: 'fmtDec' was not declared in this scope
    
       char *ptr = fmtDec(n, buf + sizeof(buf));
    
                                              ^
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp: In member function 'int StdioStream::printHex(uint32_t)':
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp:371:42: warning: invalid conversion from 'uint32_t {aka long unsigned int}' to 'char*' [-fpermissive]
    
       char *ptr = fmtHex(n, buf + sizeof(buf));
    
                                              ^
    
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\FatFile.h:35:0,
    
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.h:32,
    
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp:25:
    
    c:\users\admin\documents\arduino\libraries\sdfat\src\common\fmtnumber.h:40:7: note:   initializing argument 1 of 'char* fmtHex(char*, uint32_t)'
    
     char* fmtHex(char* str, uint32_t n);
    
           ^
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp:371:29: warning: invalid conversion from 'char*' to 'uint32_t {aka long unsigned int}' [-fpermissive]
    
       char *ptr = fmtHex(n, buf + sizeof(buf));
    
                                 ^
    
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\FatFile.h:35:0,
    
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.h:32,
    
                     from C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp:25:
    
    c:\users\admin\documents\arduino\libraries\sdfat\src\common\fmtnumber.h:40:7: note:   initializing argument 2 of 'char* fmtHex(char*, uint32_t)'
    
     char* fmtHex(char* str, uint32_t n);
    
           ^
    
    In file included from C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\fstream.cpp:25:0:
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\fstream.h: In member function 'virtual void fstream::getpos(FatPos_t*)':
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\fstream.h:140:5: error: 'getpos' is not a member of 'FatFile'
    
         FatFile::getpos(pos);
    
         ^
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\fstream.h: In member function 'virtual void fstream::setpos(FatPos_t*)':
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\fstream.h:164:5: error: 'setpos' is not a member of 'FatFile'
    
         FatFile::setpos(pos);
    
         ^
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\fstream.h: In member function 'virtual void ifstream::getpos(FatPos_t*)':
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\fstream.h:225:5: error: 'getpos' is not a member of 'FatFile'
    
         FatFile::getpos(pos);
    
         ^
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\fstream.h: In member function 'virtual void ifstream::setpos(FatPos_t*)':
    
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\fstream.h:237:5: error: 'setpos' is not a member of 'FatFile'
    
         FatFile::setpos(pos);
    
         ^
    
    Using library SdFat at version 2.0.0-beta.3 in folder: C:\Users\admin\Documents\Arduino\libraries\SdFat 
    Using library SPI at version 1.0 in folder: D:\Arduino\hardware\teensy\avr\libraries\SPI 
    Error compiling for board Teensy 4.0.

  5. #5
    Senior Member
    Join Date
    Nov 2012
    Posts
    271
    It looks like you have a version 1.x of SdFat. SdFat-beta needs to be in a folder named SdFat and must replace the version 1.x of SdFat.

    This line is unfortunately near rhe bottom of the README.md on GitHub.

    To use SdFat Version 2, unzip the download file, rename the library folder SdFat and place the SdFat folder into the libraries sub-folder in your main sketch folder.

    The clue is this line.

    Code:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp:276:54: error: 'fmtFloat' was not declared in this scope


    StdioStream.cpp is in this folder for SdFat-beta

    Code:
    C:\Users\bill\Documents\Arduino\libraries\SdFat\src\iostream\StdioStream.cpp

  6. #6
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    4,284
    @Bill Greiman

    I used window10 to format the card as fat32 maybe that's the cause. Ran into this once before where I had to use sdformatter.

    Thanks for the tips on debug setup.

    EDIT: after formatting this is what I get:
    Code:
    init time: 15 ms
    
    Card type: SDHC
    
    Manufacturer ID: 0X3
    OEM ID: SD
    Product: ACLCD
    Version: 8.0
    Serial number: 0XA33D2B88
    Manufacturing date: 7/2011
    
    cardSize: 31914.98 MB (MB = 1,000,000 bytes)
    flashEraseSize: 128 blocks
    eraseSingleBlock: true
    
    OCR: 0XC0FF8000
    
    SD Partition Table
    part,boot,bgnCHS[3],type,endCHS[3],start,length
    1,0X0,0X1,0X1,0X0,0XC,0XFE,0XFF,0XFF,8192,62325760
    2,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
    3,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
    4,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
    
    Scanning FAT, please wait.
    
    Volume is FAT32
    sectorsPerCluster: 64
    clusterCount:      973584
    freeClusterCount:  4294967295
    fatStartSector:    9362
    dataStartSector:   24576

  7. #7
    Senior Member
    Join Date
    Aug 2016
    Posts
    132
    Quote Originally Posted by Bill Greiman View Post
    It looks like you have a version 1.x of SdFat. SdFat-beta needs to be in a folder named SdFat and must replace the version 1.x of SdFat.

    This line is unfortunately near rhe bottom of the README.md on GitHub.

    To use SdFat Version 2, unzip the download file, rename the library folder SdFat and place the SdFat folder into the libraries sub-folder in your main sketch folder.

    The clue is this line.

    Code:
    C:\Users\admin\Documents\Arduino\libraries\SdFat\src\FatLib\StdioStream.cpp:276:54: error: 'fmtFloat' was not declared in this scope


    StdioStream.cpp is in this folder for SdFat-beta

    Code:
    C:\Users\bill\Documents\Arduino\libraries\SdFat\src\iostream\StdioStream.cpp

    I had the beta version, but I just copied it over the older version, apparently that doesnt work

    Do I need to set it to builtin sdcard thing? or is that automatic for the t4?
    removed the directory and copied a fresh one into my lib dir and it now complies thanks, no idea if its gonna work on my t4 or not. but

  8. #8
    Senior Member
    Join Date
    Nov 2012
    Posts
    271
    Quote Originally Posted by mjs513 View Post
    @Bill Greiman

    I used window10 to format the card as fat32 maybe that's the cause. Ran into this once before where I had to use sdformatter.

    Thanks for the tips on debug setup.
    I experimented with Win10 formatter. If you totally erase a card, it formats the card GUID instead of mbr and is unusable. If the card is mostly OK, it uses the existing layout. Other cases give various less than optimal formats. The SdFat SdFormatter example will produce the standard layout.

  9. #9
    Senior Member
    Join Date
    Aug 2016
    Posts
    132
    hrmm, for t3.6 I have to use BUILTIN_SDCARD
    I tried that on t4 and it gives me
    SdInfo:22: error: 'BUILTIN_SDCARD' was not declared in this scope
    const uint8_t SD_CS_PIN = BUILTIN_SDCARD;

  10. #10
    Senior Member
    Join Date
    Nov 2012
    Posts
    271
    In SD.h Paul defined BUILTIN_SDCARD as 254 to indicate SDIO.

    SD.h has few options and is based on a version of SdFat that I wrote over ten years ago.

    I kept compatibility with sd.begin(csPin) for simple SPI but there are now many options for begin so the general form of begin is:

    Code:
      sd.begin(sdConfig);
    See the TeensySdioDemo example for use of some of the options.

    For SDIO cards, there are currently two options but more will follow.

    Here are the begin calls from TeensySdioDemo:
    Code:
      sd.begin(SdioConfig(FIFO_SDIO))
    
      sd.begin(SdioConfig(DMA_SDIO))
    
      sd.begin(SdSpiConfig(SD_CS_PIN, DEDICATED_SPI, SD_SCK_MHZ(50))
    
      begin(SdSpiConfig(SD_CS_PIN, SHARED_SPI, SD_SCK_MHZ(50))
    On Teensy 3.6 these all use the builtin socket.

    On Teensy 4.0 the first two use the SDIO controller but T4 does not have a compatible SPI connection to the SDIO pins so a socket connected to the first SPI controller is used.

    Here is the constructor for SdSpiConfig:
    Code:
       /** SdSpiConfig constructor.
       *
       * \param[in] cs Chip select pin.
       * \param[in] opt Options.
       * \param[in] settings SPISettings.
       * \param[in] port The SPI port to use.
       */
      SdSpiConfig(uint8_t cs, uint8_t opt, SPISettings settings, SpiPort_t* port) :
        hsSettings(settings), csPin(cs), options(opt), spiPort(port) {}
    I am working on more features for SDIO such as bus mode, bus speed, ...

    These options can't be defined by special values of the CS pin.

  11. #11
    Senior Member
    Join Date
    Aug 2016
    Posts
    132
    on a 3.6 I need to put this BUILTIN_SDCARD but on t4 put it back to SS I guess my soldering job on the sd pins isnt good enough then as I get a error on t4 when running that says no sd card or bad wiring

  12. #12
    Senior Member
    Join Date
    Nov 2012
    Posts
    271
    Quote Originally Posted by firehopper View Post
    on a 3.6 I need to put this BUILTIN_SDCARD but on t4 put it back to SS I guess my soldering job on the sd pins isnt good enough then as I get a error on t4 when running that says no sd card or bad wiring
    If begin(BUILTIN_SDCARD) works with SD.h on T4 then begin(SdioConfig(FIFO_SDIO)) or begin(SdioConfig(DMA_SDIO)) should work with SdFat-beta. The first form is usually fastest.

  13. #13
    Senior Member
    Join Date
    Nov 2012
    Posts
    271
    I won't be implementing faster SD modes. T4 can't support 1.8V signaling. See this.

  14. #14
    Senior Member
    Join Date
    Aug 2016
    Posts
    132
    Quote Originally Posted by Bill Greiman View Post
    If begin(BUILTIN_SDCARD) works with SD.h on T4 then begin(SdioConfig(FIFO_SDIO)) or begin(SdioConfig(DMA_SDIO)) should work with SdFat-beta. The first form is usually fastest.
    the issue seems to me a bad pcb design. so cant test code. the sd wires are flipped

  15. #15
    Senior Member
    Join Date
    Nov 2012
    Posts
    271
    Here is a link to a benchmark that compares uSDHC SDIO, dedicated SPI, and shared SPI on Teensy 4.0 with 512 byte transfers.

    Here is a summary:

    uSDHC, about 22 MB/sec read/write.

    Dedicated SPI, about 3.7 MB/sec read/write.

    Shared SPI, about 470 KB/sec write and 1006 KB/sec read.

    The uSDHC is even fast with much smaller read/writes since the actual I/O transfer to the card will be 512 bytes. See above for eight byte read/write, about 12 MB/sec.

  16. #16
    Senior Member
    Join Date
    Nov 2012
    Posts
    271
    Here is one more test using SPI1, the second SPI port.

    I made a test setup with pogo pins connecting to pin 26, MOSI1, and pin 27, SCK1, on the Teensy 4.0 Back Side.

    I used pin 0 for CS1 and pin 1 for MISO1. You could use another pin for CS but you must use pin 1 for MISO1.

    I used the following definition in the bench example.
    Code:
    // pin zero is chip select.
    #define SD_CONFIG SdSpiConfig(0, DEDICATED_SPI, SD_SCK_MHZ(50), &SPI1)
    The bench example uses this call to initialize the SD card.
    Code:
      if (!sd.begin(SD_CONFIG)) {
        sd.initErrorHalt(&Serial);
      }
    The result is about the same as using the first SPI port. This old 32GB Samsung Pro+ card has amazingly low max latency for write.
    Code:
    FILE_SIZE_MB = 5
    BUF_SIZE = 512 bytes
    
    write speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    3734.13,152,136,136
    3734.13,152,136,136
    
    read speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    3759.40,137,135,136
    3765.06,137,135,135
    It would also be possible to use the SPI2, the third SPI port. This requires connecting to the same Back Side pins as the uSDHC controller so it is not worth using SPI2.

    Teensy 3.6 allows using either SPI or SDIO with the builtin uSD. This is not possible on Teensy 4.0 because of limitations of pin muxing.

  17. #17
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,398
    Bill,
    great to get SD_FAT with exFAT and SDIO for T4.0
    BTW, what is your suggestion for your SdFs library, are you planning to upgrade to T4.0?

    One thing I would be curious about is the power consumptions during write.
    I know there are different specs, but what are the measured peak currents for the different write speeds?
    Also would consumption increase with write speed?
    Any chancy you could measure these data and add to your performance summary?

  18. #18
    Senior Member
    Join Date
    Nov 2012
    Posts
    271
    Quote Originally Posted by WMXZ View Post
    Bill,
    great to get SD_FAT with exFAT and SDIO for T4.0
    BTW, what is your suggestion for your SdFs library, are you planning to upgrade to T4.0?

    One thing I would be curious about is the power consumptions during write.
    I know there are different specs, but what are the measured peak currents for the different write speeds?
    Also would consumption increase with write speed?
    Any chancy you could measure these data and add to your performance summary?
    All of the SdFs features/code are now in SdFat-beta. I will not be updating SdFs in the future.

    I will probably add some support for USB drives. I have an example using an Arduino ADK with a USB hard drive and USB flash keys. I published USB support years ago as a UsbFat library but there was almost no interest.

    I think the real future is eMMC and SD. SD Express specifies a bus speed of 985 MB/s.

    Peak current for SD cards varies a great deal by model. Also many cards have a fairly large cap on Vcc. This can cause problems for hot insertion, I have seen brownout resets in some cases. I suspect microSD cards have fairly small caps.

    The SD Association Full Specification has this statement for average current.
    Code:
    6.6.3 Current Consumption
    The current consumption is measured by averaging over 1 second.
    • Before first command: Maximum 15 mA
    • During initialization: Maximum 100 mA
    • Operation in Default Speed Mode: Maximum 100 mA for SDSC and SDHC
      100mA (XPC=0) or 150mA (XPC=1) for SDXC
    • Operation in High Speed Mode: Maximum 200 mA
    • Operation in UHS-I Mode: Maximum 400mA (UHS50,DDR50) or 800mA (UHS104)
    • Operation with other functions: Maximum 500 mA.
    The specified max current seems to be proportional to the speed. Default mode is 12.5 MB/sec 100 mA. to UHS104, about eight times faster, 800 mA

    I suspect a certain amount of energy is required to program an RU, Record Unit, of flash. An RU is often 512KB.

    The number of RU programmed depends on how the card is written. If you do small writes, many RUs are programmed to emulate 512 byte sectors.

    My main experience is with very old SD cards with small RUs used in an extreme low power situation for a cave logger that needed to run for months on AA batteries. These cards had very sharp peaks.

    Here is an old 256MB card and a 2GB card. See this.
    Click image for larger version. 

Name:	sdsavesidebyside1.jpg 
Views:	12 
Size:	37.4 KB 
ID:	17811

    Here is the spec for a 64GB class 10 card.

    It seems to specify a peak current of 300 ma. I don't know what the statement "Capacity Connected to Power Line 5 uF" means.

    I think measuring current would be a good idea. Guess I should build a test setup to use with a scope. I did that for the hot insert brownout problem.

    I hope the next Teensy 4.x has an uSD socket with UHS-I support. If there are 800 mA current peaks it will be a problem.

  19. #19
    Senior Member
    Join Date
    Feb 2015
    Posts
    102
    Hi Bill,

    First I just wanted to say a quick "thank you" for all your work on SdFat over the years, it has been much appreciated by many in the community.

    I've been testing with SdFat-beta and I think I have found some kind of conflict or incompatibility that I'd like to report, and see if you might have any advice or ideas. What I am doing is using SdFat-beta in DMA_SDIO mode to play sound samples using Paul's Audio library. This seems to work great using T3.6, however on T4, the sound playback is garbled. Here's some sample code to illustrate. This code compiles for both T3.6 and T4, just change the codec definition to match what you have available.

    Code:
    #include <Arduino.h>
    #include "../lib/SdFat-beta/src/SdFat.h"
    #include "../lib/Audio/Audio.h"
    
    // GUItool: begin automatically generated code
    AudioSynthWaveformSine   sine1;          //xy=216,302
    AudioInputI2S            i2s2;           //xy=236,210
    AudioPlaySdWav           playSdWav1;     //xy=363,390
    AudioEffectEnvelope      envelope1;      //xy=376,307
    AudioAnalyzePeak         peak1;          //xy=433,210
    AudioMixer4              mixer1;         //xy=568.0000076293945,312.0000057220459
    AudioOutputI2S           i2s1;           //xy=711,321
    AudioConnection          patchCord1(sine1, envelope1);
    AudioConnection          patchCord2(playSdWav1, 0, mixer1, 1);
    AudioConnection          patchCord3(envelope1, 0, mixer1, 0);
    AudioConnection          patchCord4(mixer1, 0, i2s1, 0);
    AudioConnection          patchCord5(mixer1, 0, i2s1, 1);
    //AudioControlWM8731       codec;          //xy=715,258
    AudioControlSGTL5000 codec;
    // GUItool: end automatically generated code
    
    elapsedMillis noteDelay;
    SdFs sd;
    
    void setup() {
        // Audio setup.
        mixer1.gain(0, .7f);
        mixer1.gain(1, 1.0f);
        codec.enable();
        codec.volume(.6f);
        codec.inputSelect(AUDIO_INPUT_MIC);
        codec.inputLevel(.5f);
    
        AudioMemory(10);
        envelope1.attack(10);
        envelope1.hold(0);
        envelope1.decay(25);
        envelope1.sustain(0.4);
        envelope1.release(70);
    
        sine1.frequency(220.0f);
        sine1.amplitude(1.0);
    
        playSdWav1.begin();
    
        // SD card setup.
        sd.begin(SdioConfig(DMA_SDIO));
    }
    
    void loop() {
        if(noteDelay >= 500) {
            noteDelay -= 500;
            if(envelope1.isActive()) {
                envelope1.noteOff();
                playSdWav1.play("snap1.wav");
            } else {
                envelope1.noteOn();
            }
        }
    }
    This code will play a 220Hz sine tone for a bit, then play a wav sample, then repeat. On Teensy 3.6 this seems to work great, however on Teensy 4.0, rather than the wav sound, I get a sort of garbled tone sound, I'm not sure how to describe it. To enable SdFat-beta to be used in the Audio library, I've made some simple modifications to play_sd_wav.h and .cpp (which is the reason why a local copy is included in the headers of the sample code). The modifications are around line 70 of play_sd_wav.cpp:

    Code:
    ... snip ...
    	//wavfile = SD.open(filename);
    	bool result = wavfile.open(filename);
    	__enable_irq();
    	if (!result) {
    ... snip ...
    I hope my use case is clear and makes sense here... the local modifications to the Audio library to enable using SdFat-beta, plus the fact that I don't think many people are running audio code on the T4 yet, might make this a tough problem to debug, but I would be super thankful for any input you might have. The snap1.wav file from the sample code is attached in a zip file too. Anyway, thanks ahead of time.

    snap1.zip

  20. #20
    Senior Member
    Join Date
    Nov 2017
    Location
    Belgium
    Posts
    152
    Apparently there is an incompatibility between SdFat version 2.0.0beta5 and the Audio lib which itself uses the SD lib.(Arduino 10.8.10 Teensyduino 1.48)
    Following simplified example does not compile and gives different compilation errors depending on the order of the includes.(T3.x & T4.0)
    Replacing Audio.h with SD.h results in practically the same errors.

    Now I'm wondering if this is fixable or just an inherent incompatibility between the SdFat & SD libs?
    Code:
    #include <Audio.h>
    #include "SdFat.h"
    
    SdFs sd;
    FsFile file;
    
    void setup() {}
    void loop() {}
    error
    Code:
    test_bug_sdfat:5: error: 'SdFs' does not name a type
     SdFs sd;
     ^
    test_bug_sdfat:6: error: 'FsFile' does not name a type
     FsFile file;
     ^
    reversed #include order
    Code:
    #include "SdFat.h"
    #include <Audio.h>
    
    SdFs sd;
    FsFile file;
    
    void setup() {}
    void loop() {}
    error
    Code:
    In file included from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/play_sd_raw.h:32:0,
                     from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/Audio.h:117,
                     from /Users/xxx/Documents/Arduino/test/test_bug_sdfat/test_bug_sdfat.ino:2:
    /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/SD.h:26:0: warning: "FILE_READ" redefined
     #define FILE_READ O_READ
     ^
    In file included from /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/ExFatLib/ExFatFile.h:744:0,
                     from /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/ExFatLib/ExFatVolume.h:28,
                     from /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/ExFatLib/ExFatLib.h:27,
                     from /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/SdFat.h:33,
                     from /Users/xxx/Documents/Arduino/test/test_bug_sdfat/test_bug_sdfat.ino:1:
    /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/ExFatLib/../common/ArduinoFiles.h:31:0: note: this is the location of the previous definition
     #define FILE_READ O_RDONLY
     ^
    In file included from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/play_sd_raw.h:32:0,
                     from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/Audio.h:117,
                     from /Users/xxx/Documents/Arduino/test/test_bug_sdfat/test_bug_sdfat.ino:2:
    /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/SD.h:27:0: warning: "FILE_WRITE" redefined
     #define FILE_WRITE (O_READ | O_WRITE | O_CREAT)
     ^
    In file included from /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/ExFatLib/ExFatFile.h:744:0,
                     from /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/ExFatLib/ExFatVolume.h:28,
                     from /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/ExFatLib/ExFatLib.h:27,
                     from /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/SdFat.h:33,
                     from /Users/xxx/Documents/Arduino/test/test_bug_sdfat/test_bug_sdfat.ino:1:
    /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/ExFatLib/../common/ArduinoFiles.h:35:0: note: this is the location of the previous definition
     #define FILE_WRITE (O_RDWR | O_CREAT | O_AT_END)
     ^
    In file included from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/play_sd_raw.h:32:0,
                     from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/Audio.h:117,
                     from /Users/xxx/Documents/Arduino/test/test_bug_sdfat/test_bug_sdfat.ino:2:
    /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/SD.h:29:7: error: using typedef-name 'File' after 'class'
     class File : public Stream {
           ^
    In file included from /Users/xxx/Documents/Arduino/test/test_bug_sdfat/test_bug_sdfat.ino:1:0:
    /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/SdFat.h:391:16: note: 'File' has a previous declaration here
     typedef File32 File;
                    ^
    In file included from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/play_sd_raw.h:32:0,
                     from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/Audio.h:117,
                     from /Users/xxx/Documents/Arduino/test/test_bug_sdfat/test_bug_sdfat.ino:2:
    /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/SD.h:63:3: error: 'Sd2Card' does not name a type
       Sd2Card card;
       ^
    /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/SD.h:64:3: error: 'SdVolume' does not name a type
       SdVolume volume;
       ^
    /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/SD.h:100:16: error: using typedef-name 'File' after 'class'
       friend class File;
                    ^
    In file included from /Users/xxx/Documents/Arduino/test/test_bug_sdfat/test_bug_sdfat.ino:1:0:
    /Users/xxx/Documents/Arduino/libraries/SdFat-beta-master/src/SdFat.h:391:16: note: 'File' has a previous declaration here
     typedef File32 File;
                    ^
    In file included from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/play_sd_raw.h:32:0,
                     from /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Audio/Audio.h:117,
                     from /Users/xxx/Documents/Arduino/test/test_bug_sdfat/test_bug_sdfat.ino:2:
    /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/SD.h:100:3: error: friend declaration does not name a class or function
       friend class File;
       ^
    /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/SD/SD.h:72:33: error: 'SD_CHIP_SELECT_PIN' was not declared in this scope
       boolean begin(uint8_t csPin = SD_CHIP_SELECT_PIN);

  21. #21
    Hi,

    i have a problem when i use a GD3_SDIO library on a teensy 4.0.
    this problem is related to the migration of the teensy 3.6 to the 4.0 and in particular the library SDfat
    I have a problem with src in general and copy but I don't have a proficiency on the library sdfat so I can not help you more than that. Sorry ...

    C:\....\GD3_SDIO/GD3_SDIO.h:720:36: error: section attribute not allowed for 'src'

    void copy(const PROGMEM uint8_t *src, int count);

    C:\...\GD3_SDIO/GD3_SDIO.h: In member function 'void Reader::nextcluster2(byte*)':

  22. #22
    This library requires a lot of work to work with the teensy 4 SDIO reader with SdFat beta. In fact, I am working on such modification but I decided to start from the latest version available for the gameduino.

    I suggest you use the last review that James did in the library for gameduino 23x.

    If you want to experiment with GD3_SDIO, you should replace this lines:

    Code:
    #if !defined(ESP8266) 
      void copy(const PROGMEM uint8_t *src, int count);
    #else
      void copy(const uint8_t *src, int count);
    #endif
    With this one, to make it compatible with teensy 4:

    Code:
    #if !defined(ESP8266) && !defined(TEENSYDUINO)
      void copy(const PROGMEM uint8_t *src, int count);
    #else
      void copy(const uint8_t *src, int count);
    #endif
    Despite the settings inside of GD3_SDIO, I point out, the SDIO reader with SdFat will not work in teensy 4.

    In the experiments with the new modifications of Greiman, it seems to me that in order to integrate the SdFat beta library to work with the teensy SDIO reader 4, these instructions must be applied:
    Code:
     #define SD_FAT_TYPE 1
     SdFat32 SD;
     SD.begin(SdioConfig(FIFO_SDIO));
    The compatible file system must be File32.

  23. #23
    thank you for your help but my library is changed so it was not possible.

    on the other hand I managed to solve my problem by modifying the line :

    void copy(const PROGMEM uint8_t *src, int count);
    to
    void copy(const uint8_t *src, int count);

    I don't know what is the purpose of "PROGMEM" but without that the compiler stops blocking

    On the other hand I could not test it because I connect the screen on the bus SPI1 and not the SPI0 and for the moment I can not make it work so ...
    Last edited by Armadafg; 11-20-2019 at 08:40 AM.

  24. #24
    Finally, if it has been difficult to weld on those mini-pads !; The SDIO reader is already installed with an SD-microSD adapter, after applying the test bench for the first time with a 32 Gb SanDisk extreme microSD card, class 3:



    Amazing!

  25. #25
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,073
    Cool! Impressive numbers!

    Had not tested this yet. Just got the current and ran it on PJRC Beta T4 breakout and also the FRDM4236 board and see similar results:
    Code:
    Type any character to start
    FreeStack: 474376
    Type is FAT32
    Card size: 31.91 GB (GB = 1E9 bytes)
    
    Manufacturer ID: 0X3
    OEM ID: SD
    Product: SU32G
    Version: 8.0
    Serial number: 0XAC3E2E1C
    Manufacturing date: 9/2012
    
    FILE_SIZE_MB = 5
    BUF_SIZE = 512 bytes
    Starting write test, please wait.
    
    write speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    15151.52,12019,22,33
    15479.88,15876,22,32
    
    Starting read test, please wait.
    
    read speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    21645.02,273,22,23
    21645.02,272,22,23
    
    Done
    Did a quick SDformatter format and write speed went from 5M to above posted 15MB/sec!

    Changed to 50 MB file and write speed down and worst latency up - but avg looks.dat good:
    Code:
    write speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    12876.64,202697,22,39
    10862.48,202726,22,47
    
    Starting read test, please wait.
    
    read speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    22502.25,355,22,22
    22492.13,355,22,22
    Changed FileName and went for 200MB:
    write speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    8161.93,205646,22,62
    9081.83,207106,22,56

    Starting read test, please wait.

    read speed and latency
    speed,max,min,avg
    KB/Sec,usec,usec,usec
    22553.00,376,22,22
    22553.00,376,22,22
    ExFAT similar. Bumping 600 up to 816 MHz makes no diff, and the same at 396 MHz - FAILS write at 150 MHz.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •