multiple definition of `SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler

Hi,

I am using sdk 16.0 and I am already using 3 SPI Instances i.e. SPI1, SPI2, SPI3. I wanted to use SPI0 Instance also. How to use it?

If enable SPI0 in sdk_config I am getting "multiple definition of `SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler " this error.

Please help me to solve this issue.

Thank you,

Shreya

Parents
  • Hi Shreya

    Then likely this instance is already used for something else. The SPI0 instance share its peripheral address with TWI0, so if TWI0 is used already, that would make the SPI0 busy and return a value like this.

    You can also search your project for the multiple defined handler to see where it is defined other than in your SPI0.

    Best regards,

    Simon

Reply
  • Hi Shreya

    Then likely this instance is already used for something else. The SPI0 instance share its peripheral address with TWI0, so if TWI0 is used already, that would make the SPI0 busy and return a value like this.

    You can also search your project for the multiple defined handler to see where it is defined other than in your SPI0.

    Best regards,

    Simon

Children
Related