DebugComponents

Description

Debug Component.

This Component provides the bootloader with support for debugging functions. The Component implements two types of debugging functionality:

  • Defining SL_DEBUG_ASSERT enables assertions on compile-time configurable parameters in the bootloader
  • Defining SL_DEBUG_PRINT enables debug prints at strategic points in the code.

This component provides the bootloader with support for debugging functions. The component implements two types of debugging functionality:

  • Defining SL_DEBUG_ASSERT enables assertions on compile-time configurable parameters in the bootloader
  • Defining SL_DEBUG_PRINT enables debug prints at strategic points in the code.

Macros

#define BTL_ASSERT (exp)   ((void)(exp))
Assertion in bootloader.
#define BTL_DEBUG_INIT ()    do {} while (0)
Initialize debug output.
#define BTL_DEBUG_PRINT (str)    do {} while (0)
Print a string to debug out.
#define BTL_DEBUG_PRINTLN (str)    do {} while (0)
Print a string followed by a newline to debug out.
#define BTL_DEBUG_PRINTC (chr)    do {} while (0)
Print a character to debut out.
#define BTL_DEBUG_PRINT_CHAR_HEX (number)   do {} while (0)
Print a single hex byte.
#define BTL_DEBUG_PRINT_SHORT_HEX (number)   do {} while (0)
Print two hex bytes.
#define BTL_DEBUG_PRINT_WORD_HEX (number)   do {} while (0)
Print a hex word.
#define BTL_DEBUG_PRINT_LF ()    do {} while (0)
Print a newline.
#define SL_DEBUG_PRINT 0
Print debug message to SWO.
#define SL_DEBUG_ASSERT 0
Enable Assert in source code.
#define SL_DEBUG_PERIPHERAL DBG
SWO Debug Peripheral.
#define SL_DEBUG_SWV_PORT gpioPortF
SWO Debug Port.
#define SL_DEBUG_SWV_PIN 2
SWO Debug Pin.
#define SL_DEBUG_SWV_LOC 0
SWO Debug Location.