Skip to content

NXP missing board.h file in fsl_flexspi_nor_boot.h #59280

Answered by DerekSnell
DerekSnell asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Nadav,

Zephyr is about to release v3.4, so I am currently working from the tag v3.4.0-rc3. I was able to build the MCUboot application for the board mimxrt1170_evk_cm7 using the command below:

west build -b mimxrt1170_evk_cm7 ../bootloader/mcuboot/boot/zephyr

Modifying this example, I found the board.h reference in fsl_flexspi_nor_boot.h is not included. I confirmed this by renaming this board.h file, and the app still builds. The reason it is not included is the macro BOARD_FLASH_SIZE is defined.

Search the Zephyr tree for the BOARD_FLASH_SIZE macro, it is defined in the board's CMakeLists.txt file, using the line below:

zephyr_compile_definitions(BOARD_FLASH_SIZE=CONFIG_FLASH_SIZE*1…

Replies: 1 comment 1 reply

Comment options

DerekSnell
Jun 15, 2023
Collaborator Author

You must be logged in to vote
1 reply
@nadavdw
Comment options

Answer selected by DerekSnell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants