I'm attempting to build the ANT+ examples within SDK 11 and am hitting an issue in compile:
C:/Compilers/nRF5_SDK_11.0.0_89a8197/components/ant/ant_stack_config/ant_stack_config.c:30:17: error: macro "ANT_ENABLE_GET_REQUIRED_SPACE" requires 4 arguments, but only 3 given
uint8_t u8[ANT_BUFFER_SIZE_FOR_SD];
^~~~~~~~~~~~~~~~~~~~~~
C:/Compilers/nRF5_SDK_11.0.0_89a8197/components/ant/ant_stack_config/ant_stack_config.c:26:35: error: 'ANT_ENABLE_GET_REQUIRED_SPACE' undeclared here (not in a function)
#define ANT_BUFFER_SIZE_FOR_SD ANT_ENABLE_GET_REQUIRED_SPACE(ANT_CONFIG_TOTAL_CHANNELS_ALLOCATED, ANT_CONFIG_ENCRYPTED_CHANNELS, ANT_CONFIG_BURST_QUEUE_SIZE)
^
C:/Compilers/nRF5_SDK_11.0.0_89a8197/components/ant/ant_stack_config/ant_stack_config.c:30:17: note: in expansion of macro 'ANT_BUFFER_SIZE_FOR_SD'
uint8_t u8[ANT_BUFFER_SIZE_FOR_SD];
^~~~~~~~~~~~~~~~~~~~~~
C:/Compilers/nRF5_SDK_11.0.0_89a8197/components/ant/ant_stack_config/ant_stack_config.c: In function 'ant_stack_static_config':
C:/Compilers/nRF5_SDK_11.0.0_89a8197/components/ant/ant_stack_config/ant_stack_config.c:44:43: error: macro "ANT_ENABLE_GET_REQUIRED_SPACE" requires 4 arguments, but only 3 given
.usMemoryBlockByteSize = ANT_BUFFER_SIZE_FOR_SD
^~~~~~~~~~~~~~~~~~~~~~
Makefile:237: recipe for target '_build/ant_stack_config.o' failed
More details:
-
I'm using Eclipse and have managed to get the ble_app_hrs to build properly (based on Tutorial #7), so I believe my setup is more or less flushed.
-
I dutifully followed the instructions in the main.c to download the S212 from the ANT+ website, copy the headers files into the specified location, and uncomment the ANT_LICENSE_KEY.
-
I am seeing a similar error coming from Keil uVision (v5.23.0.0): compiling ant_stack_config.c... ................\components\ant\ant_stack_config\ant_stack_config.c(30): error: #54-D: too few arguments in invocation of macro "ANT_ENABLE_GET_REQUIRED_SPACE"
Any thoughts of what I might be doing wrong? A tutorial much like #7 (for BLE) that shows how to get ANT+ examples working would be really great!