我从wiki上下载了HALCoGen EMAC Driver with lwIP Demonstration, 用他的demo 目标程序下载到TMS570LS3137 HDK板子里,读PHY ID不成功
通过定位,看到hdkif_hw_init(struct netif *netif){} 函数 中443~447行一直跑不过去
while ((phyID == 0) && (phyIdReadCount > 0)) {
phyID = Dp83640IDGet(hdkif->mdio_base, hdkif->phy_addr);
phyIdReadCount--;
sciDisplayText(scilinREG, txtProgress, sizeof(txtProgress));
}
我用的是CCS6.0.1 不知道什么原因,板子是TI Store里买的