-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
Type: QuestionOnly questionOnly question
Description
Board
ESP32 Dev Module
Device Description
Devkit
Hardware Configuration
No connection
Version
v2.0.11
IDE Name
Platformio & Arduino Framework
Operating System
win 10
Flash frequency
40
PSRAM enabled
no
Upload speed
115200
Description
I want to read/write 3 byte data to Efuse memory with the program code. After writing the data, when I restart and read again, the data is lost. I'm adding the links I got reference below.
I thought I should call the esp_efuse_burn_new_values() function after the writing process, but when I call this function, I cannot read the data I wrote.
I don't understand what should I do? I am requesting your support.
https://esp32.com/viewtopic.php?t=5742
#2556
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/efuse.html
https://www.espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf#efuse
Sketch
#include "Arduino.h"
#include <soc/efuse_reg.h>
#include "esp_efuse.h"
void setup()
{
Serial.begin(115200);
Serial.println();
Serial.println("EFUSE TEST");
uint32_t data_1;
uint32_t data_2 = 0xF1F2F3F4;
uint32_t data_3;
Serial.print("WILL BE WRTIE : ");
Serial.println(data_2, HEX);
data_1 = REG_READ(EFUSE_BLK1_WDATA7_REG);
Serial.print("[OLD] BLK DATA : ");
Serial.println(data_1, HEX);
//esp_efuse_reset();
REG_WRITE(EFUSE_BLK1_WDATA7_REG,data_2);
//esp_efuse_burn_new_values();
data_3 = REG_READ(EFUSE_BLK1_WDATA7_REG);
Serial.print("[NEW] BLK1 DATA : ");
Serial.println(data_3, HEX);
}Debug Message
// Serial Output
EFUSE TEST
WILL BE WRTIE : F1F2F3F4
[OLD] BLK DATA : 0
[NEW] BLK1 DATA : F1F2F3F4
// Serial Output Second attemp with esp_efuse_burn_new_values()
WILL BE WRTIE : F1F2F3F4
[OLD] BLK DATA : 0
[NEW] BLK1 DATA : 0
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Type: QuestionOnly questionOnly question