On 10/15/19 11:37 AM, Fugu ME100 wrote:
I would probably just use memset rather than the for loop. :)
I apparently dispensed with the entire operation.
The function does not exist in my version.
https://github.com/bkw777/SD2TPDD/tree/bkw_al32u4
I don't think I'm getting any trailing nulls either. (I'll have to test
more times with more different files to be certain, since Gary said
different files behaved differently.
And I don't get any compiler errors even with verbose messages turned on:
---
/home/bkw/arduino-1.8.10/arduino-builder -dump-prefs -logger=machine
-hardware /home/bkw/arduino-1.8.10/hardware -hardware
/home/bkw/.arduino15/packages -tools
/home/bkw/arduino-1.8.10/tools-builder -tools
/home/bkw/arduino-1.8.10/hardware/tools/avr -tools
/home/bkw/.arduino15/packages -built-in-libraries
/home/bkw/arduino-1.8.10/libraries -libraries
/home/bkw/Arduino/libraries -fqbn=adafruit:avr:feather32u4
-ide-version=10810 -build-path /tmp/arduino_build_375308 -warnings=none
-prefs=build.warn_data_percentage=75
-prefs=runtime.tools.avrdude.path=/home/bkw/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17
-prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/bkw/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17
-prefs=runtime.tools.arduinoOTA.path=/home/bkw/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0
-prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/bkw/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0
-prefs=runtime.tools.avr-gcc.path=/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5
-prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5
-verbose /home/bkw/src/SD2TPDD/SD2TPDD.ino
/home/bkw/arduino-1.8.10/arduino-builder -compile -logger=machine
-hardware /home/bkw/arduino-1.8.10/hardware -hardware
/home/bkw/.arduino15/packages -tools
/home/bkw/arduino-1.8.10/tools-builder -tools
/home/bkw/arduino-1.8.10/hardware/tools/avr -tools
/home/bkw/.arduino15/packages -built-in-libraries
/home/bkw/arduino-1.8.10/libraries -libraries
/home/bkw/Arduino/libraries -fqbn=adafruit:avr:feather32u4
-ide-version=10810 -build-path /tmp/arduino_build_375308 -warnings=none
-prefs=build.warn_data_percentage=75
-prefs=runtime.tools.avrdude.path=/home/bkw/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17
-prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/home/bkw/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17
-prefs=runtime.tools.arduinoOTA.path=/home/bkw/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0
-prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/bkw/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0
-prefs=runtime.tools.avr-gcc.path=/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5
-prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5
-verbose /home/bkw/src/SD2TPDD/SD2TPDD.ino
Using board 'feather32u4' from platform in folder:
/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13
Using core 'arduino' from platform in folder:
/home/bkw/arduino-1.8.10/hardware/arduino/avr
Detecting libraries used...
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
/tmp/arduino_build_375308/sketch/SD2TPDD.ino.cpp -o /dev/null
Alternatives for SdFat.h: [[email protected]]
ResolveLibrary(SdFat.h)
-> candidates: [[email protected]]
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
/tmp/arduino_build_375308/sketch/SD2TPDD.ino.cpp -o /dev/null
Alternatives for SPI.h: [[email protected]]
ResolveLibrary(SPI.h)
-> candidates: [[email protected]]
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/tmp/arduino_build_375308/sketch/SD2TPDD.ino.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/FatLib/FatFile.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/FatLib/FatFileLFN.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/FatLib/FatFilePrint.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/FatLib/FatFileSFN.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/FatLib/FatVolume.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/FatLib/FmtNumber.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/FatLib/StdioStream.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/FatLib/fstream.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/FatLib/istream.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/FatLib/ostream.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/MinimumSerial.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/SdCard/SdSpiCard.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/SdCard/SdSpiCardEX.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/SdCard/SdioCardEX.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/SdCard/SdioTeensy.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/SpiDriver/SdSpiESP8266.cpp -o
/dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/SpiDriver/SdSpiParticle.cpp -o
/dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/SpiDriver/SdSpiSAM3X.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/SpiDriver/SdSpiSTM32.cpp -o /dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/Arduino/libraries/SdFat/src/SpiDriver/SdSpiTeensy3.cpp -o
/dev/null
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src/SPI.cpp
-o /dev/null
Generating function prototypes...
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4
-DF_CPU=8000000L -DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4
-DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C
"-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/tmp/arduino_build_375308/sketch/SD2TPDD.ino.cpp -o
/tmp/arduino_build_375308/preproc/ctags_target_for_gcc_minus_e.cpp
/home/bkw/arduino-1.8.10/tools-builder/ctags/5.8-arduino11/ctags -u
--language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns
--line-directives
/tmp/arduino_build_375308/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions
-ffunction-sections -fdata-sections -fno-threadsafe-statics
-Wno-error=narrowing -MMD -flto -mmcu=atmega32u4 -DF_CPU=8000000L
-DARDUINO=10810 -DARDUINO_AVR_FEATHER32U4 -DARDUINO_ARCH_AVR
-DUSB_VID=0x239A -DUSB_PID=0x800C "-DUSB_MANUFACTURER=\"Adafruit\""
"-DUSB_PRODUCT=\"Feather 32u4\""
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/cores/arduino
-I/home/bkw/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4
-I/home/bkw/Arduino/libraries/SdFat/src
-I/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI/src
/tmp/arduino_build_375308/sketch/SD2TPDD.ino.cpp -o
/tmp/arduino_build_375308/sketch/SD2TPDD.ino.cpp.o
Compiling libraries...
Compiling library "SdFat"
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/MinimumSerial.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FatFile.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FatFileLFN.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FatFilePrint.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FatFileSFN.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FatVolume.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FmtNumber.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/FatLib/StdioStream.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/FatLib/fstream.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/FatLib/istream.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/FatLib/ostream.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/SdCard/SdSpiCard.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/SdCard/SdSpiCardEX.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/SdCard/SdioCardEX.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/SdCard/SdioTeensy.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/SpiDriver/SdSpiESP8266.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/SpiDriver/SdSpiParticle.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/SpiDriver/SdSpiSAM3X.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/SpiDriver/SdSpiSTM32.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SdFat/SpiDriver/SdSpiTeensy3.cpp.o
Compiling library "SPI"
Using previously compiled file:
/tmp/arduino_build_375308/libraries/SPI/SPI.cpp.o
Compiling core...
Using previously compiled file:
/tmp/arduino_build_375308/core/wiring_pulse.S.o
Using previously compiled file: /tmp/arduino_build_375308/core/hooks.c.o
Using previously compiled file: /tmp/arduino_build_375308/core/wiring.c.o
Using previously compiled file:
/tmp/arduino_build_375308/core/wiring_analog.c.o
Using previously compiled file:
/tmp/arduino_build_375308/core/wiring_digital.c.o
Using previously compiled file:
/tmp/arduino_build_375308/core/wiring_pulse.c.o
Using previously compiled file:
/tmp/arduino_build_375308/core/wiring_shift.c.o
Using previously compiled file:
/tmp/arduino_build_375308/core/WInterrupts.c.o
Using previously compiled file:
/tmp/arduino_build_375308/core/HardwareSerial1.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/core/HardwareSerial2.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/core/HardwareSerial3.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/core/IPAddress.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/core/PluggableUSB.cpp.o
Using previously compiled file: /tmp/arduino_build_375308/core/Print.cpp.o
Using previously compiled file: /tmp/arduino_build_375308/core/Stream.cpp.o
Using previously compiled file: /tmp/arduino_build_375308/core/Tone.cpp.o
Using previously compiled file: /tmp/arduino_build_375308/core/USBCore.cpp.o
Using previously compiled file: /tmp/arduino_build_375308/core/WMath.cpp.o
Using previously compiled file: /tmp/arduino_build_375308/core/WString.cpp.o
Using previously compiled file: /tmp/arduino_build_375308/core/abi.cpp.o
Using previously compiled file: /tmp/arduino_build_375308/core/main.cpp.o
Using previously compiled file: /tmp/arduino_build_375308/core/new.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/core/HardwareSerial.cpp.o
Using previously compiled file:
/tmp/arduino_build_375308/core/HardwareSerial0.cpp.o
Using previously compiled file: /tmp/arduino_build_375308/core/CDC.cpp.o
Using previously compiled file: /tmp/arduino_build_375308/core/core.a
Linking everything together...
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc
-w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4
-o /tmp/arduino_build_375308/SD2TPDD.ino.elf
/tmp/arduino_build_375308/sketch/SD2TPDD.ino.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/MinimumSerial.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FatFile.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FatFileLFN.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FatFilePrint.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FatFileSFN.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FatVolume.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/FatLib/FmtNumber.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/FatLib/StdioStream.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/FatLib/fstream.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/FatLib/istream.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/FatLib/ostream.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/SdCard/SdSpiCard.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/SdCard/SdSpiCardEX.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/SdCard/SdioCardEX.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/SdCard/SdioTeensy.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/SpiDriver/SdSpiESP8266.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/SpiDriver/SdSpiParticle.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/SpiDriver/SdSpiSAM3X.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/SpiDriver/SdSpiSTM32.cpp.o
/tmp/arduino_build_375308/libraries/SdFat/SpiDriver/SdSpiTeensy3.cpp.o
/tmp/arduino_build_375308/libraries/SPI/SPI.cpp.o
/tmp/arduino_build_375308/core/core.a -L/tmp/arduino_build_375308 -lm
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy
-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load
--no-change-warnings --change-section-lma .eeprom=0
/tmp/arduino_build_375308/SD2TPDD.ino.elf
/tmp/arduino_build_375308/SD2TPDD.ino.eep
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy
-O ihex -R .eeprom /tmp/arduino_build_375308/SD2TPDD.ino.elf
/tmp/arduino_build_375308/SD2TPDD.ino.hex
Multiple libraries were found for "SdFat.h"
Used: /home/bkw/Arduino/libraries/SdFat
Multiple libraries were found for "SPI.h"
Used: /home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI
Using library SdFat at version 1.1.0 in folder:
/home/bkw/Arduino/libraries/SdFat
Using library SPI at version 1.0 in folder:
/home/bkw/arduino-1.8.10/hardware/arduino/avr/libraries/SPI
/home/bkw/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-size
-A /tmp/arduino_build_375308/SD2TPDD.ino.elf
Sketch uses 19356 bytes (67%) of program storage space. Maximum is 28672
bytes.
Global variables use 1709 bytes of dynamic memory.
---------------------------------------
But it is not working 100% perfect still.
If I have DOS100.CO on the root of the SD, and install UR-II as the rom,
then try to use TS-DOS from UR-II, it fails the first time I try it,
then works if I try again.
--
bkw
On 10/15/19 11:37 AM, Fugu ME100 wrote:
I would probably just use memset rather than the for loop. :)
From: M100 <[email protected]
<mailto:[email protected]>> on behalf of Dan Higdon
<[email protected] <mailto:[email protected]>>
Reply-To: <[email protected] <mailto:[email protected]>>
Date: Tuesday, October 15, 2019 at 8:10 AM
To: <[email protected] <mailto:[email protected]>>
Subject: Re: [M100] Issue with sd2tpdd
I'd also consider re-writing clear buffer to take a (char *c)
parameter, like this:
void clearBuffer(*char**buffer, int bufferSize){ //Fills the
buffer with 0x00
for(int i=0; i<bufferSize; i++){
* buffer[i] = '\0';*
}
}