Missing includes in bootloader_override example

fmikulu
Posts: 1
Joined: Mon Nov 25, 2024 3:40 pm

Missing includes in bootloader_override example

Postby fmikulu » Mon Nov 25, 2024 4:47 pm

I want to handle secure boot v2 error when application signature is invalid. The default bootloader just calls abort() and restart boot. So it cycles in restarts. I would like to force it to stay in some defined state.g. light sleep.
I tried to use bootloader override of bootloader_utility.c but end up with linker error:

bootloader_components/main/bootloader_utility.c:932:(.text.bootloader_utility_load_boot_image+0x3c): undefined reference to `esp_light_sleep_start'

What is necessary to add to CMakeLists.txt to link missing reference? Does it make sense to enhance bootloader this way at all? Thanks for advises.

Who is online

Users browsing this forum: No registered users and 77 guests