Search found 41 matches
- Wed Oct 30, 2024 4:42 am
- Forum: ESP-IDF
- Topic: Possible issue with VFS component in V4.4.8. Not acquiring lock during vfs_fat_lseek
- Replies: 0
- Views: 585
Possible issue with VFS component in V4.4.8. Not acquiring lock during vfs_fat_lseek
I've been trying to debug an SD stability issue for a few days now and I think I might finally be onto something... Fingers crossed. :) I have the SDMMC peripheral running in 1 Bit mode (also 4 bit on another design) and I'm having issues after startup with file access to the SD card tripping one of...
- Tue Jun 18, 2024 2:05 am
- Forum: General Discussion
- Topic: Clear DNS lookup table
- Replies: 6
- Views: 6501
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...
- Fri Jun 14, 2024 12:02 am
- Forum: General Discussion
- Topic: Clear DNS lookup table
- Replies: 6
- Views: 6501
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...
- Wed Jun 05, 2024 10:03 pm
- Forum: General Discussion
- Topic: Clear DNS lookup table
- Replies: 6
- Views: 6501
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...
- Thu May 09, 2024 9:32 pm
- Forum: ESP-IDF
- Topic: Send AT commands while in PPPoS connection
- Replies: 6
- Views: 6857
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...
- Wed Dec 20, 2023 10:12 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: 6288
- 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: 6288
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 ...
- Mon Nov 27, 2023 3:05 am
- Forum: ESP-IDF
- Topic: Help with manually launching second stage bootloader from application.
- Replies: 3
- Views: 2474
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...
- Mon Nov 27, 2023 12:52 am
- Forum: ESP-IDF
- Topic: Help with manually launching second stage bootloader from application.
- Replies: 3
- Views: 2474
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...
- Tue Oct 17, 2023 2:47 am
- Forum: ESP-IDF
- Topic: HTTP Server stop function can cause endless loop.
- Replies: 3
- Views: 2268
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...