Search found 52 matches

by HighVoltage
Tue Jul 23, 2024 3:48 pm
Forum: ESP-IDF
Topic: Is OTA Update of encrypted application possible?
Replies: 8
Views: 51278

Re: Is OTA Update of encrypted application possible?

devlat wrote:
Sun Jan 14, 2024 9:03 am
Can you please describe in more details your OTA procedure?
I agree with you that Espressif pre-encrypted method is overkill if you already have generated own flash encryption keys.
You can duplicate the OTA procedure and switch to use esp_partition_write_raw to write the encrypted data.
by HighVoltage
Wed Jun 05, 2024 1:49 am
Forum: ESP-IDF
Topic: Spurious ( False Positive ) factory / test boot condition detection
Replies: 7
Views: 1678

Re: Spurious ( False Positive ) factory / test boot condition detection

Instead of input mode with pull up, just before reset, I set it to output mode and set 0 to high. That seems to solve the false detection.
by HighVoltage
Wed Jun 05, 2024 1:35 am
Forum: ESP-IDF
Topic: Spurious ( False Positive ) factory / test boot condition detection
Replies: 7
Views: 1678

Re: Spurious ( False Positive ) factory / test boot condition detection

Well, I switched back to factory detection, since the app wouldn't programmatically switch to the test partition for booting. Now I am getting false positive on factory condition detected. I also noticed it happens consistently when doing a reboot from within app, which is calling "ESP.restart()". I...
by HighVoltage
Tue Jun 04, 2024 10:52 pm
Forum: ESP-IDF
Topic: Spurious ( False Positive ) factory / test boot condition detection
Replies: 7
Views: 1678

Re: Spurious ( False Positive ) factory / test boot condition detection

Since I changed to the boot to trigger the test app partition, I changed the corresponding code in my app to allow the user to manually change to this as the boot partition. The operation reports success, but on reboot, it continues to boot my app0 partition. So after a successful change, I tried to...
by HighVoltage
Tue Jun 04, 2024 6:06 pm
Forum: ESP-IDF
Topic: Spurious ( False Positive ) factory / test boot condition detection
Replies: 7
Views: 1678

Re: Spurious ( False Positive ) factory / test boot condition detection

Enabled the pull up, and it seems to have helped. Recent crashes did not affect the boot process.
by HighVoltage
Fri May 31, 2024 6:35 am
Forum: ESP-IDF
Topic: Spurious ( False Positive ) factory / test boot condition detection
Replies: 7
Views: 1678

Re: Spurious ( False Positive ) factory / test boot condition detection

The two boards are not the same. On the custom board with ESP-WROOM-32E, IO0 is only exposed to serial header as DTR for programming. I do have that hooked up via Serial2USB module during development for these runs. On the board with the NodeMCU Devkit with 32E, IO0 goes to level shifter input so it...
by HighVoltage
Thu May 30, 2024 6:36 pm
Forum: ESP-IDF
Topic: Spurious ( False Positive ) factory / test boot condition detection
Replies: 7
Views: 1678

Spurious ( False Positive ) factory / test boot condition detection

In case of application problems, I want the user to be able to boot to a factory application, where application firmware can be updated. I thought I may as well re-use the button already on IO0, but have been getting spurious detection. I first tried the factory configuration, and now switched to th...
by HighVoltage
Mon Apr 08, 2024 5:41 pm
Forum: ESP-IDF
Topic: SPI DMA crashes when using WiFi
Replies: 6
Views: 2975

Re: SPI DMA crashes when using WiFi

having flash as a source is an uncommon enough scenario Huh? Where else would a pixmap image come from? It would always originate in flash. Yeah, I was surprised to see how the lower level SPI routines are implemented when I investigated further. It seems naive to me, but I guess it's up to the end...
by HighVoltage
Thu Mar 28, 2024 7:48 pm
Forum: ESP-IDF
Topic: SPI DMA crashes when using WiFi
Replies: 6
Views: 2975

Re: SPI DMA crashes when using WiFi

It looks like setup_priv_desc will malloc dma'able memory, because my image comes from FLASH. That appears to be where the likely failure occurs. I decided to do a test, and I set up a single frame buffer in dma'able memory and copied from my image in FLASH to my own buffer, and then called pushImag...
by HighVoltage
Thu Mar 28, 2024 5:49 pm
Forum: ESP-IDF
Topic: SPI DMA crashes when using WiFi
Replies: 6
Views: 2975

Re: SPI DMA crashes when using WiFi

I output the minimum and current heap size available before each invocation, and there is 60K free. I thought it might be 8-bit accessible related, but checked heap_caps_get_free_size(MALLOC_CAP_8BIT) and it is also 60K. Is the SPI API doing something unusual with memory usage that causes this? It s...