Hello,
i want to use McSPI to communicate with a CC1200 and parallel send UDP Datagrams with CPSW. For that i take the enetecho example from StarterWare.
If I test the functionality of each modul alone there are no problems. But if i initalize first McSPI1 and then CPSW, i cannot read or write registers of McSPI1. my code:
McSPI1init(); // my own function
unsigned int ipAddr; LWIP_IF lwipIfPort1, lwipIfPort2; MMUConfigAndEnable(); #ifdef LWIP_CACHE_ENABLED CacheEnable(CACHE_ALL); #endif CPSWPinMuxSetup(); CPSWClkEnable(); /* Initialize console for communication with the Host Machine */ ConsoleUtilsInit();
... and so on
After McSPI1init() i check McSPI functionality in single steps with "HWREG(0x481A0138) = 0xAA;" to write TX register and "int test = HWREG(0x481A013C);" to read RX register. There is no problem until CPSWPinMuxSetup(). when i try to send something with SPI in or after CPSWPinMuxSetup(), there is no change in registers.
McSPI configuration:
- OCP and Functional clocks are maintained.
- If an idle request is detected, the request is ignored and keeps
on behaving normally.
Is it possible that pimuxing for CPSW disable something in PRCM, Control Modul or interconnects that obstruct McSPI1?