Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

AM2434: Can AM243x run ethernet from M4 core?

Part Number: AM2434
Other Parts Discussed in Thread: SYSCONFIG

All of the ethernet based SDK examples for the AM2434 are based on the R5-0-0 core. However, in my application I have all 4 R5 cores almost fully utilized. Is it feasible/possible to port one of these working examples to the M4 core to take on all the Lwip heavy lifting?

If it matters, I've started from the SDK 12.0.0.26 example called

mcu_plus_sdk_am243x_12_00_00_26\source\networking\enet\core\examples\lwip\enet_cpsw_udp_igmp\am243x-lp

and I'm working to adapt that example to only allow ping and unicast udp tx, which so far is working well, albeit on the wrong core. My hope was to be able to optimize it down to only use the resources that it needs for my application and then port it over to the M4 core of my project.

From the perspective of sysconfig it would seem that operating ethernet on the M4 is not possible, but perhaps I can at least get the M4 to manage the heavy lifting and just have the R5-0-0 core manage a light DMA ISR trigger as needed.

I should also note that I have a DMA channel almost fully utilized on to make block data transfers between a PRU and the R5-0-0, so hopefully operating this ethernet Lwip driver won't cause conflicts or performance issues with that.

Should I have hope or am I taking a wrong turn?

Thanks,

Marshall

  • Hi Marshall,

    There is no support for running ethernet peripherals on M4 core as of now. I understand that your requirement is such that all the packet reception to be handled by R5 core and lwip handling to be handled by M4 core. But this is not possible with the current software support. Further, there is no L2 cache available on M4 core, which will make the implementation of the ethernet application more complex than a simple porting.

    If you are using different PRU instances, which I am expecting to be the case, there wouldn't be any conflict. Block DMA transfers and ethernet transfers use different type of DMA channels. So the ethernet traffic will not share common DMA channel if your other PRU is using block transfers.

    I would suggest to try to handle the ethernet handling within the R5 cores.

    Thanks and regards,
    Teja.