Trace Configuration

The file system debug trace is enabled by #define‘ing FS_TRACE_LEVEL in your application’s fs_cfg.h:

#define FS_TRACE_LEVEL TRACE_LEVEL_DBG

The valid trace levels are described in the table below. A trace functions should also be defined:

#define FS_TRACE printf

This should be a printf-type function that redirects the trace output to some accessible terminal (for example, the terminal I/O window within your debugger, or a serial port) . When porting a driver to a new platform, this information can be used to debug the fledgling port.

Trace levels
Trace LevelMeaning
TRACE_LEVEL_OFFNo trace.
TRACE_LEVEL_INFOBasic event information (e.g., volume characteristics).
TRACE_LEVEL_DBGDebug information.
TRACE_LEVEL_LOGEvent log.