Forum Discussion
Dzar
Occasional Contributor
7 years agoReading HPS EMAC counters not reliable
UPDATE: Seems EMAC1 is looking OK. The problem, there, was understanding what's meant by "good" in some cases. But EMAC0 looks like it's almost not counting anything. It's quite sporadic when I see a...
- 7 years ago
Final answer... Set the PR bit, not the RA bit. One does not need both, but the PR bit is the correct one if one wants counters to work. No documentation on this, sadly, but that's what we've deduced.
Dzar
Occasional Contributor
7 years agoIt seems that I've uncovered and fixed the problem.
The short answer is that when using the MAC in promiscuous mode (RA bit set in the filter config register), one also needs to set the PR bit in the same register.
Bottom line is that the documentation is wrong on how the counters work, at best, and the MAC has a bug that it only counts when the MAC filters match even when in promiscuous mode, in my opinion.