Issue with SPI0 in NRF52840 Module

I am writing to seek assistance regarding an issue I am encountering with the SPI0 interface in the NRF52840 module. The project requires the use of four SPI interfaces, but  currently facing a conflict that prevents SPI0 from functioning correctly.Other SPI's are working correctly.

The sensor log is:-
Output/Debug/Obj/ble_app_uart_pca10056_s140/nrfx_twim.o: in function `SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler':
multiple definition of `SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler'; 
Output/Debug/Obj/ble_app_uart_pca10056_s140/nrfx_spim.o:D:\GIT\BLESensorGeneric_Nordic\Lib\nRF5SDK160098a08e2\
modules\nrfx\drivers\src/nrfx_spim.c:677: first defined here


Please provide guidance on how to resolve this issue. Specifically, I need to understand how to properly configure the interrupt handlers to avoid this conflict and ensure that all four SPI interfaces can operate as intended.

Thank you.

Best regards,

Madhukeshwar P

Parents
  • Hello,

    I am not able to tell just from this part of the build log, but the SPIM, SPIS, TWIM, TWIS, SPI and TWI (so basically everything that is SPI or TWI (I2C) uses the same physical  peripheral bus. This means that if you are using SPI0, you can't use TWI0. Then you need to either change from SPI0 to SPI1, or TWI0 to TWI1.

    If that doesn't help, please upload your application project, and I can see where you enabled your SPI/TWI, and where to change it.

    Best regards,

    Edvin

Reply
  • Hello,

    I am not able to tell just from this part of the build log, but the SPIM, SPIS, TWIM, TWIS, SPI and TWI (so basically everything that is SPI or TWI (I2C) uses the same physical  peripheral bus. This means that if you are using SPI0, you can't use TWI0. Then you need to either change from SPI0 to SPI1, or TWI0 to TWI1.

    If that doesn't help, please upload your application project, and I can see where you enabled your SPI/TWI, and where to change it.

    Best regards,

    Edvin

Children
No Data
Related