Search found 18 matches

by derricksenva
Thu Jan 04, 2024 12:02 am
Forum: ESP-IDF
Topic: SPI_FLASH_ERASE_YIELD_DURATION_MS and CONFIG_SPI_FLASH_ERASE_YIELD_TICKS
Replies: 2
Views: 6558

SPI_FLASH_ERASE_YIELD_DURATION_MS and CONFIG_SPI_FLASH_ERASE_YIELD_TICKS

Can someone explain what SPI_FLASH_ERASE_YIELD_DURATION_MS and CONFIG_SPI_FLASH_ERASE_YIELD_TICKS do? The descriptions from docs.espressif.com are not worded very well and almost sound exactly the same. Is CONFIG_SPI_FLASH_ERASE_YIELD_DURATION_MS the amount of time passed to vTaskDelay() at the end ...
by derricksenva
Wed Nov 15, 2023 6:50 pm
Forum: ESP-IDF
Topic: FAT FS on External Flash example
Replies: 6
Views: 1124

Re: FAT FS on External Flash example

how a CPU yield is supposedly accomplished vTaskDelay(...) is how this kind of yielding is done. You're right. I guess this is why I'm confused why the original example code was still triggering the watchdog timeout when attempting to erase all 16 Mbytes (in blocks of 64 kbytes) in a single call. T...
by derricksenva
Wed Nov 15, 2023 5:32 pm
Forum: ESP-IDF
Topic: FAT FS on External Flash example
Replies: 6
Views: 1124

Re: FAT FS on External Flash example

If you access the external flash over the same SPI bus which the internal flash uses I'm not sure that's even possible. If the CPU kept running other tasks it would likely have to fetch instructions from the internal flash at some point, which won't work while the SPI bus is in use for the external...
by derricksenva
Tue Nov 14, 2023 5:26 pm
Forum: ESP-IDF
Topic: FAT FS on External Flash example
Replies: 6
Views: 1124

Re: FAT FS on External Flash example

I'd suggest trying to erase in multiple smaller ranges instead of all at once, like Your suggestion does fix the immediate problem. The example works now that we're manually ensuring a single call to esp_partition_erase_range will not last longer than the task watchdog timeout. Our concerns are sti...
by derricksenva
Mon Nov 13, 2023 7:26 pm
Forum: ESP-IDF
Topic: FAT FS on External Flash example
Replies: 6
Views: 1124

FAT FS on External Flash example

We're currently prototyping the addition of an external flash chip (Winbond W25Q128JV) to an ESP32-PICO-V3-02 and basing it off of the FAT FS on External Flash example . The manufacturer ID, device ID, and memory size are read correctly during initialization, but the idle task watchdog eventually ti...
by derricksenva
Wed Jul 26, 2023 11:11 pm
Forum: ESP-IDF
Topic: Panic does not show stack trace (v5.0.3)
Replies: 1
Views: 481

Re: v5.0.3 Panic does not show stack trace

I couldn't attach the sdkconfig to my original post for some reason, so here it is.

sdkconfig-no-stack-trace.txt
(53.69 KiB) Downloaded 101 times
by derricksenva
Wed Jul 26, 2023 10:50 pm
Forum: ESP-IDF
Topic: Panic does not show stack trace (v5.0.3)
Replies: 1
Views: 481

Panic does not show stack trace (v5.0.3)

We're running ESP-IDF v5.0.3. Is there some generic setting in the sdkconfig that would prevent the stack trace from being displayed on a panic? As you can see in the image below, it does not show the call stack leading up to esp_system_abort(). The details variable simply describes the address of t...
by derricksenva
Mon Mar 13, 2023 4:08 pm
Forum: ESP-IDF
Topic: All unlisted idf.py options
Replies: 2
Views: 1298

Re: All unlisted idf.py options

Is it possible to define different build/launch configurations in Eclipse to use different sdkconfig files? I tried adding those options as additional CMake arguments as seen below, but it didn't work and does the default behavior of building in the build/ directory and using the plain sdkconfig fil...
by derricksenva
Mon Feb 27, 2023 7:25 pm
Forum: ESP-IDF
Topic: All unlisted idf.py options
Replies: 2
Views: 1298

All unlisted idf.py options

Is there documentation for all possible commands and options passable to idf.py (and any other tools as well: esptool.py, espefuse.py, espsecure.py, etc.)? For example, idf.py -DSDKCONFIG=<filename> bootloader/partition-table/app allows us to specify a specific sdkconfig when we have multiple build ...
by derricksenva
Thu Jan 05, 2023 11:03 pm
Forum: ESP-IDF
Topic: FreeRTOS SMP
Replies: 1
Views: 2449

FreeRTOS SMP

The documentation for v5.0 seems to imply that the modified FreeRTOS component included with ESP-IDF is designed with SMP built in by default: docs.espressif.com/projects/esp-idf/en/v5.0/esp32/api-guides/freertos-smp.html?highlight=freertos#esp-idf-freertos-smp . But, menuconfig seems to imply that ...