/* Hello World Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_spi_flash.h"
#define DATA_LEN 100
static void echo_task1()
{
int data[DATA_LEN] = { 1 };
printf("%p \n", &data[0]);
for(int i=0; i < DATA_LEN; i++) {
data[i] = 100;
// printf("-data[i]-%d--%d----\r\n", i, data[i]);
}
while(1) {
for(int i=0; i < DATA_LEN; i++) {
printf("-d
esp32 上构造当前 task 栈内存被程序别的地方踩踏引起的 crash
最新推荐文章于 2023-11-10 22:30:52 发布
本文探讨了ESP32微控制器中遇到的一个问题,即当前任务栈内存被其他程序部分错误地占用,从而引起系统崩溃。通过对现象的深入分析,揭示了栈内存管理的潜在风险及其对系统稳定性的影响。
摘要由CSDN通过智能技术生成