Search found 4 matches

by ma_ma_ma
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: 81

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 ...
by ma_ma_ma
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: 81

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 ...
by ma_ma_ma
Sun Apr 25, 2021 7:06 am
Forum: ESP-IDF 中文讨论版
Topic: esp32-camera运行实例程序报PSRAM ID错误
Replies: 2
Views: 7148

Re: esp32-camera运行实例程序报PSRAM ID错误

感谢,是WROOM模组
by ma_ma_ma
Sun Apr 25, 2021 3:50 am
Forum: ESP-IDF 中文讨论版
Topic: esp32-camera运行实例程序报PSRAM ID错误
Replies: 2
Views: 7148

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 ...