Search found 40 matches

by NotMyRealName
Tue Jun 18, 2024 2:05 am
Forum: General Discussion
Topic: Clear DNS lookup table
Replies: 6
Views: 5884

Re: Clear DNS lookup table

Thanks for the suggestion. :) "tcpip_api_call( )" is a private function and not accessible from outside of the lwip code as far as I can tell. I tried to copy the design pattern used by the other dns functions that use an IPC call to do essentially the same thing I think? Here is what I added to esp...
by NotMyRealName
Fri Jun 14, 2024 12:02 am
Forum: General Discussion
Topic: Clear DNS lookup table
Replies: 6
Views: 5884

Re: Clear DNS lookup table

A word of CAUTION! Since posting, I've spent a good part of the last week trying to track down a bug. I'm pretty sure its come from me including dns_clear_cache()! :( If I call dns_clear_cache() from another thread while my MQTT (over tls) connection is busy connecting it causes the MQTT thread to l...
by NotMyRealName
Wed Jun 05, 2024 10:03 pm
Forum: General Discussion
Topic: Clear DNS lookup table
Replies: 6
Views: 5884

Re: Clear DNS lookup table

This is an old thread and I haven't properly tested this, but if someone else comes across this you can try: #include "lwip/dns.h" Which includes this function: dns_clear_cache(void); NOTE: there is only one DNS client shared between all interfaces (at least on IDF4.4). If you have WiFi/Cell/Eth run...
by NotMyRealName
Thu May 09, 2024 9:32 pm
Forum: ESP-IDF
Topic: Send AT commands while in PPPoS connection
Replies: 6
Views: 6318

Re: Send AT commands while in PPPoS connection

Thanks for the tip oarcher I'm still using IDF 4.x but I'll be making that leap to 5.x at some point I hope, so I'll take a look at this when I get there! You've probably saved me trying to implement it myself! :D I see there is a whole section here: https://docs.espressif.com/projects/esp-protocols...
by NotMyRealName
Wed Dec 20, 2023 10:02 pm
Forum: ESP-IDF
Topic: How can I place a variable at an absolute address? Pass value between bootloader hook and application.
Replies: 7
Views: 5741

Re: How can I place a variable at an absolute address? Pass value between bootloader hook and application.

Just found an issue with this! TAKE CARE IF YOU HAVE COPIED THIS CODE! There is a difference in implementation between IDF 4.3 and IDF 4.4 The older code includes the custom section of the retain memory in the CRC calculation and the newer one skips it. Which is causing me compatability issues when ...
by NotMyRealName
Mon Nov 27, 2023 3:05 am
Forum: ESP-IDF
Topic: Help with manually launching second stage bootloader from application.
Replies: 3
Views: 2195

Re: Help with manually launching second stage bootloader from application.

Thanks ESP_Sprite, Sounds like jumping straight to second stage bootloader is a bad idea. I'm assuming that a reset of any kind will also re-initialise system registers such as RTC scratch values in the first/second stage bootloader? Reserving RAM is how I would normally tackle this, but I think the...
by NotMyRealName
Mon Nov 27, 2023 12:52 am
Forum: ESP-IDF
Topic: Help with manually launching second stage bootloader from application.
Replies: 3
Views: 2195

Help with manually launching second stage bootloader from application.

Hi Everyone, I am struggling a bit with finding a way to manually launch the second stage bootloader from a running application partition. My code implements a custom serial bootloader using bootloader hooks and it would be nice to be able to force launch it. I also use OTA, but the serial backup is...
by NotMyRealName
Tue Oct 17, 2023 2:47 am
Forum: ESP-IDF
Topic: HTTP Server stop function can cause endless loop.
Replies: 3
Views: 1972

Re: HTTP Server stop function can cause endless loop.

I think I have found my issue. Amongst the numerous other things I have going on... I have manually overridden the IP4 route src hook functions. I do this to be able to force a default interface based on internet connectivity rather than solely on link up status. E.g. It will prefer WiFi if it has W...
by NotMyRealName
Mon Oct 16, 2023 9:34 pm
Forum: ESP-IDF
Topic: HTTP Server stop function can cause endless loop.
Replies: 3
Views: 1972

Re: HTTP Server stop function can cause endless loop.

Thanks for having a look hmalpani.

You are right, the example seems to work. I'll keep digging and report back. I'm still pretty sure it is getting stuck in this function, but must be some other mechanism.

Thanks.