Hi,
When following the instructions: https://docs.espressif.com/projects/esp ... ot-v2.html (ESP32/Master updates to ESP-IDF v5.0-dev-1715-g229ed0848), I read:
"Run idf.py bootloader to build a Secure Boot enabled bootloader. The build output will include a prompt for a flashing command, using esptool.py write_flash."
When I run this command (of course after setting rev3/secure v2 menuconfig and with a correct .pem file etc) I see this:
idf.py bootloader
Executing action: bootloader
Running ninja in directory c:\projects\xx\build
Executing "ninja bootloader"...
[1/3] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D C:\projects\xx\build\bootloader\esp-idf\esptool_py && C:\Espressif\tools\python_env\idf5.0_py3.8_env\Scripts\python.exe C:/Espressif/esp-idf/components/partition_table/check_sizes.py --offset 0x10000 bootloader 0x1000 C:/projects/xx/build/bootloader/bootloader.bin"
Bootloader binary size 0x9000 bytes. 0x6000 bytes (40%) free.
Bootloader build complete.
So, where is the mentioned flashing command?
[Solved] Secure boot v2 missing bootloader flashing command
Re: Secure boot v2 missing bootloader flashing command
And..... solved myself, stupid of me! I thought the idf.py bootloader command would supply the flashing command... Its was the idf.py build command!
Now it works lovely.
C:/Espressif/tools/python_env/idf5.0_py3.8_env/Scripts/python.exe C:/Espressif/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port=COM9 --baud=115200 --before=default_reset --after=no_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 8MB 0x1000 C:/projects/xx/build/bootloader/bootloader.bin
Now it works lovely.
C:/Espressif/tools/python_env/idf5.0_py3.8_env/Scripts/python.exe C:/Espressif/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port=COM9 --baud=115200 --before=default_reset --after=no_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 8MB 0x1000 C:/projects/xx/build/bootloader/bootloader.bin
Who is online
Users browsing this forum: ChatGPT-User and 7 guests