Symbol SWI2_EGU2_IRQHandler multiply defined(by nrf_sdh_freertos.o and nrf_sdh.o)

现象描述

._build\nrf52840_xxaa.axf: Error: L6200E: Symbol SWI2_EGU2_IRQHandler multiply defined (by nrf_sdh_freertos.o and nrf_sdh.o).
Symbol SWI2_EGU2_IRQHandler multiply defined(by nrf_sdh_freertos.o and nrf_sdh.o)

解决方法

在sdk_config.h中将宏定义NRF_SDH_DISPATCH_MODEL 改为 2.
Symbol SWI2_EGU2_IRQHandler multiply defined(by nrf_sdh_freertos.o and nrf_sdh.o)