File tree Expand file tree Collapse file tree 6 files changed +1158
-0
lines changed Expand file tree Collapse file tree 6 files changed +1158
-0
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,5 @@ zephyr_library_sources_ifdef(CONFIG_SOC_NRF54H20_NO_MRAM_LATENCY mram.c)
1818# for the image correctly
1919zephyr_linker_sources(SECTIONS SORT_KEY zzz_place_align_at_end align.ld)
2020
21+ add_subdirectory (bicr)
2122add_subdirectory (gpd)
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ config SOC_NRF54H20_CPUPPR
6464config SOC_NRF54H20_CPUFLPR
6565 depends on RISCV_CORE_NORDIC_VPR
6666
67+ rsource "bicr/Kconfig"
6768rsource "gpd/Kconfig"
6869
6970config SOC_NRF54H20_NO_MRAM_LATENCY
Original file line number Diff line number Diff line change 1+ if (CONFIG_SOC_NRF54H20_GENERATE_BICR)
2+ set (bicr_json_file ${BOARD_DIR} /bicr.json)
3+ set (bicr_hex_file ${PROJECT_BINARY_DIR} /bicr.hex)
4+ set (svd_file ${ZEPHYR_HAL_NORDIC_MODULE_DIR} /nrfx/mdk/nrf54h20_application.svd)
5+
6+ if (EXISTS ${bicr_json_file} )
7+ set_property (DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${bicr_json_file} )
8+
9+ execute_process (
10+ COMMAND
11+ ${Python3_EXECUTABLE}
12+ ${CMAKE_CURRENT_LIST_DIR} /bicrgen.py
13+ --svd ${svd_file}
14+ --input ${bicr_json_file}
15+ --output ${bicr_hex_file}
16+ WORKING_DIRECTORY ${BOARD_DIR}
17+ COMMAND_ERROR_IS_FATAL ANY
18+ )
19+ message (STATUS "Generated BICR hex file: ${bicr_hex_file} " )
20+ endif ()
21+ endif ()
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2024 Nordic Semiconductor
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ config SOC_NRF54H20_GENERATE_BICR
5+ bool "Generate nRF54H20 BICR file"
6+ depends on SOC_NRF54H20_CPUAPP
7+ default y
8+ help
9+ This option generates a BICR file for the board being used. Board
10+ directory must contain a "bicr.json" file for this option to work.
You can’t perform that action at this time.
0 commit comments