Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
You can use as many SPI modules as can be put into the UDB resources of your PSoC5LP.
Looking at the code above - what is it that doesn't work? Is the loop never finished? In that case I would suspect that SPIM_2 is never started. Or its using a large buffer and you did not enable global interrupts.
Read the Architecture TRM for the PSoC5, it explains the UDBs in quite some detail. The SPI component data sheet shows in the technical spec how many UDBs are consumed. And Creator also has a resource meter which shows how many resources are consumed by your project.