Hello,
I’m totaly stuck, spend the hole day trying to use a SD-Card on my STM32F4. The Hello world example on ARM-mbed works. So no Hardware Problem.
This works on the mbed web compiler
But when I try to compile it on platformIO:
Compiling .pioenvs\nucleo_l476rg\lib\filesystem\FileSystem.o
Compiling .pioenvs\nucleo_l476rg\lib\filesystem\bd\HeapBlockDevice.o
Compiling .pioenvs\nucleo_l476rg\lib\filesystem\bd\MBRBlockDevice.o
Compiling .pioenvs\nucleo_l476rg\lib\filesystem\bd\ProfilingBlockDevice.o
C:\Users\cmeinert\.platformio\packages\framework-mbed\features\filesystem\FileSystem.cpp: In instantiation of 'class Managed<mbed::File>':
C:\Users\cmeinert\.platformio\packages\framework-mbed\features\filesystem\FileSystem.cpp:139:19: required from here
C:\Users\cmeinert\.platformio\packages\framework-mbed\features\filesystem\FileSystem.cpp:128:7: error: invalid use of incomplete type 'class mbed::File'
class Managed : public F {
^~~~~~~
In file included from C:\Users\cmeinert\.platformio\packages\framework-mbed\features\filesystem\FileSystem.cpp:18:0:
C:\Users\cmeinert\.platformio\packages\framework-mbed\features/filesystem/FileSystem.h:39:7: note: forward declaration of 'class mbed::File'
class File;
^~~~
C:\Users\cmeinert\.platformio\packages\framework-mbed\features\filesystem\FileSystem.cpp: In member function 'virtual int mbed::FileSystem::open(mbed::FileHandle**, const char
*, int)':
C:\Users\cmeinert\.platformio\packages\framework-mbed\features\filesystem\FileSystem.cpp:139:19: error: cannot convert 'Managed<mbed::File>*' to 'mbed::File*' in initializatio
n
File *f = new Managed<File>;
^~~~~~~~~~~~~
C:\Users\cmeinert\.platformio\packages\framework-mbed\features\filesystem\FileSystem.cpp:140:16: error: invalid use of incomplete type 'class mbed::File'
int err = f->open(this, path, flags);
^~
I already tried this:
build_flags = -DPIO_FRAMEWORK_MBED_FILESYSTEM_PRESENT
But the the compiler do not find mbed-filesystem …
Sorry, I’m more the hardware guy and not compiler issues
Every Help appreciated!
Chris