Hello,
I found a bug in the HWREG macro in hw_reg_access.h with HALCoGen 3.04.00.
Old definition:
#define HWREG(x) \
(*((volatile unsigned long *)(x)))
New definition:
#define HWREG(x) \
(*((volatile uint64 *)(x)))
unsigned long is 32bit. This leeds to many wrong initialised registers in emac and mdio and therefore to a not functional ethernet.
There is also a problem for me to fix it, because if I change uint64 to uint32 (it will work then) and generate a new code with HALCoGen my changes were lost.
Any suggestions how to solve it?
Best regards
Christian