Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ESB and App Timer

I'm using SDK 15 on an nRF52840, compiling with Segger Embedded Studio.

I've created a project in SES using the project_template folder.

When I try to use both ESB and the app timer, I'm unable to build and I get this error:

Building ‘template_pca10056’ from solution ‘template_pca10056’ in configuration ‘Release’
1> Compiling ‘nrfx_spim.c’
2> Compiling ‘nrfx_spis.c’
3> Compiling ‘nrfx_swi.c’
4> Compiling ‘nrfx_timer.c’
1> Linking template_pca10056.elf
1> Output/template_pca10056 Release/Obj/nrf_esb.o: In function `SWI1_EGU1_IRQHandler':
1> C:\Users\cprehn\Documents\Projects\Stutterless\SDK\nRF5_SDK_15.0.0_a53641a\components\proprietary_rf\esb/nrf_esb.c:1049: multiple definition of `SWI1_EGU1_IRQHandler'
1> Output/template_pca10056 Release/Obj/nrfx_swi.o:C:\Users\cprehn\Documents\Projects\Stutterless\SDK\nRF5_SDK_15.0.0_a53641a\modules\nrfx\drivers\src/nrfx_swi.c:363: first defined here
Build failed

I've tried changing the APP_TIMER_SWI_NUMBER as described here and here from the sdk_config.h file and in both the ESB and App Timer files.  I always get an error about multiple definitions.  I would insert my sdk_config.h file, but I'm not able to for some reason.

Any insight into what might be causing this is greatly appreciated!

Thanks!

Related