Many thanks for your help....I dont have old sd micro. I continu with my SD HC in fat32. I download corberjune.ino.hex with old tools teensy duino : it works :
I can see the message of Sd recording, Button stop work. I can read the file into audacity. I check only with noise.
The other hex file is to big for teensy tools
I was not able to compile with A1.8.7 , T 1.44 and this old uSDFS. First I need to rename the function SDHC_isr wich is into two librairy ( uSDFS and SD)...like yet discribe in my first post here. Some other compilation problems.
Under last version of Arduino and Teensy I have try someexample in SD and uSDFS. Most of them are working.
Remi
with out- tied to ground with a capacitor.... It was clearly stated in the last lines of the datasheet
"The unused output pin should be left disconnected when the mic is used in single-ended mode; do not connect the unused pin to ground."
I found two "problems" uSDFS has been updated tan this gives error of missing ff_utils.h, I used the older library I had stored and it worked right away.
I repeat, what I said earlier, do NOT use uSDFS together with SD and if you only need the tm2seconds or seconds2tm functions it is better to copy the function from ff_utils.h
#ifdef USESD1
//#define USESD
#include <SD.h>
#include "ff.h" // uSDFS lib
#include "ff_utils.h" // uSDFS lib
File root;
FRESULT rc; /* Result code */
FATFS fatfs; /* File system object */
FIL fil; /* File object */
#endif
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Toshiba\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180,opt=o2std,keys=en-us -ide-version=10807 -build-path C:\Users\Toshiba\AppData\Local\Temp\arduino_build_671532 -warnings=all -build-cache C:\Users\Toshiba\AppData\Local\Temp\arduino_cache_784013 -verbose C:\Users\Toshiba\Documents\Arduino\teensybatpost159\teensybatpost159.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Toshiba\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180,opt=o2std,keys=en-us -ide-version=10807 -build-path C:\Users\Toshiba\AppData\Local\Temp\arduino_build_671532 -warnings=all -build-cache C:\Users\Toshiba\AppData\Local\Temp\arduino_cache_784013 -verbose C:\Users\Toshiba\Documents\Arduino\teensybatpost159\teensybatpost159.ino
Using board 'teensy36' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Detecting libraries used...
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=144 -DARDUINO=10807 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "C:\\Users\\Toshiba\\AppData\\Local\\Temp\\arduino_build_671532\\sketch\\teensybatpost159.ino.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=144 -DARDUINO=10807 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SD" "C:\\Users\\Toshiba\\AppData\\Local\\Temp\\arduino_build_671532\\sketch\\teensybatpost159.ino.cpp" -o nul
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=144 -DARDUINO=10807 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy3" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\SD" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\uSDFS-master\\src" "C:\\Users\\Toshiba\\AppData\\Local\\Temp\\arduino_build_671532\\sketch\\teensybatpost159.ino.cpp" -o nul
C:\Users\Toshiba\Documents\Arduino\teensybatpost159\teensybatpost159.ino:115:37: fatal error: ff_utils.h: No such file or directory
compilation terminated.
Using library SD at version 1.2.2 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
Using library uSDFS-master at version 1.1.2 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\uSDFS-master
Error compiling for board Teensy 3.6.
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\uSDFS-master\src\utility\sd_msc.cpp:41:18: fatal error: msc.h: No such file or directory
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\uSDFS-master\src\utility\sd_msc.cpp:41:18: fatal error: msc.h: No such file or directory
Hi,
I an attempt to solve the problems in the windows environment I have split the function seconds2tm away from dependencies related to uSDFS. To do this I have copied/changed the ff_utils(.c/.h) file and renamed the function to seconds2time. This is all available on the github repository, you need to download the new main.cpp and ff_utils_copy(.c/.h). I hope this clears the problems with the uSDFS library for windows users. Since I dont have a working setup to test the windows environment I cannot guarantee this will work. In my linux setup this did compile and work,
regards
Cor
.pioenvs/teensy36/lib54f/libuSDFS_ID2957.a(ff.c.o): In function `f_mount':
ff.c:(.text.f_mount+0x0): multiple definition of `f_mount'
C:\Users\Toshiba\AppData\Local\Temp\arduino_build_330571\sketch\effect_granular.cpp: In member function 'void mAudioEffectGranular::begin(int16_t*, int16_t)':
effect_granular.cpp:39: warning: unused variable 'subsample'
int subsample=0;
^
teensy_batdetectorwmxz:1085: error: 'FRESULT' has not been declared
void die(char *str, FRESULT rc)
^
Using library Time at version 1.5 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Time
Using library Audio at version 1.3 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio
Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI
Using library SD at version 1.2.2 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
Using library SerialFlash at version 0.5 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SerialFlash
Using library Bounce in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Bounce (legacy)
Using library ILI9341_t3 at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ILI9341_t3
Using library Encoder at version 1.4.1 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Encoder
Using library uSDFS-master at version 1.1.2 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\uSDFS-master
Using library Wire at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Wire
'FRESULT' has not been declared