Skip to content

Commit 63d4a5a

Browse files
committed
modules: hal_nxp: build flexspi and mflash for FW dump case
Build flexspi and mflash to support save the FW dump into flash for debug purpose. Signed-off-by: Maochen Wang <[email protected]>
1 parent ef62f91 commit 63d4a5a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

modules/hal_nxp/mcux/mcux-sdk-ng/components/components.cmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ if(CONFIG_WIFI_NXP)
66
set(CONFIG_MCUX_COMPONENT_component.wifi_bt_module.tx_pwr_limits ON)
77
endif()
88

9+
if(CONFIG_NXP_WIFI_FW_DEBUG)
10+
set(CONFIG_MCUX_COMPONENT_component.mflash_offchip ON)
11+
set(CONFIG_MCUX_COMPONENT_driver.flexspi ON)
12+
endif()
13+
914
if(CONFIG_NXP_FW_LOADER AND NOT CONFIG_BUILD_WITH_TFM)
1015
set(CONFIG_MCUX_COMPONENT_driver.conn_fwloader ON)
1116
set(CONFIG_USE_component_osa_zephyr ON)
@@ -84,3 +89,9 @@ if(${MCUX_DEVICE} MATCHES "RW61")
8489
${CMAKE_CURRENT_BINARY_DIR}/flash/mflash
8590
)
8691
endif()
92+
93+
if(${MCUX_DEVICE} MATCHES "MIMXRT1062")
94+
add_subdirectory(${MCUX_SDK_NG_DIR}/components/flash/mflash/evkcmimxrt1060
95+
${CMAKE_CURRENT_BINARY_DIR}/flash/mflash
96+
)
97+
endif()

0 commit comments

Comments
 (0)