Steps to reproduce the problem
- Create a new application based on the Matter Light Switch example of the SDK 3.0.2
- In prj.conf set CONFIG_CHIP_FACTORY_DATA_BUILD=n
- Create a build configuration using SDK 3.0.2 and toolchain 3.0.2, choose any board
- Compile the application
Expected result
- The application builds successfully, but no factory data is generated.
Actual result
- The application build fails trying to generate factory data.
Matter library build complete [506/506] Linking CXX executable zephyr/zephyr.elf Memory region Used Size Region Size %age Used FLASH: 791644 B 982528 B 80.57% RAM: 170120 B 256 KB 64.90% IDT_LIST: 0 GB 32 KB 0.00% Generating files from /home/ubuntu/ncs/projects/light_switch/build/light_switch/zephyr/zephyr.elf for board: nrf52840dk image.py: sign the payload image.py: sign the payload [11/23] Generating new Factory Data... FAILED: light_switch/zephyr/factory_data.hex /home/ubuntu/ncs/projects/light_switch/build/light_switch/zephyr/factory_data.hex cd /home/ubuntu/ncs/projects/light_switch/build/_sysbuild && /home/ubuntu/ncs/toolchains/7cbc0036f4/usr/local/bin/python3.12 /home/ubuntu/ncs/v3.0.2/modules/lib/matter/scripts/tools/nrfconnect/generate_nrfconnect_chip_factory_data.py --sn 11223344556677889900 --date 2022-01-01 --vendor_id 65521 --product_id 32772 --vendor_name Nordic\ Semiconductor\ ASA --product_name not-specified --hw_ver 0 --hw_ver_str prerelease --spake2_it 1000 --spake2_salt U1BBS0UyUCBLZXkgU2FsdA== --discriminator 0xF00 --passcode 20202021 --include_passcode --overwrite --spake2_verifier uWFwqugDNGiEck/po7KHwwMwwqZgN10XuyBajPGuyzUEV/iree4lOrao5GuwnlQ65CJzbeUB49s31EH+NEkg0JVI5MGCQGMMT/SRPFNRODm3wH/MBiehuFc6FJ/NH6Rmzw== --product_finish other --enable_key 00112233445566778899AABBCCDDEEFF -o /home/ubuntu/ncs/projects/light_switch/build/light_switch/zephyr/factory_data -s /home/ubuntu/ncs/v3.0.2/modules/lib/matter/scripts/tools/nrfconnect/nrfconnect_factory_data.schema --offset 0xf7000 --size 0xf7000 [ERROR] Cannot find paths to DAC or PAI certificates .der files. To generate a new ones please provide a path to chip-cert executable (--chip_cert_path) and add --gen_certs argument ninja: build stopped: subcommand failed.
Further comments
- This used to work with older SDKs and toolchains. The last version that I tried was 2.9.1 - there it was working fine.