With the ABCC driver package "Host Application Example Code" you can print out the messages that are exchanged between the Anybus CompactCom (ABCC) and your host controller. This can be important for debugging. This article described what changes have to be made.
Anybus CompactCom 40 or 30 series
/*------------------------------------------------------------------------------
** Debug and error macro configuration
**
** Check the descriptions in "./abcc_drv/inc/abcc_cfg.h" for more information
** about the purpose of each separate 'define'.
**------------------------------------------------------------------------------
*/
#ifndef ABCC_CFG_ERR_REPORTING_ENABLED
#define ABCC_CFG_ERR_REPORTING_ENABLED ( TRUE )
#endif
#ifndef ABCC_CFG_DEBUG_EVENT_ENABLED
#define ABCC_CFG_DEBUG_EVENT_ENABLED ( TRUE )
#endif
#ifndef ABCC_CFG_DEBUG_ERR_ENABLED
#define ABCC_CFG_DEBUG_ERR_ENABLED ( FALSE )
#endif
#ifndef ABCC_CFG_DEBUG_MESSAGING
#define ABCC_CFG_DEBUG_MESSAGING ( TRUE )
#endif
#ifndef ABCC_CFG_DEBUG_CMD_SEQ_ENABLED
#define ABCC_CFG_DEBUG_CMD_SEQ_ENABLED ( FALSE )
#endif
#ifndef ABCC_CFG_DEBUG_HEXDUMP_MSG
#define ABCC_CFG_DEBUG_HEXDUMP_MSG ( FALSE )
#endif
#ifndef ABCC_CFG_DEBUG_HEXDUMP_SPI
#define ABCC_CFG_DEBUG_HEXDUMP_SPI ( FALSE )
#endif
#ifndef ABCC_CFG_DEBUG_HEXDUMP_UART
#define ABCC_CFG_DEBUG_HEXDUMP_UART ( FALSE )
#endif
#ifndef ABCC_CFG_DEBUG_CRC_ERROR_CNT
#define ABCC_CFG_DEBUG_CRC_ERROR_CNT ( FALSE )
#endif
#define ABCC_PORT_DebugPrint( args ) printf args