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

Compiling error with app_timer.c

I have worked on the new project with nRF5_SDK_13.1.0_7ca7556. I have got an compiling error with app_timer.c. The error message is as below:

Building ‘app_timer.c’ from project ‘alm-normal’ from solution ‘ALM-Test’ in configuration ‘THUMB Debug’

alm-normal THUMB Debug/app_timer.o does not exist.

Pre-compile command

Compiling ‘app_timer.c’

sdk_common.h

app_timer.c

division by zero [-Wdiv-by-zero]

in expansion of macro 'STATIC_ASSERT_MSG'

in expansion of macro 'STATIC_ASSERT'

enumerator value for 'static_assert_1' is not an integer constant

in definition of macro 'STRING_CONCATENATE_IMPL'

in expansion of macro 'STRING_CONCATENATE'

in expansion of macro 'STATIC_ASSERT_MSG'

in expansion of macro 'STATIC_ASSERT'

Build failed

I used CrossStudio and compiled with gcc. If I tried blinky example, I can compiled app_timer.c without error. Is there something I missed in my user project setup?

Parents Reply Children
No Data
Related