We try to use the EtherCAT RAM as a normal RAM.
(We do not need the EtherCAT interface) But we are not able to write in this area.
What we noticed before is that there is a discrepancy regarding the addresses between the:
„Technical Reference Manual“ and the “Data Sheet”
exist.
Datasheet:
Reference Manual:
We have done/ tried the following:
Linker Command file of the CM:
And linked to a test section:
To this section a data struct was allocated with
#pragma DATA_SECTION
The follow code from the Examples was taken over:
CPU1:
SysCtl_allocateSharedPeripheral(SYSCTL_PALLOCATE_ETHERCAT,
ALLOCATE_TO_CM);
SysCtl_setECatClk(SYSCTL_ECATCLKOUT_DIV_5, SYSCTL_SOURCE_AUXPLL,
ESC_USE_INT_PHY_CLK);
(with different divider)
CM:
//ESC_resetESC();
SysCtl_resetPeripheral(SYSCTL_PERIPH_RES_ECAT);
ESCSS_initMemory(ESC_SS_BASE);
//
// Wait for ESCSS memory initialization to complete
//
if(ESCSS_getMemoryInitDoneStatusBlocking(ESC_SS_BASE, memoryTimeOut) != ESCSS_API_SUCCESS)
{
return(ESC_HW_INIT_FAIL);
}



