Search found 17 matches

by PeterG76
Wed May 01, 2024 3:27 pm
Forum: ESP-IDF
Topic: Simple example code to dump LAN8710A registers
Replies: 3
Views: 1307

Re: Simple example code to dump LAN8710A registers

This is the git diff on my esp-idf diff --git a/components/esp_eth/include/esp_eth.h b/components/esp_eth/include/esp_eth.h index 34ee91594..6e2b7c43b 100644 --- a/components/esp_eth/include/esp_eth.h +++ b/components/esp_eth/include/esp_eth.h @@ -147,6 +147,8 @@ esp_err_t esp_eth_driver_uninstall(e...
by PeterG76
Wed May 01, 2024 3:25 pm
Forum: ESP-IDF
Topic: Simple example code to dump LAN8710A registers
Replies: 3
Views: 1307

Re: Simple example code to dump LAN8710A registers

I had to do the same thing recently to diagnose some of our ethernet faults with a SMSC LAN8710A phy chip interfacing with an ESP32-WROVER-E. The esp-idf driver that supports LAN8710A has some code that reads Phy registers https://github.com/espressif/esp-idf/blob/master/components/esp_eth/src/esp_e...
by PeterG76
Wed Nov 22, 2023 2:44 pm
Forum: General Discussion
Topic: ESP-IF DHCP Server Does Not Check if IP Address is Already in Use Before Offering a Lease
Replies: 3
Views: 5011

Re: ESP-IF DHCP Server Does Not Check if IP Address is Already in Use Before Offering a Lease

Hello, I've produced a fix to your dhcpserver.c which is solving my perpetual DHCPS address lease and decline issue. This code (diff below) increments the offered IP address when a Decline is received to an already ACKed IP address lease. [Codebox] diff --git a/components/lwip/apps/dhcpserver/dhcpse...
by PeterG76
Tue Nov 21, 2023 10:24 am
Forum: General Discussion
Topic: ESP-IF DHCP Server Does Not Check if IP Address is Already in Use Before Offering a Lease
Replies: 3
Views: 5011

Re: ESP-IF DHCP Server Does Not Check if IP Address is Already in Use Before Offering a Lease

I've encountered a similar problem. I have two instances of my ESP-IDF app, one running as esp-netif DHCP server and one running as DHCP client. The instance running as client is correctly sending a DHCP Decline when it realises the IP address is already in use. However when the DHCP client performs...
by PeterG76
Tue Jan 03, 2023 9:38 am
Forum: ESP-IDF
Topic: SPI Flash Write Errors After Porting Project from ESP-IDF v4.1 to v4.4
Replies: 5
Views: 3237

Re: SPI Flash Write Errors After Porting Project from ESP-IDF v4.1 to v4.4

Thank you, Just an update to say that the suggested patch worked for me on ESP-IDF v4.4.3. Not helped by the fact that one of my devices appears to have an ESP32-WROVER-E with faulty SPI flash anyway. But the patch worked on two other device samples. Please try the fix from https://github.com/espres...
by PeterG76
Fri Nov 18, 2022 3:27 pm
Forum: ESP-IDF
Topic: SPI Flash Write Errors After Porting Project from ESP-IDF v4.1 to v4.4
Replies: 5
Views: 3237

Re: SPI Flash Write Errors After Porting Project from ESP-IDF v4.1 to v4.4

I'm calling i2c_driver_install() with intr_alloc_flags set to ESP_INTR_FLAG_IRAM. I have a function called from app_main which is opening a file on SPI Flash and writing to it. The fprintf or fclose are triggering these crashes/panics. I'm calling spi_flash_cache_enabled() just before my file write ...
by PeterG76
Fri Nov 18, 2022 3:09 pm
Forum: ESP-IDF
Topic: SPI Flash Write Errors After Porting Project from ESP-IDF v4.1 to v4.4
Replies: 5
Views: 3237

Re: SPI Flash Write Errors After Porting Project from ESP-IDF v4.1 to v4.4

Here is the consistent stack trace I was getting yesterday... I (14753) MAIN: JACK Writing 'written using EDP-IDF v4.4-dirty' to file I (14753) MAIN: Closing file Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed). Core 1 register dump: PC : 0x401dac78 PS : 0x0...
by PeterG76
Wed Nov 16, 2022 11:29 am
Forum: ESP-IDF
Topic: SPI Flash Write Errors After Porting Project from ESP-IDF v4.1 to v4.4
Replies: 5
Views: 3237

SPI Flash Write Errors After Porting Project from ESP-IDF v4.1 to v4.4

I have inherited a project that was built using ESP-IDF v4.1-beta2 and ported it to ESP-IDF v4.4. This involved migrating from minGW build system to CMake and Windows CMD/Visual Studio Code. The project mostly builds and runs once I had fixed some I2C initialization errors due to new parameters in t...
by PeterG76
Tue Nov 01, 2022 1:15 pm
Forum: General Discussion
Topic: I2C problem with Esp-Idf V4.4-dev-1404
Replies: 4
Views: 14077

Re: I2C problem with Esp-Idf V4.4-dev-1404

Thanks for this solution. I had been tasked with porting an existing application built with ESP-IDF v4.1-beta2 (minGW make) to v4.4 (CMake) and was getting the same error when running my rebuilt application on our ESP32-WROVER-E. I (1668) HWCI: Creating Front Panel E (1688) i2c: i2c_param_config(662...
by PeterG76
Tue Aug 23, 2022 3:43 pm
Forum: Hardware
Topic: ESP32-WROVER-E and MCP2515 Communication Issues over SPI Bus
Replies: 5
Views: 3286

Re: ESP32-WROVER-E and MCP2515 Communication Issues over SPI Bus

OK, so we have discovered the cause of our issue. It turns out the crystal module driving OSC1 on the MCP2515 CAN driver was soldered the wrong way round on the PCB. This meant that the MCP2515 device was not responding to requests on the SPI bus. Having replaced the crystal module in the correct or...