Tool/software:
Hi TI,
MCU_CPSW0 gives registers bits (TX_ECC_ERR_EN and RX_ECC_ERR_EN) to enable/disable transmission/reception of frames with ECC errors on Host Port (Port 0) and MAC Port (Port 1).
TRM says, "Either the RX_ECC_ERR_EN or theTX_ECC_ERR_EN bits must be set in the register to test packet CRC errors.". Are these bits only for testing ECC CRC errors?
Mac Port Ingress:
An Ethernet packet received on CPSW2G from CANoe (imagine). If there is an ECC error on packet received, CRC will be invalid and packet will be dropped at MAC Port.
- What is the use case to set CPSW_PN_CONTROL_REG;RX_ECC_ERR_EN bit to 0/1 ?
- If set 0, means disabled. The packets received on MAC dropped due to ECC. How will MAC port recognize ECC drop on packet recived from CANoe?
- If set 1, means enable. The packets received on MAC dropped was already dropped due to invalid CRC. How will it be recieved?
- If this packet is dropped (CPSW_PN_CONTROL_REG;RX_ECC_ERR_EN set to 0) due to ECC, which CPSW_STAT1 will be incremented?
Host Port Ingress:
- What is the use case to set CPSW_P0_CONTROL_REG;RX_ECC_ERR_EN bit to 0/1 ?
How will the ECC error detected on a packet copied via Udma from OCRAM to Port 0 ? - If this packet is dropped (CPSW_P0_CONTROL_REG;RX_ECC_ERR_EN set to 0) due to ECC, which CPSW_STAT0 will be incremented?
- If this packet is not dropped (CPSW_P0_CONTROL_REG;RX_ECC_ERR_EN set to 1), will this packet on egress from MAC Port has invalid CRC?
Looking forward to hearing back from you.
Best regards,
Hasan