ENETx on Cortex - M4

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ENETx on Cortex - M4

680 Views
werner2005
Contributor II

Hello, 

We currently build a FreeRTOS based ENET driver for the Cortex - M4. We have some Problems with Recving Ethernet packets on the Cortex - M4. 

We disable the Ethernet driver on Linux and U-Boot. Currently we boot the Cortex - M4 with the debugger, on Cortex - A9 currently running U-Boot. 

We build the Ethernet driver based on Linux Driver on a selfmade HAL for FreeRTOS found at github: FreeROTS Hardware Abstraction Layer

We want to use IEEE1588 to support AVB/TSN on Cortex - M4. 

The Testbanch is: 

- Linux Dev PC with 100 MBit Ethernet sending ARP Broadcast Messages.

- 100 MBit Ethernet switch

- IMX6sx Conected with patchcable to Switch

The Cortex - M4 detect correctly 100 a Mbit Full Duplex Link with the Phy. Currently we can send packets from IMX6sx to the PC but we can't recv packets on IMX6sx. The Contoller set the RDAR bit in RDAR Register so we think the controller is correctly setup. 

It is impossible get some help with this problem? 

The Sourcecode is found on github: 

https://github.com/FreeRTOSHAL/testsystem.git branch imx6sx

checkout with: 

git clone https://github.com/FreeRTOSHAL/testsystem.git -b imx6sx --recursive
The FEC code is found at mach/imx6/fec.c (fhal-mach/fec.c at imx6sx · FreeRTOSHAL/fhal-mach · GitHub)

We use this compiler GNU ARM Embedded Toolchain project files : GNU ARM Embedded Toolchain  and the build system is based on Linux Kbuild: Configure Project with: "make imx6sx_defconfig"

Best regards

Andy Werner

Labels (1)
0 Kudos
3 Replies

510 Views
Carlos_Musich
NXP Employee
NXP Employee

Hello Andreas,

please consider that NXP community is the free support channel. In your case there are 2 reasons why your project is beyond the free support scope.

A) Modifying or customizing any library or stack provided by NXP or any NXP partner is out of the free support scope.

B) AVB support is provided only under NDA. This software product is offered through NXP Professional Services. You can find infromation about AVB software and Profesional services in the following links:

Audio Video Bridging Software|NXP 

www.nxp.com/services

Please contact our professional Support and Engineering Services team for further support.


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

510 Views
werner2005
Contributor II

Hello,

@Carlos_Musich this is not great to hear. The Project is part of public research at UaS RheinMain in Wiesbaden Germany. Correctly we prefer Open Source Code thanks for you help. Unfortunately we currently have no NDA.

@vic pandit Thanks for you help I check it tomorrow.

Regards

Andy 

0 Kudos

510 Views
vicpandit
Contributor II

I faced similar problem with our custom board with KSZ9031 PHY.

The problem we had was the RESET_N pin of PHY was not tied to IMX6 ENET_CRS_DV.

So in our case, we found that PHY state machine is dependent on the timing when RESET is applied to the phy, leaving it otherwise partially working. 

Check if that is what you have as well !!!

Vic

0 Kudos