AVB gptp blocking

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
aelder
Active Member
Posts: 37
Joined: Mon Sep 24, 2012 1:45 pm

AVB gptp blocking

Post by aelder »

I've run into a situation where gptp on an XMOS device is loosing pDelay request responses from the AVB switch it is connected to.

This code is modified from the original gptp code XMOS provided. The code works fine on an XMOS multichannel audio board, but not the target hardware.

My assumption is that something is blocking the transfer of the pDelay response packet from the ethernet tile to the AVB tile. What is the best way to debug this?

PS I have xscope configured to use xscope transport (rather than JTAG)
aelder
Active Member
Posts: 37
Joined: Mon Sep 24, 2012 1:45 pm

Post by aelder »

This code in the Ethernet tile runs

Code: Select all

          if (0 == i) debug_printf("rgmii ptp packet_ready()\n");
          i_rx[i].packet_ready();
but, after a time, this code in media_clock_server.xc fails to run

Code: Select all

      case i_eth_rx.packet_ready():
      {
        debug_printf("mclk: ptp_recv_and_process_packet()\n");
        ptp_recv_and_process_packet(i_eth_rx, i_eth_tx);
        break;
      }