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.
Hello.
TI 28388 ControlCARD is in use.
Testing Ethernet with C2000 example.
CPU1 has an example of ethernet_c28x_config.
The CM has an example of enet_lwip_udp.
My question is why the "udp_rx_callback" function assigned to udp_recv does not work.
It was confirmed that the "Connected_udp_28000" variable in the corresponding callback function must be true to operate the send function.
How can I make "udp_rx_callback" in CM project work?
Hi,
The UDP example expects the keywords 'START' and 'STOP' to start/stop the communication. Pls try it out.
Best Regards
Siddharth
Dear Siddharth Deshpande
I entered "Start" or "Stop" command, but it doesn't work.
I entered the ping command on the cmd screen, but there is no response.
In my opinion, it seems that the Ethernet driver has not been initialized. What part should I check?
Hi ,
Pls refer this post and check if the setup is correct
Best Regards
Siddharth
I checked your answer.
CPU1-cm_common_config_c28x.out
=> #define ETHERNET (main.c)
AM-enetlwip_udp.out
However, I sent the "START" command, but the "Connected_udp_28000" variable does not change to True.
The problem I have is not resolved yet.
No response from ping to 1.192.168.0.4.
2.udp_rx_callback does not work.
=> When a variable declared as a global variable in the udp_rx_callback function is increased, the variable does not increase.
Thank you for your help in resolving the issue.
Hi,
What is the IP address of the PC that you have configured ? It should be in the same network as the f2838x's network.
Can you debug by halting the CM core to see call stack and the execution is stuck at?
Best Regards
Siddharth
Hi,
A video of the test environment is attached.
As you said, I configured the network the same.
But ping still doesn't work.
also, when i debug cm, show popup "_JobHardwareBreakpoint.....".
How to debug cm project?
Hi,
I took a look at the video , the c28x code has to be run first before running the CM core. You can run the c28x core and then connect to CM core , load the enet_lwip_udp binary to CM core and then run it.
Let me know if this sequence works
Best Regards
Siddharth
Hi,
After running C28x as you said, I ran CM core.
The results were successful.
Ping is normal, and "START" and "STOP" commands are working.
There was no problem when C28x and CM were loaded like the video for the LED example. Can you tell me why this problem occurs depending on the order of loading the executable file?
C28x is the master core and after reset, it owns all the configuration and control. It has to configure the peripherals and I/Os to be accessible by the CPU2 subsystem or the CM subsystem. Hence C28x code has to run first.
Best Regards
Siddharth