/*
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 "esp_system.h"
#include "spi_flash.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#define STRLEN 4096
#define SECTOR_NUMBER 0
char data[STRLEN] = { 0 };
char read_data[STRLEN] = { 0 };
/******************************************************************************
* FunctionName : app_main
* Description : entry of user application, init user function here
* Parameters : none
* Returns : none
*******************************************************************************/
static void erase_and_read_task()
{
esp_err_t err;
int read_and_erase_times = 0;
for (int i = 0; i
esp8266 检查是否触发看门狗 demo
最新推荐文章于 2023-09-27 05:00:30 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)