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

Compile error in SDK12 with BSP_SIMPLE

Hi nRF support, In order to minimize the code size, I tried to enable define the macro BSP_SIMPLE, then I got the below error:

*** Using Compiler 'V5.06 update 2 (build 183)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'nrf51422_xxac'
compiling bsp_btn_ble.c...
..\..\..\..\..\bsp\bsp_btn_ble.c(93): error:  #20: identifier "BSP_BUTTON_ACTION_RELEASE" is undefined
                                                   
TN_ACTION_SLEEP,
..\..\..\..\..\bsp\bsp_btn_ble.c(98): error:  #20: identifier "BSP_BUTTON_ACTION_LONG_PUSH" is undefined
                                                   
TN_ACTION_WHITELIST_OFF,
..\..\..\..\..\bsp\bsp_btn_ble.c(121): error:  #20: identifier "BSP_BUTTON_ACTION_LONG_PUSH" is undefined
                                                   
TN_ACTION_DISCONNECT,
..\..\..\..\..\bsp\bsp_btn_ble.c(131): error:  #20: identifier "BSP_BUTTON_ACTION_RELEASE" is undefined
                                                   
TN_ACTION_SLEEP,
..\..\..\..\..\bsp\bsp_btn_ble.c: 0 warnings, 4 errors

How could I get this a smooth pass? Or just force comment out the related code?

Thanks.

Related