乐鑫技术交流
直播中

云中云

9年用户 1016经验值
私信 关注
[问答]

ESP32 IDF 4.3创建任务使用外部PSRAM分配内存,在任务里操作FLASH死机是什么原因?

ESP32 IDF 4.3 创建任务使用外部PSRAM分配内存,在任务里操作FLASH一定会死机,请问是什么原因或者有这种限制吗



static StaticTask_t xTaskBuffer;

static EXT_RAM_ATTR StackType_t xStack[ 4096 ]; //静态缓存声明到外部RAM



xHandle = xTaskCreateStatic(

                  test,       // Function that implements the task.

                  "test",          // Text name for the task.

                  4096,      // Stack size in bytes, not words.

                  NULL,    // Parameter passed into the task.

                  5,// Priority at which the task is created.

                  xStack,          // Array to use as the task's stack.

                  &xTaskBuffer );  // Variable to hold the task's data structure.



void test()

{

     操作flash就死机

}

更多回帖

发帖
×
20
完善资料,
赚取积分