07-02-2020 05:37 PM
I am trying to implement the PTP example code using two Arty Z7 20 boards. I am referring to the example code and instructions found here https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/emacps/examples.
In my setup I have connected two Arty boards with each other with a cross cabled Ethernet and both the boards are connected with the computer using USB.
I have imported the example codes in two different SDK files for Master and Slave and defined IEEE1588_MASTER flag in xemacps_ieee1588.h file for master and kept the slave file as it is.
I built and run the code in master first followed by slave and check the results on two screen tabs on the terminals.
I can observe that my slave board is also working as a master and I am not able to figure out why is this thing happening, is there a problem with my connection or there is something that I am missing to define. Please help me out.
07-03-2020 11:41 AM - edited 07-03-2020 03:47 PM
Thank you @nishak for your response. I have the following example codes provided by Xilinx SDK in both Master and Slave SDK files.
Inside the xemacps_ieee1588.h file I have defined the IEEE_1588 Master flag and left the slave as it is.
After that I build and run the .elf file generated for both master and slave respectively on two different Arty boards.
Am I doing anything incorrect. Please help.
I am using two different SDK for master and slave.