Two SPI /I2C interface on Zero

First of all, thanks for all comments. Just start to working on the arduino and found out I need to know more. :confused:

So my question here is , how do I create multi communication interface such as SPI or I2C?

I have multiple arduino boards and try to create communication between them. Each of them has unique tasks and I have very limited choice.

I understand that SPI use different SS pin to control different slave devices and I2C use address to address this issue. But there are not my options here. So I need to have multiple interfacse to attack my problem here.

My main reference is below two links.

https://forum.arduino.cc/index.php?topic=360026.0

Following the first link, I create a new I2C interface on Pin 11 and 13 as it showed. My default I2C interface on arduino zero is used to communicating with a IMU. Then it freezes. Remove it, it works...

As for the second SPI slave link, I copyed into my works an also freeze as north pole...

I guess I must missing some key pieces to make it work. Would you mind to share your thought about it??

Thanks a million!!