2014-11-24 11:57 AM
I installed SPC5 Studio v3.0 and MinGW compiler, and I am trying to run the SPC560Pxx OS-Less CAN Test Application. The main.c file refers to two includes (''components.h'' and ''can_lld_cfg.h''). I have included -IC paths to those headers and their subsequent included headers. The problem is I am getting two performance errors, each error is caused by one header contradicting another.
Error &sharp1: ''option CH_DBG_ENABLE_STACK_CHECK not supported by this port''Caused by:--- ''chconf.h'' (included by ch.h) lines 389:391 ---&sharpif !defined(CH_DBG_ENABLE_STACK_CHECK) || defined(__DOXYGEN__)&sharpdefine CH_DBG_ENABLE_STACK_CHECK TRUE&sharpendif--- ''chcore.h'' (included by ch.h) lines 39:41 ---&sharpif CH_DBG_ENABLE_STACK_CHECK&sharperror ''option CH_DBG_ENABLE_STACK_CHECK not supported by this port''&sharpendifError &sharp2: ''STM32_MAC_PHY_TIMEOUT requires the realtime counter service''Caused by:--- ''hal_lld.h'' (included by ''hal.h'') line 43 ---&sharpdefine HAL_IMPLEMENTS_COUNTERS FALSE--- ''mac_lld.h'' (included by ''mac.h'' (included by ''hal.h'')) lines 152:154 ---&sharpif !defined(STM32_MAC_PHY_TIMEOUT) || defined(__DOXYGEN__)&sharpdefine STM32_MAC_PHY_TIMEOUT 100&sharpendifand lines 192:194&sharpif (STM32_MAC_PHY_TIMEOUT > 0) && !HAL_IMPLEMENTS_COUNTERS&sharperror ''STM32_MAC_PHY_TIMEOUT requires the realtime counter service''&sharpendifI don't know how to solve these contradictions without editing the SPC5 Studio supplied header files. Also, I noticed I had to download the following files from online, since they did not appear to come with the product, although part of the header dependency chain:2014-11-25 02:03 AM
2014-11-25 05:54 AM
Erwan,
That is good to know, and explains some of my other errors. However, the errors I explicitly mentioned are conflicts between header files on the same dependency chain, regardless of the compiler used. How do I solve those?David2014-11-27 04:47 AM