Hi,
I’m using ESP32(xtensa) with ESP-IDF and I’d like to perform atomic operations such as atomic_fetch_add on shared variables (instead of always using mutexes or critical sections).
I checked the ESP-IDF Programming Guide and the Miscellaneous System APIs section, and I only found esp_cpu ...
Search found 5 matches
- Fri Jan 16, 2026 8:59 am
- Forum: ESP-IDF
- Topic: How to do atomic operations like atomic_fetch_add on ESP32 in ESP-IDF?
- Replies: 1
- Views: 664
- Mon May 12, 2025 6:43 am
- Forum: General Discussion
- Topic: Atomicity of Naturally Aligned Variable Reads/Writes Across Tasks for Different Data Types
- Replies: 4
- Views: 222
Re: Atomicity of Naturally Aligned Variable Reads/Writes Across Tasks for Different Data Types
Thank you so much for all the helpful responses and suggestions!
I just wanted to clarify that I do understand volatile doesn't guarantee atomicity; it was simply an example I used to illustrate my point. Thanks for the reminder though!
On a curious note, could anyone kindly direct me to any ...
I just wanted to clarify that I do understand volatile doesn't guarantee atomicity; it was simply an example I used to illustrate my point. Thanks for the reminder though!
On a curious note, could anyone kindly direct me to any ...
- Thu May 08, 2025 9:45 am
- Forum: General Discussion
- Topic: Atomicity of Naturally Aligned Variable Reads/Writes Across Tasks for Different Data Types
- Replies: 4
- Views: 222
Atomicity of Naturally Aligned Variable Reads/Writes Across Tasks for Different Data Types
Hello everyone,
I'm working on a project using ESP32 with FreeRTOS where multiple tasks share and modify various types of global variables. My question is about the atomicity of read/write operations on naturally aligned variables in this environment.
Let’s say we have a shared variable that is ...
I'm working on a project using ESP32 with FreeRTOS where multiple tasks share and modify various types of global variables. My question is about the atomicity of read/write operations on naturally aligned variables in this environment.
Let’s say we have a shared variable that is ...
- Sun Apr 25, 2021 7:06 am
- Forum: ESP-IDF 中文讨论版
- Topic: esp32-camera运行实例程序报PSRAM ID错误
- Replies: 2
- Views: 7272
Re: esp32-camera运行实例程序报PSRAM ID错误
感谢,是WROOM模组
- Sun Apr 25, 2021 3:50 am
- Forum: ESP-IDF 中文讨论版
- Topic: esp32-camera运行实例程序报PSRAM ID错误
- Replies: 2
- Views: 7272
esp32-camera运行实例程序报PSRAM ID错误
硬件平台:devkitc-v2
开发环境:esp-idf vscode插件
根据readme文件,从github克隆仓库后,把esp32-camera添加到component中。并且通过idf.py menuconfig 打开了CONFIG_ESP32_SPIRAM_SUPPORT选项。此时编译烧录正常,但运行时,通过idf.py monitor,观察到以下错误,并不断重启。
E (264) psram: PSRAM ID read error: 0xffffffff
E (268) cpu_start: Failed to init external RAM!
Re-enable ...
开发环境:esp-idf vscode插件
根据readme文件,从github克隆仓库后,把esp32-camera添加到component中。并且通过idf.py menuconfig 打开了CONFIG_ESP32_SPIRAM_SUPPORT选项。此时编译烧录正常,但运行时,通过idf.py monitor,观察到以下错误,并不断重启。
E (264) psram: PSRAM ID read error: 0xffffffff
E (268) cpu_start: Failed to init external RAM!
Re-enable ...