Search found 36 matches

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: 4764

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: 842

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: 842

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: 1380

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: 1380

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.
by NotMyRealName
Wed Oct 11, 2023 5:50 am
Forum: ESP-IDF
Topic: HTTP Server stop function can cause endless loop.
Replies: 3
Views: 1380

HTTP Server stop function can cause endless loop.

I'm using IDF4.4.5 on ESP32 and I've come across what I think is a bug or maybe an oversight in the way the HTTP server is implemented. I have a commercial project on a few different hardware platforms and I run multiple network interfaces simultaneously (e.g. STA, AP, ETH, PPP), and they all start-...
by NotMyRealName
Mon Aug 07, 2023 9:31 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: 4764

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

Hi Tom, I can't pen up an exact example for you sorry, but I did end up following the suggestion in the link from boarchuz. Here is a snippet from my bootloader hooks file (called from bootloader_after_init() hook). This is probably not entirely my own work, can't remember if I copied bits of this f...
by NotMyRealName
Mon Mar 13, 2023 4:11 am
Forum: ESP-IDF
Topic: How to disable WiFi from GPIO ISR for Brownout?
Replies: 4
Views: 1586

Re: How to disable WiFi from GPIO ISR for Brownout?

I've done a lot of work on this in the last week and I've come to the conclusion that I can't rely on any of the normal methods for disabling WiFi even from a high priority task rather than the ISR. Unless I am missing something obvious... The reason for this is they all seem to pend on synchronizat...
by NotMyRealName
Mon Mar 06, 2023 10:43 pm
Forum: ESP-IDF
Topic: How to disable WiFi from GPIO ISR for Brownout?
Replies: 4
Views: 1586

Re: How to disable WiFi from GPIO ISR for Brownout?

So after going through the SPI driver I have come to the conclusion that the scenario above (multiple tasks pending on flash operations) wasn't really considered when it was written. I've come up with my own derivative implementation of the yield function. (Original Espressif version here: https://g...