'm evaluating SSCv5.0 with AM3359 ICE demoboard. Actually everything is working fine, except for Ethernet over Ethercat.
The ESC responds correctly to ping request, but every EoE mailbox message allocates 144 bytes of heap memory and *never releases* it. In a few ping iterations (depending
on heap size) the cpu locks somewere out of memory.
The memory allocation occurs in MBX_CheckAndCopyMailbox()
[file mailbox.c line 903]:
#if MAILBOX_QUEUE
psWriteMbx = (TMBX MBXMEM *)
APPL_AllocMailboxBuffer(MBX_BUFFER_SIZE);
/* if there is no more memory for mailbox buffer,
the mailbox should not be read */
if (psWriteMbx == NULL)
...
This function is called by ECAT_Main() [file ecatslv.c line 2782] as soon as an EoE mailbox message is received.
Any suggestion?