My hardware is using an F28377D connected to an external SDRAM. The connections and my configuration is working fine. I can either set it up to be read/written by CPU1 or CPU2.
My question is regarding sharing access to the SDRAM between the two CPUs... I understand how to use the MSEL_EMIF1 register to grab the EMIF for master access between the CPUs. This all seems to be working OK.
Please tell me if I am wrong here:
When CPU1 wants to give write access to CPU2, it needs to set MSEL_EMIF1 field to 0 so that CPU2 can grab it. It also needs to set the peripheral muxing for each pin used by the SDRAM to CPU2.
When CPU2 wants to give write access to CPU1, it needs to set MSEL_EMIF1 field to 0 so that CPU1 can grab it. Then, CPU1 also needs to set the peripheral muxing for each pin used by the SDRAM to CPU1.
Am I correct about needing to set the peripheral muxing when switching back and forth between CPUs?
What about just for read access? Is it the same process?