Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
anello
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hello,

 

I am using TC366DP. On the Ethernet interface when there is a burst of traffic or multple streams sending data to the processor, the ethernet interface becomes nonfunctional. When I say nofunctional it means no packets make it to the processor.

I have narrowed this down to interrupt not being triggered by RX DMA channel to the CPU Core 0. 

Wondering if anyone else has seen this problem and resolved it.

 

Thanks!

0 Likes
2 Replies
Giraffe1492
Level 5
Level 5
25 sign-ins 25 likes received 10 solutions authored

It appears that you are experiencing an issue with the Ethernet interface of the Infineon TC3xx microcontroller. Based on your description, the problem seems to be related to the RX DMA channel not triggering an interrupt to the CPU Core 0 when there is a burst of traffic or multiple data streams. To address this issue, please consider the following suggestions:

  1. Check interrupt priority: Ensure that the interrupt priority for the Ethernet RX DMA channel is set correctly and is not being preempted by other interrupts in the system. You may need to adjust the priority to ensure that the Ethernet interrupt is serviced in a timely manner.

  2. Buffer size and allocation: Make sure that the buffer size allocated for the Ethernet RX DMA channel is sufficient to handle bursts of traffic. If the buffer size is too small or not properly allocated, it may lead to packet loss and the non-functioning of the Ethernet interface.

  3. DMA configuration: Verify that the DMA configuration, including the source and destination addresses, transfer size, and transfer mode, is set up correctly. Any issues in the DMA configuration can result in the interrupt not being triggered.

  4. Check for hardware issues: Inspect the Ethernet PHY and the physical connections for any hardware-related issues that might cause the Ethernet interface to become non-functional under heavy traffic.

  5. Software and firmware updates: Make sure that your system is running the latest software and firmware versions provided by Infineon. Updates may include bug fixes or improvements that address issues like the one you're experiencing.

  6. Consult the documentation: Review the TC3xx microcontroller datasheet and reference manual for specific information about Ethernet and DMA operation, and ensure that your implementation aligns with the guidelines provided.

Let me know if this helps.

0 Likes
anello
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Thanks for the quick response! Priority and DMA configuration seems to correct I presume since we can support multiple of streams of the Ethernet traffic.

I will look into upgrading the LLD drivers and verify.

There is another way I can break the DMA interrupt. Here is the scenario:Connect JTAG debugger and run the system. When pinged on the Ethernet interface the system responds successfully. At this point halt the cores for a few seconds and then "continue" the execution. The systems starts to run except the Ethernet DMA stops generating interrupt even though packets are coming on the interface.

0 Likes