CH32V307 MQTT Example

Hello

i try to compile MQTT example usisng CH32V307EVT 


unfortunetly with error.



C:/MRS_DATA/workspace/NetLib/eth_driver.c:217:54: error: 'PHY_STATUS' undeclared (first use in this function)


i can't find where PHY_STATUS is declared - should be in ch32v30x_eth.h (Peripherals ?)


Robert


Such is the case,PHY_STATUS is declared in ch32v30x_eht.h,you can search the key word by "Ctrl+F".

The latest CH32V307EVT download address:   /downloads/CH32V307EVT_ZIP.html  Screenshot-48620a59-2116-4889-bc5c-94a8ea4b1983.png 


Hello

It's look like file ch32v30x_eth.h is generated by MRS.

here is screenshoot from 1.7


now i see in 1.8 looks like Your.

i will test




image.png


ok. i replaced file ch32v30x_eth.h

from MRS 1.7 to generated by 1.8 and now it compile ok.

Strange from header it's the same 1.0.0


* File Name          : ch32v30x_eth.h

* Author             : WCH

* Version            : V1.0.0

* Date               : 2021/06/06




只有登录才能回复,可以选择微信账号登录