Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for XIP from FlexSPI on MCXN947 #72905

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mmahadevan108
Copy link
Collaborator

This PR requires a bootloader like MCUboot to be programmed to internal flash which will load and execute the Zephyr application from QSPI.
PR: mcu-tools/mcuboot#1961 to update MCUboot for this QSPI variant

@zephyrbot
Copy link
Collaborator

zephyrbot commented May 16, 2024

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_nxp zephyrproject-rtos/hal_nxp@5e84f1d zephyrproject-rtos/hal_nxp#390 zephyrproject-rtos/hal_nxp#390/files

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_nxp DNM This PR should not be merged (Do Not Merge) labels May 16, 2024
@hakehuang
Copy link
Collaborator

it does not work on my board, see below steps:

  1. build mcuboot
west build -s boot/zephyr -b frdm_mcxn947/mcxn947/cpu0/qspi
  1. flash the bootload
west flash --runner=linkserver -- "--probe="2FFNMNKFWMLA0""
ubuntu@ubuntu-OptiPlex-7040:~/nxp/frdm_mcxn947/bootloader/mcuboot$ west flash --runner=linkserver -- "--probe="2FFNMNKFWMLA0""
-- west flash: rebuilding
ninja: no work to do.
-- west flash: using runner linkserver
-- runners.linkserver: LinkServer: /usr/local/LinkServer/LinkServer, version v1.5.30
INFO: Exact match for MCXN947:FRDM-MCXN947 found
INFO: Selected device MCXN947:FRDM-MCXN947
INFO: Getting available probes
INFO: Selecting probe by serial substring
INFO: Selected probe #1 2FFNMNKFWMLA0 (MCU-LINK on-board (r0C7) CMSIS-DAP V3.140)
INFO: MCU-Link firmware update CHECK: local firmware [3.140] is the same with the version running on the selected probe ([2FFNMNKFWMLA0] [MCU-LINK on-board (r0C7) CMSIS-DAP V3.140])

reset the boards, no console output

  1. build hello world
west build -b frdm_mcxn947/mcxn947/cpu0/qspi samples/hello_world/ -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE=\"bootloader/mcuboot/root-rsa-2048.pem\" -DCONFIG_BOOTLOADER_MCUBOOT=y -p always

and flash again

reset board still no output

@PetervdPerk-NXP
Copy link
Collaborator

PetervdPerk-NXP commented May 17, 2024

Can we also add support to link code directly to the XIP region?
Right now there's only the onboard FLASH region

[135/135] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       28292 B         2 MB      1.35%
             RAM:        4248 B       320 KB      1.30%
           SRAM1:          0 GB        96 KB      0.00%
        IDT_LIST:          0 GB        32 KB      0.00%

Ideally you want be able to use both

[135/135] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           ONBOARD_FLASH:       28292 B         2 MB      1.35%
           EXTERNAL_FLASH:       28292 B         8 MB      1.35%
             RAM:        4248 B       320 KB      1.30%
           SRAM1:          0 GB        96 KB      0.00%
        IDT_LIST:          0 GB        32 KB      0.00%

((CONFIG_FLASH_BASE_ADDRESS) < (DT_REG_ADDR_BY_IDX(node_id, 1) + \
DT_REG_SIZE_BY_IDX(node_id, 1)))

#define MEMC_FLEXSPI_CFG_XIP(node_id) true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CONFIG_FLASH_MCUX_FLEXSPI_XIP does not do the same thing as the code being removed here. The key difference is that CONFIG_FLASH_MCUX_FLEXSPI_XIP simply indicates that one of the FLEXSPI devices is being used for XIP. This check was added for parts like the iMXRT1xxx or iMXRT5xx, which have multiple FLEXSPI devices. For these systems, the FLEXSPI being used for XIP should not be initialized, but the other FLEXSPI must be initialized, as the bootloader will not have configured it.

I'm confused why this check wouldn't work for the MCXN use case. Shouldn't the image targeting external flash be built with CONFIG_FLASH_BASE_ADDRESS within the FLEXSPI region?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit adding these overlay files should come after the one adding support for the board, right?

Also, the commits follow this one are split based on which sample they are adding support for. I think we should organize commits like so:

  • Commit adding baseline support for QSPI variant
  • Commits adding support for features on the QSPI variant, which add sample/test overlays for that feature (and update the YAML file for the variant)

compatible = "nxp,mcxn947", "nxp,mcx";

chosen {
zephyr,flash = &w25q64jvssiq;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on this, CONFIG_FLASH_BASE_ADDRESS should be in the FLEXSPI XIP region- so I am unclear why we need to change the XIP check in the MEMC flexspi driver

- zephyr
- gnuarmemb
- xtools
supported:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in my other comment, I think we should first introduce baseline support for this variant in a commit early in this PR, then add support for features in follow up commits (along with the requisite YAML changes)

@kartben kartben assigned dleach02 and unassigned kartben May 23, 2024
@dleach02
Copy link
Member

dleach02 commented May 29, 2024

@mmahadevan108 mcu-tools/mcuboot#1961 merged but I guess now we need to ensure that the Zephyr version of mcuboot is updated for this PR to work? Should we do that in this PR as well (coordinating with @d3zd3z)

Also, I rebased your branch to address the merge conflict

Get the fixes made to the NXP SDK CACHE64 driver

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
The CONFIG_FLASH_MCUX_FLEXSPI_XIP Kconfig is doing the same thing
as the code.
Also removing the code gives the flexibilily of XIP'ing from the
a different aliased address that maybe available on some SOC's.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
Include compile of the flash file when FlexSPI_XIP is enabled
even when the FlexSPI driver is not enabled.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
Add config and overlay files for the QSPI variant of the
NXP FRDM-MCXN947 board

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
- Add overlay for the FRDM MCXN947 qspi variant
- Fix the overlay file name for the default variant

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
Add overlay for the QSPI variant of FRDM-MCXN947

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
1. The boards always boots from internal flash. However it does
have an external QSPI that can be used to store Zephyr.
Add a variant to support running Zephyr from QSPI Flash.
Running Zephyr from QSPI requires a bootloader like MCUboot
to be pogrammed to internal flash.
2. Create a common dts file to add features that are enabled for
CPU 0 that is included by both vairants i.e internal flash (default)
and QSPI variant.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
1. Enable CACHE64 block used by FlexSPI.
2. LPCAC cache is already enabled by SystemInit which
   is called earlier
3. Configure the FlexSPI clock when running in XIP mode
   as we cannot rely on the driver setting this up as it
   may not be enabled.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
@hakehuang
Copy link
Collaborator

@mmahadevan108 , I switch to the mcuboot commit that has your commit

commit 45d379e715d82ae71ce2bb42882769a4cf4428e4 (HEAD -> main, origin/main)
Author: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
Date:   Thu Apr 25 09:42:12 2024 -0500

    zephyr: boards: Add files needed for NXP FRDM MCXN947 QSPI variant

    1. set BOOT_MAX_IMG_SECTORS value for frmd_mcxn947_qspi. W25Q64 flash on the board
       is very large (8MB), so we must increase the number of max sectors when
       targeting this board with MCUboot.
    2. Set the zephyr,flash chosen node to point to internal flash as this board
       supports booting from internal flash only.

    Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>

with below command line with this zephyr PR source I get

west build -s boot/zephyr -b frdm_mcxn947/mcxn947/cpu0/qspi
In file included from /home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/include/bootutil/bootutil.h:33,
                 from /home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c:36:
/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/include/bootutil/bootutil_public.h:89:1: error: static assertion failed: "Unsupported value for MCUBOOT_BOOT_MAX_ALIGN for SWAP upgrade modes"
   89 | _Static_assert(MCUBOOT_BOOT_MAX_ALIGN >= 8 && MCUBOOT_BOOT_MAX_ALIGN <= 32,
      | ^~~~~~~~~~~~~~
[55/287] Building C object CMakeFiles/app.dir/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c.obj
FAILED: CMakeFiles/app.dir/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c.obj
ccache /home/ubuntu/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DCPU_MCXN947VDF_cm33_core0 -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DLPFLEXCOMM_INIT_NOT_USED_IN_DRIVER=1 -DMBEDTLS_CONFIG_FILE=\"mcuboot-mbedtls-cfg.h\" -DNDEBUG -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/zephyr/include -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/zephyr/targets -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/include -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/build/zephyr/include/generated/zephyr -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/include -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/build/zephyr/include/generated -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/soc/nxp/mcx -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/soc/nxp/mcx/mcxnx4x/. -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/cmsis/CMSIS/Core/Include -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/modules/cmsis/. -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947 -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947/drivers -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/ostimer -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpuart -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/flexspi -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_spc -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/cache64 -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi/flash -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/port -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/modules/hal_nxp/. -I/home/ubuntu/nxp/frdm_mcxn947/modules/crypto/mbedtls/include -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/modules/mbedtls/configs -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/modules/mbedtls/include -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/zephyr/.. -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/zephyr/../include -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem /home/ubuntu/nxp/frdm_mcxn947/zephyr/lib/libc/minimal/include -isystem /home/ubuntu/nxp/frdm_mcxn947/zephyr/lib/libc/common/include -isystem /home/ubuntu/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem /home/ubuntu/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -fno-strict-aliasing -Os -imacros /home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/build/zephyr/include/generated/zephyr/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/home/ubuntu/zephyr-sdk-0.16.4/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/ubuntu/nxp/frdm_mcxn947/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/ubuntu/nxp/frdm_mcxn947/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/ubuntu/nxp/frdm_mcxn947=WEST_TOPDIR -ffunction-sections -fdata-sections -mcmse -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c.obj -MF CMakeFiles/app.dir/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c.obj.d -o CMakeFiles/app.dir/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c.obj -c /home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c
In file included from /home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/include/bootutil/bootutil.h:33,
                 from /home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c:24:
/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/include/bootutil/bootutil_public.h:89:1: error: static assertion failed: "Unsupported value for MCUBOOT_BOOT_MAX_ALIGN for SWAP upgrade modes"
   89 | _Static_assert(MCUBOOT_BOOT_MAX_ALIGN >= 8 && MCUBOOT_BOOT_MAX_ALIGN <= 32,
      | ^~~~~~~~~~~~~~
[56/287] Building C object CMakeFiles/app.dir/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/loader.c.obj
FAILED: CMakeFiles/app.dir/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/loader.c.obj
ccache /home/ubuntu/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DCPU_MCXN947VDF_cm33_core0 -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DLPFLEXCOMM_INIT_NOT_USED_IN_DRIVER=1 -DMBEDTLS_CONFIG_FILE=\"mcuboot-mbedtls-cfg.h\" -DNDEBUG -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/zephyr/include -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/zephyr/targets -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/include -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/build/zephyr/include/generated/zephyr -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/include -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/build/zephyr/include/generated -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/soc/nxp/mcx -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/soc/nxp/mcx/mcxnx4x/. -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/cmsis/CMSIS/Core/Include -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/modules/cmsis/. -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947 -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/devices/MCXN947/drivers -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/ostimer -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/lpflexcomm/lpuart -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/flexspi -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_spc -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/cache64 -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/mcx_romapi/flash -I/home/ubuntu/nxp/frdm_mcxn947/modules/hal/nxp/mcux/mcux-sdk/drivers/port -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/modules/hal_nxp/. -I/home/ubuntu/nxp/frdm_mcxn947/modules/crypto/mbedtls/include -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/modules/mbedtls/configs -I/home/ubuntu/nxp/frdm_mcxn947/zephyr/modules/mbedtls/include -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/zephyr/.. -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/zephyr/../include -I/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem /home/ubuntu/nxp/frdm_mcxn947/zephyr/lib/libc/minimal/include -isystem /home/ubuntu/nxp/frdm_mcxn947/zephyr/lib/libc/common/include -isystem /home/ubuntu/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem /home/ubuntu/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -fno-strict-aliasing -Os -imacros /home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/build/zephyr/include/generated/zephyr/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/home/ubuntu/zephyr-sdk-0.16.4/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/ubuntu/nxp/frdm_mcxn947/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/ubuntu/nxp/frdm_mcxn947/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/ubuntu/nxp/frdm_mcxn947=WEST_TOPDIR -ffunction-sections -fdata-sections -mcmse -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/loader.c.obj -MF CMakeFiles/app.dir/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/loader.c.obj.d -o CMakeFiles/app.dir/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/loader.c.obj -c /home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/loader.c
In file included from /home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/include/bootutil/bootutil.h:33,
                 from /home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/src/loader.c:39:
/home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/boot/bootutil/include/bootutil/bootutil_public.h:89:1: error: static assertion failed: "Unsupported value for MCUBOOT_BOOT_MAX_ALIGN for SWAP upgrade modes"
   89 | _Static_assert(MCUBOOT_BOOT_MAX_ALIGN >= 8 && MCUBOOT_BOOT_MAX_ALIGN <= 32,
      | ^~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/ubuntu/nxp/frdm_mcxn947/bootloader/mcuboot/build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNM This PR should not be merged (Do Not Merge) manifest manifest-hal_nxp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants