Hello,
SDK17.2, keil5,nRF21540-DK
my project use i2c and spi, but got error:
Error: L6200E: Symbol SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler multiply defined (by nrfx_twim.o and nrfx_spim.o).

Best regards
Hello,
SDK17.2, keil5,nRF21540-DK
my project use i2c and spi, but got error:
Error: L6200E: Symbol SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler multiply defined (by nrfx_twim.o and nrfx_spim.o).

Best regards
Hi,
The serial instances in nRF52840 can only be used for one protocol at a time, either SPI or TWI, as they share the same base address (see Instantiation).
If you want to use TWI and SPI at the same time, you need to use one instance for SPI (e.g. SPI0) and another instance for TWI (e.g. TWI1). If you do not need to have SPI and TWI enabled at the same time, it is also possible to share one instance through the Peripheral Resource Sharing (PRS) module. You then need to enable the corresponding PRS box for the instance (e.g. set NRFX_PRS_ENABLED and NRFX_PRS_BOX_0_ENABLED to 1 in your sdk_config.h file).
Best regards,
Jørgen
Hi,
thanks for reply,
step 1: erase all --> download softdev --> download app , UART no log output even reset button.
step 2 base step 1: --> download softdev , UART get log output.


nrfjprog --readcode flash.hex, two file as follow:

Best regards
If one of the readouts is from after step 1, it does not look like the softdevice have been programmed. In the second readout, the softdevice is present. Could you do the readout after programming softdevice in step 1, and describe how you program the softdevice?
If one of the readouts is from after step 1, it does not look like the softdevice have been programmed. In the second readout, the softdevice is present. Could you do the readout after programming softdevice in step 1, and describe how you program the softdevice?
Hi,
thanks for reply,
Could you do the readout after programming softdevice in step 1,
it's can't readout when no app in mcu.
and describe how you program the softdevice?

I feel programming app destroys softdevice.


Best regards
yuyou said:it's can't readout when no app in mcu.
You can read out the flash using nrfjprog after programming the softdevice, no application is required.
yuyou said:I feel programming app destroys softdevice.
If this is the case, the above readout should show that. There may be some wrong configurations in Keil that erases your chip, but I can't see any issues in the images you have provided.
Can you try programming the softdevice using nRF Connect Programmer app instead of J-Link?