Hi nordic:
Project MCU: NRF54L05;
Development Platform Version: NCS 2.9.0.
The APP occupies 220KB of space.
adding MCUBOOT and Create an pm_static.yml file in the project path.
the build fails with the following error.
Could you please help me check if there's anything incorrect in the pm_static.yml file?
The content of pm_static.yml is as follows:
mcuboot:
address: 0x00000
region: flash_primary
size: 0xC000 # 48KB
mcuboot_pad:
address: 0x0C000
region: flash_primary
size: 0x1000 # 4KB pad,地址对齐
app:
address: 0x0D000
region: flash_primary
size: 0x37000 # 220KB app
mcuboot_primary:
orig_span: &id001
- mcuboot_pad
- app
span: *id001
address: 0x0C000
region: flash_primary
size: 0x38000 # 4KB pad + 220KB app
mcuboot_primary_app:
orig_span: &id002
- app
span: *id002
address: 0x0D000
region: flash_primary
size: 0x37000
mcuboot_secondary:
address: 0x44000 #
orig_span: &id003
- mcuboot_secondary_pad
- mcuboot_secondary_app
region: flash_primary
size: 0x38000 #
span: *id003
mcuboot_secondary_pad:
region: flash_primary
address: 0x44000
size: 0x1000
mcuboot_secondary_app:
region: flash_primary
address: 0x45000
size: 0x37000
settings_storage:
address: 0x7C000 #
region: flash_primary
size: 0x2000 # 8KB
-- Configuring done
-- Generating done
-- Build files have been written to: F:/MCU/v2.9.0/pro/jxt_flash/build_1/jxt_flash
-- Found partition manager static configuration : F:/MCU/v2.9.0/pro/jxt_flash/pm_static.yml
Traceback (most recent call last):
File "F:\MCU\v2.9.0\nrf\scripts\partition_manager.py", line 2045, in <module>
main()
File "F:\MCU\v2.9.0\nrf\scripts\partition_manager.py", line 1024, in main
static_config = load_static_configuration(args, pm_config) if args.static_config else dict()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\MCU\v2.9.0\nrf\scripts\partition_manager.py", line 985, in load_static_configuration
static_config = yaml.safe_load(args.static_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\yaml\__init__.py", line 125, in safe_load
return load(stream, SafeLoader)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\yaml\__init__.py", line 79, in load
loader = Loader(stream)
^^^^^^^^^^^^^^
File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\yaml\loader.py", line 34, in __init__
Reader.__init__(self, stream)
File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\yaml\reader.py", line 85, in __init__
self.determine_encoding()
File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\yaml\reader.py", line 124, in determine_encoding
self.update_raw()
File "C:\ncs\toolchains\b620d30767\opt\bin\Lib\site-packages\yaml\reader.py", line 178, in update_raw
data = self.stream.read(size)
^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 197: illegal multibyte sequence
CMake Error at F:/MCU/v2.9.0/nrf/cmake/sysbuild/partition_manager.cmake:167 (message):
Partition Manager failed, aborting. Command:
C:/ncs/toolchains/b620d30767/opt/bin/python.exe;F:/MCU/v2.9.0/nrf/scripts/partition_manager.py;--input-files;F:/MCU/v2.9.0/pro/jxt_flash/build_1/mcuboot/zephyr/include/generated/pm.yml;F:/MCU/v2.9.0/pro/jxt_flash/build_1/jxt_flash/zephyr/include/generated/pm.yml;--regions;sram_primary;flash_primary;--output-partitions;F:/MCU/v2.9.0/pro/jxt_flash/build_1/partitions.yml;--output-regions;F:/MCU/v2.9.0/pro/jxt_flash/build_1/regions.yml;--static-config;F:/MCU/v2.9.0/pro/jxt_flash/pm_static.yml;--sram_primary-size;0x30000;--sram_primary-base-address;0x20000000;--sram_primary-placement-strategy;complex;--sram_primary-dynamic-partition;sram_primary;--flash_primary-size;0xff800;--flash_primary-base-address;0x0;--flash_primary-placement-strategy;complex;--flash_primary-device;rram_controller;--flash_primary-default-driver-kconfig;CONFIG_SOC_FLASH_NRF_RRAM
Call Stack (most recent call first):
F:/MCU/v2.9.0/nrf/cmake/sysbuild/partition_manager.cmake:634 (partition_manager)
F:/MCU/v2.9.0/nrf/sysbuild/CMakeLists.txt:703 (include)
cmake/modules/sysbuild_extensions.cmake:583 (nrf_POST_CMAKE)
cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
cmake/modules/sysbuild_images.cmake:23 (sysbuild_module_call)
cmake/modules/sysbuild_default.cmake:20 (include)
F:/MCU/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
F:/MCU/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
F:/MCU/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
See also "F:/MCU/v2.9.0/pro/jxt_flash/build_1/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/b620d30767/opt/bin/python.exe '-Bf:\MCU\v2.9.0\pro\jxt_flash\build_1' -GNinja -DBOARD=nrf54l15dk/nrf54l10/cpuapp -DNCS_TOOLCHAIN_VERSION=NONE '-SF:\MCU\v2.9.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=f:\MCU\v2.9.0\pro\jxt_flash'
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
jermi.jin
