FreeRTOS+TCP on SAME70 with ASF4 (Atmel Start) MAC drivers

Am I correct in my understanding that I shouldn’t
be using any of ethernet files added by ASF

Your understanding is correct.

For xPHY_Read() and xPHY_Write() to work properly, it is necessary to:

  • have all relevant clocks initialised and enabled
  • have the EMAC set-up
  • all GPIO’s set correctly ( peripheral functions )
  • make the choice between MII or RMII :
#if( SAME70 != 0 )
{
    /* Selecting RMII mode. */
    GMAC->GMAC_UR &= ~GMAC_UR_RMII;
}
#else
{
    gmac_select_mii_mode(GMAC, ETH_PHY_MODE);
}
#endif