Page 1 of 1

Help on eFuse

Posted: Thu Sep 22, 2022 7:59 pm
by ifoxbr
Hello,

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
    }
}

Re: Help on eFuse

Posted: Fri Sep 23, 2022 9:28 am
by mikemoy
Why don't you just change it in menuconfig ?

Re: Help on eFuse

Posted: Fri Sep 23, 2022 1:44 pm
by ifoxbr
In MenuConfig when set "Permanent disable logging", still have messages on Uart0.
After displaying eFuses values using "espefuse --port COMx summary", I see UART_PRINT_CONTROL -> DISABLED (b11)
But even disabled, Uart0 displays some messages on UART0

Regards