Search found 18 matches

by gecko242
Thu Oct 29, 2020 4:51 pm
Forum: General Discussion
Topic: How to detect the first boot after OTA update
Replies: 1
Views: 3309

Re: How to detect the first boot after OTA update

Yup, dead easy: Firstly, enable the below config option. This means that, if you do not explicitly mark the new img as OK, it will automatically roll back upon the next boot. CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE Then check to see if your img is pending verification: esp_ota_img_states_t imgState; e...
by gecko242
Tue Feb 25, 2020 9:15 am
Forum: General Discussion
Topic: esp-idf httpd ethernet webserver performance is slow
Replies: 15
Views: 23117

Re: esp-idf httpd ethernet webserver performance is slow

Hmm, that sounds identical to what I am experiencing in STA mode. I have just tested AP mode, and I am experiencing similar things to STA mode. It is much more reliable in AP mode, but I am still getting a long block every 30 or so requests. I have tested this on Chrome, Edge and Firefox. So not qui...
by gecko242
Mon Feb 24, 2020 4:36 pm
Forum: General Discussion
Topic: esp-idf httpd ethernet webserver performance is slow
Replies: 15
Views: 23117

Re: esp-idf httpd ethernet webserver performance is slow

Connection:close does not help. Still getting multiple second response times on 700 bytes of text, generated on the fly. I can request the data, and there is no indication within the HTTPD server that a request has been made, until a couple of seconds pass and it serves up the data, which is why I t...
by gecko242
Fri Feb 21, 2020 12:26 pm
Forum: General Discussion
Topic: esp-idf httpd ethernet webserver performance is slow
Replies: 15
Views: 23117

Re: esp-idf httpd ethernet webserver performance is slow

I am not sure that the filesystem is the whole story. I agree spiffs is significantly slower than FAT, but I still believe that requests are getting stopped somewhere way before the webserver. I have some JSON pages generated entirely on the fly, with no mention of a filesystem. It sometimes still t...
by gecko242
Wed Feb 19, 2020 11:05 am
Forum: General Discussion
Topic: esp-idf httpd ethernet webserver performance is slow
Replies: 15
Views: 23117

Re: esp-idf httpd ethernet webserver performance is slow

Did you get any further with this? I am experiencing similar issues. It seems that any requests get "stuck" in the IP stack for a long time before making it to the web server handler. It might take 5 seconds before the server responds. What in the IP stack would cause it to hold on to a request for ...
by gecko242
Thu Dec 12, 2019 11:27 am
Forum: ESP-IDF
Topic: Starting / Setting TIMER_1 from TIMER_0 ISR
Replies: 0
Views: 2382

Starting / Setting TIMER_1 from TIMER_0 ISR

Hi Guys, I have NDIR_LAMP_TIMER set up with a 125ms period. This fires a GPIO. I need to sample an ADC exactly 50ms after the NDIR_LAMP_TIMER ticks. NDIR_LAMP_TIMER auto reloads NDIR_SAMPLE_TIMER does not. Currently I have the following ISR: void IRAM_ATTR timer_group0_isr(void *para) { timer_intr_t...
by gecko242
Fri May 31, 2019 3:40 pm
Forum: Hardware
Topic: Device bricked ("csum err") after two months of service
Replies: 32
Views: 38147

Re: Device bricked ("csum err") after two months of service

Okay. Sounds like it may be fixed, although it would be nice to know the root mechanism as to why devices in noisy environments get bricked.

The immunity thing may be a red herring, but worth looking out for.

Can you share what you did differently between revisions in regards to GND coupling?

Sam
by gecko242
Wed May 29, 2019 9:44 am
Forum: Hardware
Topic: Device bricked ("csum err") after two months of service
Replies: 32
Views: 38147

Re: Device bricked ("csum err") after two months of service

No worries. Yeah, it does seem far fetched, but weirder things have happened. If power consumption isn't an issue, you could easily lower it. Okay, that makes sense. To clarify, the second batch of devices never overwrite their bootloader? Or they don't have any noise issues? Have you put the device...
by gecko242
Thu May 23, 2019 10:49 am
Forum: Hardware
Topic: Can't upload code to WROOM-32D
Replies: 2
Views: 7098

Re: Can't upload code to WROOM-32D

You need a pull up on IO0 I believe.
Also, are you toggling the reset line?

Workflow should be:
Pull IO0 Low
Reset chip (or cycle power)
Release IO0
Initiate Download
cycle power when complete

Done!
by gecko242
Tue May 21, 2019 11:13 am
Forum: Hardware
Topic: Device bricked ("csum err") after two months of service
Replies: 32
Views: 38147

Re: Device bricked ("csum err") after two months of service

Could it be that 360k isnt aggressive enough of a pull down? One thing worth trying might be disabling the bootstrapping pins and forcing the flash voltage through the efuse, and then see if you get a failure? I dont know how long you have to run these before they typically fail. You mentioned that ...