Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hi,
I have a question about F28388D ethernet examples.
I was trying to run ethernet_ex1_basic_tx_rx_loopback. Here is what I did:
1. I built and ran ethernet_c28x_config example on CPU1.
2. Then I built and debugged ethernet_ex1_basic_tx_rx_loopback on CM.
The program stuck at Line 158 pInitCfg = Ethernet_initInterface(initInterfaceConfig);
I looked into it. It seems it was trapped in the loop of ethernet.c file, Ethernet_resetModule function, line 3171,
//Wait till the Soft Reset is done
//
while((HWREG(base + ETHERNET_O_DMA_MODE) & ETHERNET_DMA_MODE_SWR) ==
ETHERNET_DMA_MODE_SWR)
{
}
I have several questions about this example.
1. Why does the program stop there?
2. I was trying to delete the line in ethernet.c to avoid this problem. But I did not succeed. The program still runs to that blank line and it seems ethernet.c is not complied. Does that mean I am not allowed to change library file?
3. I understand the purpose of running ethernet_c28x_config is to configure peripherals. But when I load the ethernet_ex1_basic_tx_rx_loopback example, how can I check GPIO pins are configured correctly. I feel like configuration by ethernet_c28x_config is removed after I loaded ethernet_ex1_basic_tx_rx_loopback.
Thanks.
Cheng