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

multiple definition of `SPI1_TWI1_IRQHandler'

Hi :

In my application, i need to use 2 spi master (SPI0,SPI1) and spi slave the same time, but when i compiled drivers_nrf/hal/nrf_spi.h and drivers_nrf/hal/nrf_spis.h, it showed "multiple definition of `SPI1_TWI1_IRQHandler'" error.

then I found in sdk_config.h, SPIS1_ENABLED default set 1, I changed it to 0 and SPIS2_ENABLED to 1, it showed "'NRF_SPIS2' undeclared" , how can i set sdk_config.h?

we use 51822 pca10028 board with sdk12.2 and gcc 4.9.3

Related