Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 18 of 18

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,121
    @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
    131
    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,121
    @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
    131
    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
    131
    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
    131
    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
    131
    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,347
    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:	5 
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.

Posting Permissions

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