I want to check or change the Station Alias.
However, it seems that the correct information can not be read or changed through the defined ECAT0.
Are there other conditions or procedures for use?
ECAT0 is defined in "XMC4300.h" as follows.
#define ECAT0 ((ECAT_Type *) ECAT0_BASE)
I read the information below but it is different from what I actually run on Ethercat.
ECAT_Type* pECAT_Reg = ECAT0;
nReadStation = pECAT_Reg->STATION_ADR;
nReadAlias = pECAT_Reg->STATION_ALIAS;
Of course, there is no change even if you input the following values at various timings.
pECAT_Reg->STATION_ALIAS = (uint16_t)nSetAlias;
However, it seems that the correct information can not be read or changed through the defined ECAT0.
Are there other conditions or procedures for use?
ECAT0 is defined in "XMC4300.h" as follows.
#define ECAT0 ((ECAT_Type *) ECAT0_BASE)
I read the information below but it is different from what I actually run on Ethercat.
ECAT_Type* pECAT_Reg = ECAT0;
nReadStation = pECAT_Reg->STATION_ADR;
nReadAlias = pECAT_Reg->STATION_ALIAS;
Of course, there is no change even if you input the following values at various timings.
pECAT_Reg->STATION_ALIAS = (uint16_t)nSetAlias;