Hello TonyT3P3,
Following is a summary of my progress with the EMAC/PHY interface.
Firstly, I got good Ethernet communication between my new Russian PHY board (AS-DM9161) with the SAM3X-EK board. I performed this with the purpouse of verify the functionality of this PHY board because is slightly different from the one embedded in the SAM3X-EK.
Here a log excerpt of the EMAC/external EPHY communication between SAM3X-EK board and AS-DM9161 Ethernet PHY board:
-- MAC 0:4:25:1c:a0:2
-- IP 192.168.0.2
Link detected.
-- IP 255.255.255.255
-- IP 20.254.181.156
======= IP 60 bytes, HEADER ==========
IP Version = v.4
Header Length = 5
Type of service = 0x0
Total IP Length = 0x22
ID = 0x4B8E
Header Checksum = 0x2E92 Protocol =
UDP
IP Src Address = 192:168:0:3
IP Dest Address = 255:255:255:255
----------------------------------------
-- IP 255.255.255.255
-- IP 20.254.181.156
======= IP 60 bytes, HEADER ==========
IP Version = v.4
Header Length = 5
Type of service = 0x0
Total IP Length = 0x2C
ID = 0x4B91
Header Checksum = 0xAF94 Protocol =
ICMP
IP Src Address = 192:168:0:3
IP Dest Address = 255:255:255:255
----------------------------------------
...
So far so good.
Then, I started tests between the Taijiuino board and the AS-DM9161,but hitherto, I have not managed to get communication between them. The EMAC sample sketch compiles OK in the Arduino IDE but I believe
I am overlooking something, specially in the Pio/pin configuration (in the variant files).
Here a log excerpt of the Taijiuino DUE EMAC/external EPHY:
-- MAC 0:4:25:1c:a0:2
-- IP 192.168.0.2
Link detected.
I can see leds activity (FD/100/LINK) in the DM9161 but I am getting the same log even with the Taijiuino disconnected from the PHY.
Thus and unlike my CAN project, I have decided to publish and keep updates of the EMAC library files here (see my very first post in this thread). This files are the ones I am using now. The purpose of this is to obtain help from you guys.
Because the sketch compiles OK, I think that the only way to help testing the code, is to do it with the Taijiuino board and a DM9161 based board. Anyway, any comment/revision of the code is very welcome.
Other exercise I am going to do this week, is to run the same test SAM3X-EK/DM9161 but with the DP83848 to confirm that it works also, thus, using this second PHY as another option.
For your information, I am also trying to get direct support from Atmel. Thank you.