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

getting compile error - error: $59: function call is not allowed in a constant expression

Hello,

I'm a newbie to BLE and the Keil uvision IDE.  I'm using a nrf51422_xxac_s110 chip, The version of the IDE I'm using is 5.28.0.0.  When I add the fds.c  file, into the nRF_Libraries file group I get the following error :

getting compile error - error: #59: function call is not allowed in a constant expression.

It's specifically complaining about the following line near the top of fds.c;

#if NRF_MODULE_ENABLED(FDS)

I've attached a screenshot to make it clearer.  Not sure if I should be posting this issue here, or with tech support for Keil.  It could be I just don't know how to use the IDE properly, although all the code is written by Nordic.

Thanks

Dak

Parents Reply Children
Related