Tool/software:
Hi
I have AM263x launchpad and I am trying to configure the CPSW switch for AM2632 microcontroller.
I am using baremetal code to setup the clock and configure the CPSW switch. But, I am not able to transmit the ethernet packet.
Please check the following setup,
1. Port mode is selected as RGMII for MAC Port 1 and 2 through MSS_CTRL_CPSW_CONTROL register
2. 50 MHz clock enabled without changing default clock division value through MSS_RCM_MSS_MII100_CLK_GATE register for using MAC Port 1 and 2 in 100 Mbps mode
3. Enabled sub-blocks: CPSW NC, CPPI Port 0, MAC Port 1, MAC Port 2, CPDMA, ALE
4. Disabled sub-blocks: CPTS
5. Configured the buffer descriptor for transmit packet (Set flags: SOP,EOP, Owner; Cleared flags: EOQ)
6. Set transmit header descriptor pointer with buffer descriptor address through CPSW_NC_CPDMA_SRAM_TH0_HDP_REG register (My current understanding is, Thost registers are for transmit and Fhost registers are got receive transaction)
Please let me know if I am missing anything in my configuration. Also, if there is any PPT/document/addendum available which explains CPSW3G and the interaction between the sub-blocks with more details then please share that document as well.
Thank you,
Shitanshu Desai