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

SPI and TWI run out of resources

I'm in trouble... My design has 3 SPI devices, and at a late stage I ran out of GPIO so I added a I2C I/O expander before spinning and building my PCB without thinking too much of it.

But I belatedly found out about the shared resource, so I can't add a TWI instance. 

Is it possible to dynamically reconfigure an instance between SPI & TWI? I didn't get past trying to enable in sdk_config.h as I was getting "Multiple definition of SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler" errors.

Parents Reply Children
Related