Where are fuse settings in esptool command?

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Where are fuse settings in esptool command?

Postby zliudr » Wed Jan 22, 2020 4:23 am

I was wondering if fuse settings such as the cpu frequency etc. are separately stored from program code or with the app .bin file. Because the command that flashes firmware doesn't include anything that looks like fuse settings:

Code: Select all

python /home/user/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port COM32 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x10000 /home/user/esp/Projects/test/build/test.bin
I never thought about this till today :) I know now that partition table and bootloader both can be flashed if I make with flash option or just app if I do app-flash.

Thanks!


zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Re: Where are fuse settings in esptool command?

Postby zliudr » Sat Feb 01, 2020 4:53 pm

Thanks chegewara. So I read the list of commands/fuse bits and I think that the efuse has nothing to do with what I'm concerned with such as CPU speed etc.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Where are fuse settings in esptool command?

Postby ESP_Angus » Sun Feb 02, 2020 10:31 pm

zliudr wrote:
Sat Feb 01, 2020 4:53 pm
Thanks chegewara. So I read the list of commands/fuse bits and I think that the efuse has nothing to do with what I'm concerned with such as CPU speed etc.
That's correct. Almost all the project settings are compiled into the firmware binary file which is written to flash, nothing else needs to be done. Efuses are write-once settings related to low-level chip configuration, security features, or persistent storage inside the chip.

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Re: Where are fuse settings in esptool command?

Postby zliudr » Mon Feb 03, 2020 8:32 pm

ESP_Angus wrote:
Sun Feb 02, 2020 10:31 pm
zliudr wrote:
Sat Feb 01, 2020 4:53 pm
Thanks chegewara. So I read the list of commands/fuse bits and I think that the efuse has nothing to do with what I'm concerned with such as CPU speed etc.
That's correct. Almost all the project settings are compiled into the firmware binary file which is written to flash, nothing else needs to be done. Efuses are write-once settings related to low-level chip configuration, security features, or persistent storage inside the chip.
That clarified everything! I'll worry about efuses towards the final stage of my project then. Thanks.

Who is online

Users browsing this forum: No registered users and 100 guests