Search found 11 matches

by squirtle321
Mon Mar 25, 2024 4:58 pm
Forum: ESP-IDF
Topic: Disparity in Heap Needed for NVS Library Initialization
Replies: 2
Views: 2039

Disparity in Heap Needed for NVS Library Initialization

Using ESP-IDF v4.4.1 Referencing the note in the NVS Library documentation there's an overhead of 128 bytes to 640 bytes (https://docs.espressif.com/projects/esp-idf/en/v4.4.1/esp32/api-reference/storage/nvs_flash.html#item-hash-list) In practice I'm noticing a constant overhead of around 84 bytes p...
by squirtle321
Wed Jun 07, 2023 5:48 pm
Forum: ESP-IDF
Topic: Questions about Core Dump Analysis - Crashes in WiFi and TCP/IP Tasks
Replies: 0
Views: 1061

Questions about Core Dump Analysis - Crashes in WiFi and TCP/IP Tasks

Hello there, I'm working on a project with many remote units in the field, and we've just set up the project to stream the coredump ELF to our cloud systems after a crash. I could use some help understanding the meaning of some of the coredumps we've received. tiT task (InstFetchProhibitedCause): I ...
by squirtle321
Tue Apr 25, 2023 1:21 pm
Forum: ESP-IDF
Topic: What causes "Corrupt Stack" messages in coredump?
Replies: 3
Views: 2514

Re: What causes "Corrupt Stack" messages in coredump?

the contents of the back trace with that message does not match the functions that would likely be called by the task, i.e. i2c_isr_handler_default in the btController task, or IDLE task. It looks like the stack is deemed "corrupt" for the interrupt handler(s); which could make sense: i2c_isr_handl...
by squirtle321
Fri Apr 21, 2023 10:25 pm
Forum: ESP-IDF
Topic: What causes "Corrupt Stack" messages in coredump?
Replies: 3
Views: 2514

What causes "Corrupt Stack" messages in coredump?

I'm trying to debug an IWDT timeout and inspecting the coredump I notice that the crashed task seems to always have the message: Backtrace stopped: previous frame inner to this frame (corrupt stack?) What causes these messages? I notice that the contents of the back trace with that message does not ...
by squirtle321
Tue Apr 18, 2023 8:26 pm
Forum: ESP-IDF
Topic: Bluetooth Controller and UART IWDT Timeout - Need Help Debugging
Replies: 1
Views: 1494

Bluetooth Controller and UART IWDT Timeout - Need Help Debugging

I've got a fairly consistent IWDT timeout that occurs about 25%-50% of the time given the following conditions: - Setup: ESP32 running ESP-IDF v4.4.1 (tried upgrading to v4.4.4 but it did not solve the issue) - Bluetooth enabled (NimBLE) and connected to device for WiFi provisioning. Bluetooth contr...
by squirtle321
Mon Oct 17, 2022 1:56 pm
Forum: ESP-IDF
Topic: i2c_master_cmd_begin Timeout Error lasting 1000 ticks, despite much shorter timeout setting
Replies: 2
Views: 2192

i2c_master_cmd_begin Timeout Error lasting 1000 ticks, despite much shorter timeout setting

Hi there, I've got a block of code which is occasionally blocking one of my tasks for a full second, leading to horrible jitter. Upon further investigation it seems like i2c_master_cmd_begin(...) is blocking for a full second. I have the parameter ticks_to_wait set to be much lower, which according ...
by squirtle321
Fri Oct 14, 2022 5:16 pm
Forum: ESP-IDF
Topic: Dealing with an ESP-IDF project that needs to support many PCB revisions?
Replies: 5
Views: 4498

Re: Dealing with an ESP-IDF project that needs to support many PCB revisions?

The project structure you have posted does make sense to me! Regarding verbosity in CMake, one way to handle it could be to introduce another variable for version name. This will work if every hardware version has the same set of source files. For example: menu "Example Product Configuration" choic...
by squirtle321
Thu Oct 13, 2022 9:30 pm
Forum: ESP-IDF
Topic: I2C Read timeout too long
Replies: 3
Views: 2558

Re: I2C Read timeout too long

I'm also experiencing a similar issue. I have the timeout set to be very short (2 ticks), but I'm seeing a timeout of 1000 ticks.

I'm wondering if you found a solution for your issue?

Thanks
by squirtle321
Fri Sep 23, 2022 7:10 pm
Forum: ESP-IDF
Topic: Dealing with an ESP-IDF project that needs to support many PCB revisions?
Replies: 5
Views: 4498

Re: Dealing with an ESP-IDF project that needs to support many PCB revisions?

Hi squirtle321, One way to add such "board revision" choice in an IDF based project would be by adding a Kconfig option. You can get the idea from Kconfig.projbuild and CMakeLists.txt files in this example: https://github.com/espressif/esp-idf/tree/master/examples/build_system/cmake/multi_config/ma...
by squirtle321
Tue Sep 13, 2022 5:34 pm
Forum: ESP-IDF
Topic: Dealing with an ESP-IDF project that needs to support many PCB revisions?
Replies: 5
Views: 4498

Dealing with an ESP-IDF project that needs to support many PCB revisions?

I have an project which has several different PCB revisions, each with different peripheral ICs that the ESP32 communicates with. Each revision has a variety of changes like for example using a different sensor IC, and so I need different functions to communicate with the specific sensor. The applic...