Other Parts Discussed in Thread: C2000WARE
I'm working on a driver for the EMAC module, and I'm trying to configure the Ethernet DMA. I want to setup the ethernet DMA to process large amounts of data being generated by the ADCs. Reviewing the reference manual in the EMAC chapter under the subsection for programming, I see that I need to initialize the EMAC DMA, init the MTL registers, and the MAC. From my understanding each of these sets of registers are a part of the Connectivity Manager, and cannot be directly accessed by CPU1, or 2, but should be accessible via the IPC subsystem.
Reviewing the IPC chapter, I understand that I need to provide some command in the IPCSENDCOM register on the CPU1 side, as well as some address and data. If I understand correctly, using the CPUxToCM IPC registers, I should be able to use this interface to read and write registers on the CM. However, when I review the IPC and CM chapters in the TRM, I cannot find information on what commands to use, or how to write the CM registers. There are some software examples which use IPC, but the commands used are, for all intents and purposes, magic numbers with very little explanation.
Assuming my understanding above is correct, where can I find a list of commands to use with the CM to accomplish configuring the EMAC? If my reasoning above is not correct, how do I configure the EMAC control registers?