Report
4 years, 4 months ago.

How to enable debug-messages from SDFileSystem?

Hi all,

I'm quite new to mbed. I'm using LPC1768. With SDFileSystem I'm able to write some data to a file on the SD-card. But sometimes it seems to block.

For debugging, I've downloaded the windows-USB-serial-driver and I can see "hello world" messages (send with printf() from anywhere in my program) to my pc. But no messages show up when calling disk_initialize(), fopen(), fprintf(), etc. (Although I've seen some examples of debug-output coming from SDFileSystem.)

How can I enable these debug-messages?

Regards, Patrick

Question relating to:

A re-written SDFileSystem library with improved compatibility, CRC support, and card removal/replacement support. fatfilesystem, MMC, SD, SD Card, SDHC, SDXC
Comment on this question

1 Answer

4 years, 4 months ago.

Hi, sorry about the delay, I'm not receiving emails from mbed for some reason. There are no debug messages built into my version of SDFileSystem. If you want some, you'll have to edit SDFileSystem.cpp and add them yourself.