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

TWI0 and SPI0 time multiplex

Hi there,

Is it possible to use TWI0 and SPI0 (or TWI1/SPI1) time multiplexed?

When enabling them both in sdk_config.h I get "Error: L6200E... IRQHandler multiply defined...", which can be resolved by defining PERIPHERAL_RESOURCE_SHARING_ENABLED. Is there any documentation available to find out exactly whats going on under the hood and what to be aware of?

Many thanks, Josef

Parents
  • Hi Sigurd,

    thanks for the answer, that is exactly what I was looking for. I figured that resource sharing plus un-initializing and initializing the other one would be the way forward, thanks for the confirmation. Documentation I was hoping to find was how to separate ppi and tasks from the 2, but maybe that's straight forward then. It's great that there is development going on there.

    Many thanks, Josef

Reply
  • Hi Sigurd,

    thanks for the answer, that is exactly what I was looking for. I figured that resource sharing plus un-initializing and initializing the other one would be the way forward, thanks for the confirmation. Documentation I was hoping to find was how to separate ppi and tasks from the 2, but maybe that's straight forward then. It's great that there is development going on there.

    Many thanks, Josef

Children
  • Hi Sigurd,

    I was getting the similar issue while I am trying to use SPI and TWI at the same time. Actually I was using SPI0 and TWI0. So is was creating following error:

    duplicate definitions for "SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler"
    

    Hence I changed TWI0 to TWI1. And now Its working fine.... This thread helped me for resolving the issue. Thanks..

Related