1 month ago.
Running the SDBLOCKDEVICE example code
Hello, i'm using the NUCLEO F411RE board, together with a DIGILENT PMODSD card board. To access this SD card I'm trying to compile the example present in the following link: https://os.mbed.com/docs/mbed-os/v5.13/apis/sdblockdevice.html
However this code does not compile, and the only error I get is: "Internal Error", with no other details. I'm stumped. I've also attached the code files/media/uploads/ryudas/main.cpp , as well as the images of the json objects and project structure
I've tried changing quite a few things, to no avail
1 month ago.
Because you have the
mbed library attached to your project you are trying to build an Mbed OS-2 (aka Mbed Classic) program. However, the
SDBlockDevice is designed for Mbed OS-5:
- Delete your current
SDCardTestproject from the online compiler.
- When creating a new one, make sure you select an Mbed OS-5 template. For example
Blinky example for mbed OS 5.0 .... Once created, you should see the
mbed-oslibrary attached to the new
SDCardTestproject rather than the
- Replace the
main.cppwith the one from the
- Add the
mbed_app.jsonfile (with the same content as before).
- Do not add the
For more examples have a look at:
You need to log in to post a question