Search found 35 matches

by jhinkle
Wed Jan 07, 2026 11:17 pm
Forum: ESP-IDF
Topic: LWIP Stack Behavior - I must be doing something wrong
Replies: 1
Views: 436

LWIP Stack Behavior - I must be doing something wrong

I've been using the FreeRTOS TCP stack for years now with ARM MCUs.

I have a project that uses a ESP32 and I'm using the IDF with Vscode.

I use a Socket and set the socket Opt of TCP_NODELAY to true so data is transmitted without delay.

I'm using TCP to communicate with a PC program so I have ...
by jhinkle
Sun Mar 30, 2025 10:17 am
Forum: ESP-IDF
Topic: Why doesn't LWIP Respond to ARP Requests
Replies: 5
Views: 1106

Re: Why doesn't LWIP Respond to ARP Requests

ESP_Sprite:

Hardware ESP32 WROOM - two core

Web server - my design I been using in STM cpus for 10 years - uses sockets. NOT LWIP - I use FreeRTOS +TCP.

Using a JTAG debugger, I trapped the msg packet when it came in from wifi and watched how it was processed. I found that once the code was ...
by jhinkle
Sat Mar 29, 2025 12:03 pm
Forum: ESP-IDF
Topic: Why doesn't LWIP Respond to ARP Requests
Replies: 5
Views: 1106

Re: Why doesn't LWIP Respond to ARP Requests

As stated in my previous post - I set gratuitous ARP timing to 15 secs and unchecked ESP_WIFI_STA_DISCONNECTED_PM_ENABLE

Once a gratuitous ARP appeared - the Web Server was able to talk. THEN -- everything STOPPED. See the wireshark below. Once the gratuitous ARP STOPPED being sent - the Web Server ...
by jhinkle
Sat Mar 29, 2025 11:54 am
Forum: ESP-IDF
Topic: IDF Compiler settings are TERRIBLE for JTAG debugging
Replies: 5
Views: 971

Re: IDF Compiler settings are TERRIBLE for JTAG debugging

I tried adding add_compile_options() to the CMakeLists.txt in Main but the build process fails stating that the command in not-scriptable.

Added it to the CMakeLists.txt in the project folder -- see below


# For more information about build system see
# https://docs.espressif.com/projects/esp-idf ...
by jhinkle
Sat Mar 29, 2025 11:31 am
Forum: ESP-IDF
Topic: Why doesn't LWIP Respond to ARP Requests
Replies: 5
Views: 1106

Re: Why doesn't LWIP Respond to ARP Requests

ESP_Sprite:

Went into IDF Config and turned off gratuitous ARP and made sure all power management options are OFF/Not selected.

Compiled -- The browser NEVER connects with the Web Server -- still no ARP reply from LWIP.

I've gone back in and enabled gratuitous ARP and changed time from 60 secs to ...
by jhinkle
Sat Mar 29, 2025 1:18 am
Forum: ESP-IDF
Topic: How to Remove LWIP and all HTTP Server and Client
Replies: 3
Views: 674

Re: How to Remove LWIP and all HTTP Server and Client

Sorry - I don't understand your reply. CPU is NOT in any power saving mode.
by jhinkle
Sat Mar 29, 2025 1:16 am
Forum: ESP-IDF
Topic: IDF Compiler settings are TERRIBLE for JTAG debugging
Replies: 5
Views: 971

Re: IDF Compiler settings are TERRIBLE for JTAG debugging

Thanks for the reply.

THAT was one of the many I tried. I have compiler set for no optimization in the sdk config and added add_compile_options(-g) as the last line in my CMakeLists.txt in main.

No change in behavior.

Did I use the add_compile_options() improperly?

Thanks
by jhinkle
Fri Mar 28, 2025 10:15 pm
Forum: ESP-IDF
Topic: IDF Compiler settings are TERRIBLE for JTAG debugging
Replies: 5
Views: 971

IDF Compiler settings are TERRIBLE for JTAG debugging

Why offer JTAG debugging when the IDF setting make using JTAG useless.

If you set compiler for Debug - most all the variables are optimized out.

If you set it for no-optimization - the variables are unavailable because no debugging info available.

There is NOT a compiler setting that works.

I've ...
by jhinkle
Fri Mar 28, 2025 8:19 pm
Forum: ESP-IDF
Topic: Why doesn't LWIP Respond to ARP Requests
Replies: 5
Views: 1106

Why doesn't LWIP Respond to ARP Requests

Thank goodness I have the IDF set to issue a gratuitous ARP every so often.

As you can see below - I have a desktop Chrome Browser attempting to open a web page on my ESP HTTP server. Chrome starts requesting ARP responses but LWIP provides nothing. Finally LWIP issues a gratuitous ARP and the web ...
by jhinkle
Fri Mar 28, 2025 3:53 pm
Forum: ESP-IDF
Topic: How to Remove LWIP and all HTTP Server and Client
Replies: 3
Views: 674

How to Remove LWIP and all HTTP Server and Client

I've been using the FreeRTOS TCPIP stack for over 10 years on STM32F4 devices and understand/like it.

I've had nothing but issues with the ESP LWIP stack.

I ONLY use raw socket call from the stack - I have my own Server code.

When I go into the IDF Config menu and uncheck the usage of LWIP and ...

Go to advanced search