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.

AM3517 BSL emac loopback test issue

Other Parts Discussed in Thread: AM3517, CCSTUDIO

Hi,

I'm facing the ether mac loopback is failed with Shiva BSL on AM3517.

Please find attached file which I captured CCS debug windows.

Using AM3517 BSL for checking ether mac loopback on EVM board was failed with test code as is.

I found one particular code in evmam35xx_emac.c.
 
while(!CHKBIT_REGL(EMAC+EMAC_TXINTSTATRAW,TX0PEND))

I tried both run and step execution for the code, getting the different result.
When I tried to run the code, it happened rtn=ERR_ENET_RX_ERROR in EMAC_rx_packet in evmam35xx_emac.c
called from test_rmii_loopback.c.
But when I performed step execution, loopback test was passed.
 
I changed the code below then loopback test was passed for both run and step execution.
 
while(IN_REGL(EMAC+EMAC_TXINTSTATRAW)!=TX0PEND)
 
Questions are:
 
Why variables are different between run and step execution?
Why changing the code (equivalent code) worked fine? (caused by coding?)
 
I'm using CCSv4.1 (ARM compiler v4.6.3).
Kasuya