while compiling my project it is showing a error in app_timer.c which is on line 62 STATIC_ASSERT(sizeof(timer_node_t) == APP_TIMER_NODE_SIZE); The error is that it is divided by zero, iam also using 2 pwm instances with timer 1 and timer 2
while compiling my project it is showing a error in app_timer.c which is on line 62 STATIC_ASSERT(sizeof(timer_node_t) == APP_TIMER_NODE_SIZE); The error is that it is divided by zero, iam also using 2 pwm instances with timer 1 and timer 2
The static assert is supposed to divide by zero when a incorrect configuration is found. The problem is that we have not found a good way of providing a proper error message for static assertions at this moment, so the compiler provides you with a somewhat confusing divide-by-0 error.
Could you provide which compiler you are using and the optimization settings?
Cheers, Håkon
The static assert is supposed to divide by zero when a incorrect configuration is found. The problem is that we have not found a good way of providing a proper error message for static assertions at this moment, so the compiler provides you with a somewhat confusing divide-by-0 error.
Could you provide which compiler you are using and the optimization settings?
Cheers, Håkon