This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

STATIC_ASSERT(sizeof(timer_node_t) == APP_TIMER_NODE_SIZE) division by zero error

Hello,

I had a problem with the nordic uart service peripheral. We are using an nRF51822 and the S130 software stack. I had a problem with the app_timer.c STATIC_ASSERT(sizeof(timer_node_t) == APP_TIMER_NODE_SIZE); my compiler always throw an division by zero error message. So I ignored the assert and commented it out, but could not get an connection to my peripheral, advertising was working fine. So I recalced the length of the timer_node_t structure and it is 36 and not 32 byte as in the APP_TIMER_NODE_SIZE define in the app_timer.h file. So I corrected it and now everything works fine. Is this size wrong and must be corrected ?

Related