Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

XMC ECAT0 Alias

$
0
0
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;

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>