Hello, Currently both m7 and m4 core FW is stored in QSPI flash FlexSPI1 0x30000000. First M7 boots up and then it start the core M4 by coping image from QPSI to alias of 0x20200000. All working fine.
Now I want to add custom bootloader which will boot the M7 core based on certain validation and post M7 will boot m4. Also will be take care of OTA of M7/M4 or both firmware.
Do you have any standard Secondary bootloader code? please share for reference.
Thanks
Please refer to the ota_examples/mcuboot_opensource or mcboot_basic examples to find more details including secondary stage bootloader.
Please refer to README.md firstly if you have RT1170 EVKB board and NXP offical SDK.