Daft question time.
I'm debugging an EtherCAT application on the ICE board, using the EtherCAT slave source. There looks to be some useful debug already inserted by TI which would be good to enable. However, it looks like some of the defines are missing, from tieschw.c:
#ifdef TI_ESC_DEBUG
if (alEvent != oldAlEvent)
{
printf ("%x->%x\n", oldAlEvent, alEvent);
HW_EscReadByte(smStatus[0], (ESC_ADDR_SM_MBXWRITE+ESC_OFFS_SMSETTINGS+ESC_OFFS_SMSTATUS));
HW_EscReadByte(smStatus[1], (ESC_ADDR_SM_MBXREAD+ESC_OFFS_SMSETTINGS+ESC_OFFS_SMSTATUS));
HW_EscReadByte(smStatus[2], (ESC_ADDR_SM_PDWRITE+ESC_OFFS_SMSETTINGS+ESC_OFFS_SMSTATUS));
HW_EscReadByte(smStatus[3], (ESC_ADDR_SM_PDREAD+ESC_OFFS_SMSETTINGS+ESC_OFFS_SMSTATUS));
HW_EscReadByte(smStatus[4], ESC_ADDR_ALSTATUS);
printf ("AL status: %x SM Status: %x : %x : %x : %x\n", smStatus[4], smStatus[0], smStatus[1], smStatus[2], smStatus[3]);
}
oldAlEvent = alEvent;
#endif
Is it possible to supply values for :
ESC_ADDR_SM_MBXWRITE
ESC_ADDR_SM_MBXREAD
ESC_ADDR_SM_PDWRITE
ESC_ADDR_SM_PDREAD
ESC_OFFS_SMSETTINGS
ESC_OFFS_SMSTATUS
or supply updated code to reactivate this functionality?
cheers
Mat