I might have discovered a bug in between Teensy and STM32duino.
I am cross-posting this to both forums.
In trying to test a pre-release of Visuino, a graphic Arduino programming solution, I was attempting to test the BUILTIN_SDCARD function when the Generated Visuino code failed to compile.
Then when I open an Example, from the IDE under ‘SD’ the sketch, ‘CardInfo’, the BUILTIN_SDCARD line was missing from the comments section that lists the ‘chipSelect' pins.
Here’s the example text that is correct:
// change this to match your SD shield or module;
// Arduino Ethernet shield: pin 4
// Adafruit SD shields and modules: pin 10
// Sparkfun SD shield: pin 8
// Teensy audio board: pin 10
// Teensy 3.5 & 3.6 on-board: BUILTIN_SDCARD
// Wiz820+SD board: pin 4
// Teensy 2.0: pin 0
// Teensy++ 2.0: pin 20
const int chipSelect = 4;
While this is the comments from the system that doesn’t work:
// change this to match your SD shield or module;
// Arduino Ethernet shield: pin 4
// Adafruit SD shields and modules: pin 10
// Sparkfun SD shield: pin 8
// MKRZero SD: SDCARD_SS_PIN
const int chipSelect = 4;
I then created a clean Windows VM installed Arduino IDE 1.8.2 and TeensyduinoInstall.exe and the Generated file compiled fine.
Next after some intense searching I ran across the board listings for STM32 on all three systems that didn’t work.
Then I created a blank Arduino ‘sketch folder’ and after restarting the IDE, the Visuino Generated file compiled just fine.
So, I believe there are some incompatibilities between the STM32 and Teensy libraries/hardware profiles, but I don’t know what it is.
All I see is Can anyone else confirm this, by installing both of these and trying to view that Example sketch for the BUILTIN_SDCARD line.
I am cross-posting this to both forums.
In trying to test a pre-release of Visuino, a graphic Arduino programming solution, I was attempting to test the BUILTIN_SDCARD function when the Generated Visuino code failed to compile.
Then when I open an Example, from the IDE under ‘SD’ the sketch, ‘CardInfo’, the BUILTIN_SDCARD line was missing from the comments section that lists the ‘chipSelect' pins.
Here’s the example text that is correct:
// change this to match your SD shield or module;
// Arduino Ethernet shield: pin 4
// Adafruit SD shields and modules: pin 10
// Sparkfun SD shield: pin 8
// Teensy audio board: pin 10
// Teensy 3.5 & 3.6 on-board: BUILTIN_SDCARD
// Wiz820+SD board: pin 4
// Teensy 2.0: pin 0
// Teensy++ 2.0: pin 20
const int chipSelect = 4;
While this is the comments from the system that doesn’t work:
// change this to match your SD shield or module;
// Arduino Ethernet shield: pin 4
// Adafruit SD shields and modules: pin 10
// Sparkfun SD shield: pin 8
// MKRZero SD: SDCARD_SS_PIN
const int chipSelect = 4;
I then created a clean Windows VM installed Arduino IDE 1.8.2 and TeensyduinoInstall.exe and the Generated file compiled fine.
Next after some intense searching I ran across the board listings for STM32 on all three systems that didn’t work.
Then I created a blank Arduino ‘sketch folder’ and after restarting the IDE, the Visuino Generated file compiled just fine.
So, I believe there are some incompatibilities between the STM32 and Teensy libraries/hardware profiles, but I don’t know what it is.
All I see is Can anyone else confirm this, by installing both of these and trying to view that Example sketch for the BUILTIN_SDCARD line.