You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BOOTLOADER_BUILD definition is present in source code
to define whether flash access (read/write/erase) are
done using ROM apis or not.
In esp-idf, where 2nd stage bootloader does not run on top
of FreeRTOS, all flash access are performed over ROM calls.
In Zephyr, there are 2 possible scenarios for code initialization:
Using Simple Boot or MCUBoot.
MCUBoot is a Zephyr application that requires flash APIs (not ROM)
to be available for all operations.
Simple Boot bootloader is part of the application and requires
flash access using ROM API, otherwise it can't read data properly.
Instead of using BOOTLOADER_BUILD as a definition to allow
both bootloaders to be used, we can create a custom
bootloader_flash.c file and append "_rom" for flash calls
used in Simple Boot.
Signed-off-by: Sylvio Alves <[email protected]>
0 commit comments