The active debug mode is configured in userDef.h.
By default, this demo enables logging for main.c, system, and interrupt request modules based on DEBUG_Const, with ACTIVE_MIN_LVL set to DBG_LVL_ALL.
Debug Mode
| Macro | Default | Description |
|---|---|---|
| DEBUG_MODE | 1 | 0 = Asserts OFF, logs removed 1 = Asserts ON, logs filtered |
Active Debug Module
Set ACTIVE_DEBUG_MOD to one or more of the following (combine with |):
| Value | Description |
|---|---|
| DBG_MOD_SYS | Enable log for RISC-V extension |
| DBG_MOD_IRQ | Enable log for IRQ, mtrap |
| DBG_MOD_FAULT | Enable log for system fault |
| DBG_MOD_UART | Enable log for UART driver |
| DBG_MOD_I2C | Enable log for I2C driver |
| DBG_MOD_SPI | Enable log for SPI driver |
| DBG_MOD_SPI_FLASH | Enable log for SPI Flash driver |
| DBG_MOD_RTC | Enable log for RTC driver |
| DBG_MOD_CAM | Enable log for camera driver |
| DBG_MOD_SENSOR | Enable log for sensor (temperature) |
| DBG_MOD_MAIN | Enable log for main.c |
| DBG_MOD_ALL | Enable all logs |
Please refer to DEBUG_Const for more detail on Debug Modules.
Active Minimum Log Level
Set ACTIVE_MIN_LVL to filter the minimum log severity shown:
| Value | Level | Description |
|---|---|---|
| DBG_LVL_ALL | 0 | Show Info, Warn, and Error |
| DBG_LVL_WARN | 1 | Show Warn and Error only |
| DBG_LVL_ERR | 2 | Show Error only |
| DBG_LVL_NONE | 3 | Silence all logs |