09-13-2023, 01:27 AM
I have installed pcf857 library. for the pcf8574_KO problem due to the i2c address.
now I have changed it as follows :
// Set relay output i2c address
PCF8574 pcf8574_R1(&I2Cone, 0x24, 4, 5);
PCF8574 pcf8574_R2(&I2Cone, 0x25, 4, 5);
// Set digital input i2c address
PCF8574 pcf8574_I1(&I2Cone, 0x21, 4, 5);
PCF8574 pcf8574_I2(&I2Cone, 0x22, 4, 5);
why init mac still failed?
Init pcf8574_R1...PCF8574_R1_OK
Init pcf8574_R2...PCF8574_R2_OK
Init pcf8574...pcf8574_I1_OK
Init pcf8574...pcf8574_I2_OK
Starting WebServer on Node32s with ETH_PHY_LAN8720
WebServer_WT32_ETH01 v1.5.1 for core v2.0.0+
E (1047) esp.emac: emac_esp32_init(349): reset timeout
E (1047) esp_eth: esp_eth_driver_install(214): init mac failed
now I have changed it as follows :
// Set relay output i2c address
PCF8574 pcf8574_R1(&I2Cone, 0x24, 4, 5);
PCF8574 pcf8574_R2(&I2Cone, 0x25, 4, 5);
// Set digital input i2c address
PCF8574 pcf8574_I1(&I2Cone, 0x21, 4, 5);
PCF8574 pcf8574_I2(&I2Cone, 0x22, 4, 5);
why init mac still failed?
Init pcf8574_R1...PCF8574_R1_OK
Init pcf8574_R2...PCF8574_R2_OK
Init pcf8574...pcf8574_I1_OK
Init pcf8574...pcf8574_I2_OK
Starting WebServer on Node32s with ETH_PHY_LAN8720
WebServer_WT32_ETH01 v1.5.1 for core v2.0.0+
E (1047) esp.emac: emac_esp32_init(349): reset timeout
E (1047) esp_eth: esp_eth_driver_install(214): init mac failed