I have a program which ran fine with Teensyduino 1.53. I was getting occasional EEPROM corruption so I upgraded to Teensyduino 1.55.
Now the same program does not compile and gives the error trace below:
------------------------------------------------------------------------------------------------------------------------------------------
WARNING: Category 'Utility' in library FlexIO_t4 is not valid. Setting to 'Uncategorized'
Multiple libraries were found for "SD.h"
Library can't use both 'src' and 'utility' folders. Double check C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
Error compiling for board Teensy 4.1.
------------------------------------------------------------------------------------------------------------------------------------------
What is causing this error?
Update:
I commented out the code for using the SD library and now the program compiles. What does "can't use both 'src' and 'utility' folders" mean?
Then I used the same SD code as before but after deleting the utility subfolder in the Teensy SD library and also commenting out root.openroot
and that seems to work as the program compiled fine.
Now the same program does not compile and gives the error trace below:
------------------------------------------------------------------------------------------------------------------------------------------
WARNING: Category 'Utility' in library FlexIO_t4 is not valid. Setting to 'Uncategorized'
Multiple libraries were found for "SD.h"
Library can't use both 'src' and 'utility' folders. Double check C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
Error compiling for board Teensy 4.1.
------------------------------------------------------------------------------------------------------------------------------------------
What is causing this error?
Update:
I commented out the code for using the SD library and now the program compiles. What does "can't use both 'src' and 'utility' folders" mean?
Then I used the same SD code as before but after deleting the utility subfolder in the Teensy SD library and also commenting out root.openroot
Code:
SdFile root;
//root.openRoot(volume);
and that seems to work as the program compiled fine.
Last edited: