FredBloggs
New member
Posting in case this is helpful to someone else.
I installed Ardruino 1.8.13 and teensy installer but whenver i tried to compile any of the Teensy 4.1 example to use built in SD, I got BUILTIN_SDCARD Not defined error.
To Diagnose:
1. I enabled Ardruino > Preferences > Show verbose Output during compilation.
2. I could see that even though I has selected: Tools > Board: Teensy 4.1
That compilation was including the SD library for the standard 'arduino' hardware and not the 'teensy' hardware folder.
3. I'm not sure of the exact steps which fixed this but I tried the following until compilation finally included the correct teensy hardware and resolved the BUILTIN_SDCARD Not defined error.
a. Deleted all Ardruino Cache folders.
b. Re- Started Ardruino IDE.
c. Switched order of #include SPI with SD.
d. Re compiled. at some point after doing the above I could see the compiler verbose logging showed that it choose the teensy SD library over the standard ardruino hardware SD libraru
I installed Ardruino 1.8.13 and teensy installer but whenver i tried to compile any of the Teensy 4.1 example to use built in SD, I got BUILTIN_SDCARD Not defined error.
To Diagnose:
1. I enabled Ardruino > Preferences > Show verbose Output during compilation.
2. I could see that even though I has selected: Tools > Board: Teensy 4.1
That compilation was including the SD library for the standard 'arduino' hardware and not the 'teensy' hardware folder.
3. I'm not sure of the exact steps which fixed this but I tried the following until compilation finally included the correct teensy hardware and resolved the BUILTIN_SDCARD Not defined error.
a. Deleted all Ardruino Cache folders.
b. Re- Started Ardruino IDE.
c. Switched order of #include SPI with SD.
d. Re compiled. at some point after doing the above I could see the compiler verbose logging showed that it choose the teensy SD library over the standard ardruino hardware SD libraru