Secure Boot V2- not able to flash the built bootloader

jettyjett
Posts: 4
Joined: Fri Aug 14, 2020 1:23 pm

Secure Boot V2- not able to flash the built bootloader

Postby jettyjett » Thu Aug 20, 2020 1:53 pm

Hi everyone, I'm trying to activate Secure Boot V2 on my ESP32-WROOM-32E revision 3. Following the documentation and I'm stuck at step 6, https://docs.espressif.com/projects/esp ... re-boot-v2
after executing

Code: Select all

idf.py bootloader
I get the following error:

Code: Select all

Executing action: bootloader
Running ninja in directory /workspace/esp/hello_world/build
Executing "ninja bootloader"...
[1/3] Performing build step for 'bootloader'
ninja: no work to do.

Bootloader build complete. To flash, run this command:
Traceback (most recent call last):
  File "/workspace/esp/esp-idf/tools/idf.py", line 790, in <module>
    main()
  File "/workspace/esp/esp-idf/tools/idf.py", line 708, in main
    cli(sys.argv[1:], prog_name=PROG)
  File "/workspace/.espressif/python_env/idf4.3_py3.6_env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/workspace/.espressif/python_env/idf4.3_py3.6_env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/workspace/.espressif/python_env/idf4.3_py3.6_env/lib/python3.6/site-packages/click/core.py", line 1290, in invoke
    return _process_result(rv)
  File "/workspace/.espressif/python_env/idf4.3_py3.6_env/lib/python3.6/site-packages/click/core.py", line 1224, in _process_result
    value = ctx.invoke(self.result_callback, value, **ctx.params)
  File "/workspace/.espressif/python_env/idf4.3_py3.6_env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/workspace/esp/esp-idf/tools/idf.py", line 626, in execute_tasks
    self._print_closing_message(global_args, tasks_to_run.keys())
  File "/workspace/esp/esp-idf/tools/idf.py", line 514, in _print_closing_message
    print_flashing_message("Bootloader", "bootloader")
  File "/workspace/esp/esp-idf/tools/idf.py", line 477, in print_flashing_message
    cmd += flasher_args[key]["offset"] + " "
KeyError: 'bootloader'
I'm using --> IDF version : ESP-IDF v4.3-dev-907-g6c17e3a64

I can't therefore flash my bootloader. To my understanding this seems to be a problem with the SDK. Is there a workaround for it?

Who is online

Users browsing this forum: Baidu [Spider] and 61 guests