Zephyr + ncs v2.6.0 + nrf52840 , about SPI with I2C issue

Hi.

I start SPI as well as I2C at the same time . then build code , the build error is occur . 

below is error code .
static assertion failed: "Only one of the following peripherals can be enabled: 
SPI0, SPIM0, SPIS0, TWI0, TWIM0, TWIS0. Check nodes with status \"okay\" in zephyr.dts."


The SPI and I2C cannot be used at the same time ?


so i change SPIM to 1 and I2C to 0 then build code , the error is occur.

below is error code
 .intList --intlist-section intList --sw-isr-table --vector-table"
gen_isr_tables.py: error: multiple registrations at table_index 4 for irq 4 (0x4)
Existing handler 0x30295, new handler 0x44f55
Has IRQ_CONNECT or IRQ_DIRECT_CONNECT accidentally been invoked on the same irq multiple times?


below is SPI config code
void spi_master_init()
{
    uint32_t err_code = 0;

	nrfx_spim_config_t spim_config = NRFX_SPIM_DEFAULT_CONFIG(SPI0_CONFIG_SCK_PIN,
                                                              SPI0_CONFIG_MOSI_PIN,
                                                              SPI0_CONFIG_MISO_PIN,
                                                              SPI0_CONFIG_SS_PIN);
	spim_config.orc= 0xCC;
	spim_config.frequency = NRFX_MHZ_TO_HZ(8);

    
    err_code = nrfx_spim_init(&m_spi_master_0, &spim_config, spi_master_0_event_handler , NULL);
	if (err_code != NRFX_SUCCESS)
		LOG_ERR ("SPIM0 Init Error [%d\n" , err_code);


#if defined(__ZEPHYR__)
    // IRQ_DIRECT_CONNECT(NRFX_IRQ_NUMBER_GET(NRF_SPIM_INST_GET(SPIM_INST_IDX)), IRQ_PRIO_LOWEST,
    //                    NRFX_SPIM_INST_HANDLER_GET(SPIM_INST_IDX), 0);
	IRQ_CONNECT(NRFX_IRQ_NUMBER_GET(NRF_SPIM_INST_GET(SPIM_INST_IDX)), IRQ_PRIO_LOWEST,
               NRFX_SPIM_INST_HANDLER_GET(SPIM_INST_IDX), 0, 0);
#endif	
}

 
Related