Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: Teensy4.1 FreeRTOS and SD Cards

  1. #1

    Teensy4.1 FreeRTOS and SD Cards

    Hello All,

    I am trying to get my RTOS app to use an SD card but I am running into missing file issues. I am using the RTOS from https://github.com/tsandmann/freertos-teensy

    In here there are dependencies on some other Git repos, I can see that they have been included in my project. However in SD.h I am missing a definition for FileImpl. Has anyone ran into this? Does anyone have a solution for this?

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,115
    "FileImpl" was a new construct in the just released version of TeensyDuino 1.55 to support updates for FS.h. So some unbalanced dependency with the code in use?

  3. #3
    I talked to the creator of the Git repo. He pointed me to a forum post here in which PIO was pointing to its own internal file, not the files provided by teensy.

    His solution was to update PIO to the latest version. I have the latest version. Can I use the platformio.io to point to the teensy files I just installed with the arduino ide?

  4. #4
    I edited my c_cpp_properties.jscon from

    Code:
    "C:/Users/MichaelMi/.platformio/packages/framework-arduinoteensy/teensy4/",
    to

    Code:
    "C:/Program Files (x86)/Arduino/hardware/teensy/avr/cores/teensy4",
    No change.

  5. #5
    I pointed my code to use the Arduino Teensy 1.55 files. Now I get the errors

    Code:
    .pio\libdeps\teensy41\SD\src/SD.h: In member function 'virtual File SDFile::openNextFile(uint8_t)':
    .pio\libdeps\teensy41\SD\src/SD.h:126:55: error: no matching function for call to 'File::File(SDFile*)'
      126 |                 if (file) return File(new SDFile(file));
    Code:
    .pio\libdeps\teensy41\SD\src/SD.h: In member function 'virtual File SDClass::open(const char*, uint8_t)':
    .pio\libdeps\teensy41\SD\src/SD.h:158:55: error: no matching function for call to 'File::File(SDFile*)'
      158 |                 if (file) return File(new SDFile(file));
    Code:
    expected class-name before '{' token

  6. #6
    Junior Member
    Join Date
    Mar 2019
    Location
    Karlsruhe, Germany
    Posts
    2

    Lightbulb

    Quote Originally Posted by MichaelBMiner View Post
    Hello All,

    I am trying to get my RTOS app to use an SD card but I am running into missing file issues. I am using the RTOS from https://github.com/tsandmann/freertos-teensy

    In here there are dependencies on some other Git repos, I can see that they have been included in my project. However in SD.h I am missing a definition for FileImpl. Has anyone ran into this? Does anyone have a solution for this?
    Hi,

    as mentioned in the issue at GitHub, there was an incompatibility with the library version used by the FreeRTOS port. This is fixed now, you need to run pio update to update the libraries.

    I also added a (still incomplete) readme file to explain at least a bit the status of the project, what's working and where are some limitations.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •