This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AMIC110: EtherCAT debug problem

Part Number: AMIC110

Tool/software: TI-RTOS

Hi:

I have come up with a very strange problem when debugging your demo EtherCAT project "ethercat_slave_full_amic11x_arm".

When I track the state machine changing process, I set a break point in the INIT_2_PREOP case before the "MBX_StartMailboxHandler()" function that shows as the picture below.

At this point ,if I debug with "step over(F6)", the state machine will not change and the thread seems like stucking in endless loop. But if I debug with "Resume(F8)", it will go to next step normally and the whole EtherCAT works well.

I track in the function and find that it finally stucked in the function named "int32_t PRUICSS_pruWaitEvent(PRUICSS_Handle handle,uint32_t pruEvtoutNum )". 

The tracking path is:

MBX_StartMailboxHandler()->EnableSyncManChannel()->HW_EscWriteByte()->bsp_pdi_write_indication()->bsp_send_command_to_firmware()->PRUICSS_pruWaitEvent().

When stucking in the "PRUICSS_pruWaitEvent()", if I "suspend(Alt+F8)" the process, it always stops in the function shows as the picture below:

It seems that it matters with the sys/bios or the firmware of PRU.I can't figure out how this problem happens. 

Best regards!