G
Reaction score
2

Latest activity Postings About

    • G
      GTiRHil replied to the thread SD undefined.
      Yup, I agree. Once I get the first include to find the correct SD.h, the rest should follow. I wish that I understood where it WAS going to and why. I'll keep working on it. Christmas is coming and more free time! Thanks.
    • G
      GTiRHil replied to the thread SD undefined.
      I hope that this links to the VS Forum OK, if you want to see how it goes.
    • G
      GTiRHil replied to the thread SD undefined.
      Thanks. I saw something about the link order before but had forgotten. With the short program here, there don't seem to be many link order options. I went through the log file from the compile and it seemed to be getting code from the right...
    • G
      GTiRHil replied to the thread SD undefined.
      I'm still trying to find how to point it at the right library. The Arduino ide automatically grabs the Teensy 4.1 library. But even though I am using the same Arduino IDE (2) in VS, it's going to the wrong place, as we have seen...
    • G
      GTiRHil replied to the thread SD undefined.
      Sorry, I should have said that I sabotaged the Teensy SD.cpp.
    • G
      GTiRHil replied to the thread SD undefined.
      I sabotaged SD.cpp and it didn't notice, so yes, the path is not pointing to the right place.
    • G
      GTiRHil replied to the thread SD undefined.
      OK, so I replaced my #include <SD.h> with #include <C:\Users\hkems\AppData\Local\arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SD\src\SD.h> It recognised BUILTIN_SDCARD (it read the header) but still doesn't find the code...
    • G
      GTiRHil replied to the thread SD undefined.
      OK, the same code failed in VS2022. You can see that it didn't recognise BUILTIN_SDCARD. I had trouble setting up the VS2022 for teensy and maybe it's come back to bite me.
      • 1766126811547.png
    • G
      GTiRHil replied to the thread SD undefined.
      OK, the code above compiled and linked to Teensy 4.1 and loaded to the board, in the Arduino IDE. As I expected! With regard to posting all the code, I hoped that I was just being a wee bit Pascal and that the answer was immediately apparent to...
    • G
      GTiRHil replied to the thread SD undefined.
      Thanks folks for your input. As we approach Christmas I keep getting dragged away. I'll try the code above in the Arduino IDI first.
    • G
      GTiRHil replied to the thread SD undefined.
      I tried changing it to BUILTIN_SDCARD2 and it failed at compile, instead of link.
    • G
      GTiRHil replied to the thread SD undefined.
      I tried entering 254 instead of the constant and got the same error. Sorry for my slow reply - Christmas shoppingand an unexpected visitor.
    • G
      Apologies. This probably comes from me mostly programming in Free Pascal ... I keep on getting the following message when compiling my C code in Visual Studio 2022: ld.exe: CIS030925.cpp.o: in function setup CIS030925.ino:61: undefined...
  • Loading…
  • Loading…
Back
Top