I need help to be able to read and write the efuse UART_PRINT_CONTROL.
This eFuse is responsible for sending booting messages using UART0 at startup, but I have a printer conected on Uart0.
I used the following code to read this eFuse, but ESP-IDF crashes on PANIC.
I would be very grateful if anyone can help
Regards
Code: Select all
int turns_off_boot_messages(void)
{
// Read UART_PRINT_CONTROL eFuse
uint32_t FUSE = esp_efuse_read_reg(EFUSE_BLK0, ESP_EFUSE_UART_PRINT_CONTROL);
// If Zero, change do 3
if(FUSE == 0)
{
esp_err_t ret = esp_efuse_write_reg(EFUSE_BLK0, ESP_EFUSE_UART_PRINT_CONTROL, 0x03);
if(ret == 0)
ret = 1; // done
else
ret = 0; // error
}
}