Not applicable
Jun 22, 2018
04:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 22, 2018
04:36 PM
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;
Labels
3 Replies
Jul 03, 2018
08:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 03, 2018
08:03 AM
Hi motionics,
inside the function HW_Init which is implemented inside generated code of ECAT_APP (xmc_eschw.c) two pointers to callback-functions are defined:
pAPPL_EEPROM_Reload = HW_EepromReload;
pAPPL_EEPROM_Write = HW_EepromWrite;
Since SSC 5.12 these callback pointers are set to zero inside SSC initialization when MainInit is called.
Therefore since SSC 5.12 it is obligatory to set these callback pointers after (and not before) MainInit of SSC is called.
We will fix that in short term and release an update of the APP.
If this does not fit your schedule and you need assistance in short term before this release, please feel free to get in contact with me via PN.
Kind Regards
MichaelIFX
inside the function HW_Init which is implemented inside generated code of ECAT_APP (xmc_eschw.c) two pointers to callback-functions are defined:
pAPPL_EEPROM_Reload = HW_EepromReload;
pAPPL_EEPROM_Write = HW_EepromWrite;
Since SSC 5.12 these callback pointers are set to zero inside SSC initialization when MainInit is called.
Therefore since SSC 5.12 it is obligatory to set these callback pointers after (and not before) MainInit of SSC is called.
We will fix that in short term and release an update of the APP.
If this does not fit your schedule and you need assistance in short term before this release, please feel free to get in contact with me via PN.
Kind Regards
MichaelIFX
Not applicable
Jul 30, 2018
10:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 30, 2018
10:07 PM
Hi MichaelIFX,
How do I know the current Station Alias?
Is it impossible to read and verify the ECAT0_BASE area?
Do I have to write to the EEPROM to replace the Station Alias?
Is it not possible to write in the ECAT0_BASE area?
Best Regards,
Motionics
How do I know the current Station Alias?
Is it impossible to read and verify the ECAT0_BASE area?
Do I have to write to the EEPROM to replace the Station Alias?
Is it not possible to write in the ECAT0_BASE area?
Best Regards,
Motionics
Sep 07, 2018
01:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 07, 2018
01:46 PM
Hi, is there any updates from Infineon regarding this matter? We are trying to update the SII in the eeprom and ran into some problems. I guess if the EEPROM reload and write is not setup in MainInit, the SII will not be updated?