下载了最新的MSR,以及官方的Demo代码,导入ETH_UART后编译出现下面的问题。
导入udp的示例也是有编译问题。
ETH_UART错误log:
15:19:53 **** Build of configuration obj for project ETH_UART ****
make -j12 all?
E:/EmbProjects/CH32V20xEVT/EVT/EXAM/ETH/NetLib/eth_driver.c: In function 'ETH_SetClock':
E:/EmbProjects/CH32V20xEVT/EVT/EXAM/ETH/NetLib/eth_driver.c:354:5: warning: implicit declaration of function 'RCC_ETHDIVConfig'; did you mean 'RCC_RTCCLKConfig'? [-Wimplicit-function-declaration]
? ? ?RCC_ETHDIVConfig(RCC_ETHCLK_Div2);? // 120M/2 = 60MHz
? ? ?^~~~~~~~~~~~~~~~
? ? ?RCC_RTCCLKConfig
E:/EmbProjects/CH32V20xEVT/EVT/EXAM/ETH/NetLib/eth_driver.c:354:22: error: 'RCC_ETHCLK_Div2' undeclared (first use in this function); did you mean 'RCC_HCLK_Div2'?
? ? ?RCC_ETHDIVConfig(RCC_ETHCLK_Div2);? // 120M/2 = 60MHz
? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~
? ? ? ? ? ? ? ? ? ? ? RCC_HCLK_Div2
E:/EmbProjects/CH32V20xEVT/EVT/EXAM/ETH/NetLib/eth_driver.c:354:22: note: each undeclared identifier is reported only once for each function it appears in
E:/EmbProjects/CH32V20xEVT/EVT/EXAM/ETH/NetLib/eth_driver.c: In function 'ETH_Init':
E:/EmbProjects/CH32V20xEVT/EVT/EXAM/ETH/NetLib/eth_driver.c:543:20: error: 'ETH_IRQn' undeclared (first use in this function); did you mean 'RTC_IRQn'?
? ? ?NVIC_EnableIRQ(ETH_IRQn);
? ? ? ? ? ? ? ? ? ? ^~~~~~~~
? ? ? ? ? ? ? ? ? ? RTC_IRQn
make: *** [NetLib/subdir.mk:18: NetLib/eth_driver.o] Error 1
make: *** Waiting for unfinished jobs....