@@ -635,7 +635,7 @@ For example, the build command for the nRF52840 DK could look like this:
635
635
```
636
636
$ west build -b nrf52840dk_nrf52840 -- \
637
637
-DCONFIG_CHIP_FACTORY_DATA=y \
638
- -DCONFIG_CHIP_FACTORY_DATA_BUILD =y \
638
+ -DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE =y \
639
639
-DCONFIG_CHIP_FACTORY_DATA_GENERATE_ONBOARDING_CODES=y
640
640
```
641
641
@@ -783,10 +783,10 @@ directory and build the example with the following option (replace
783
783
`nrf52840dk_nrf52840` with your board name):
784
784
785
785
```
786
- $ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y -DCONFIG_CHIP_FACTORY_DATA_BUILD =y
786
+ $ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y -DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE =y
787
787
```
788
788
789
- Alternatively, you can also add `CONFIG_CHIP_FACTORY_DATA_BUILD =y` Kconfig
789
+ Alternatively, you can also add `SB_CONFIG_MATTER_FACTORY_DATA_GENERATE =y` Kconfig
790
790
setting to the example's `prj.conf` file.
791
791
792
792
Each factory data parameter has a default value. These are described in the
@@ -802,7 +802,7 @@ them as an additional option for the west command. For example (replace
802
802
`nrf52840dk_nrf52840` with own board name):
803
803
804
804
```
805
- $ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y --DCONFIG_CHIP_FACTORY_DATA_BUILD =y --DCONFIG_CHIP_DEVICE_DISCRIMINATOR=0xF11
805
+ $ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y --DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE =y --DCONFIG_CHIP_DEVICE_DISCRIMINATOR=0xF11
806
806
```
807
807
808
808
Alternatively, you can add the relevant Kconfig option lines to the example's
@@ -916,32 +916,32 @@ $ nrfjprog --family NRF52 --program factory_data.hex
916
916
```
917
917
918
918
> Note: For more information about how to use the `nrfjprog` utility, visit
919
- > [Nordic Semiconductor's Infocenter ](https://infocenter .nordicsemi.com/index.jsp?topic=%2Fug_nrf_cltools%2FUG%2Fcltools%2Fnrf_nrfjprogexe. html).
919
+ > [Programming SoCs with nrfjprog ](https://docs .nordicsemi.com/bundle/ug_nrf_cltools/page/UG/cltools/nrf_nrfjprogexe. html)
920
920
921
921
Another way to program the factory data to a device is to use the nRF Connect
922
922
platform build system described in
923
923
[Building an example with factory data](#building-an-example-with-factory-data),
924
924
and build an example with the additional option
925
- `-DCONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE =y`:
925
+ `-DSB_CONFIG_MATTER_FACTORY_DATA_MERGE_WITH_FIRMWARE =y`:
926
926
927
927
```
928
928
$ west build -b nrf52840dk_nrf52840 -- \
929
929
-DCONFIG_CHIP_FACTORY_DATA=y \
930
- -DCONFIG_CHIP_FACTORY_DATA_BUILD =y \
931
- -DCONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE =y
930
+ -DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE =y \
931
+ -DSB_CONFIG_MATTER_FACTORY_DATA_MERGE_WITH_FIRMWARE =y
932
932
```
933
933
934
934
You can also build an example with auto-generation of new CD, DAC and PAI
935
935
certificates. The newly generated certificates will be added to factory data set
936
936
automatically. To generate new certificates disable using default certificates
937
937
by building an example with the additional option
938
- `-DCHIP_FACTORY_DATA_USE_DEFAULT_CERTS =n`:
938
+ `-DCONFIG_CHIP_FACTORY_DATA_USE_DEFAULT_CERTS =n`:
939
939
940
940
```
941
941
$ west build -b nrf52840dk_nrf52840 -- \
942
942
-DCONFIG_CHIP_FACTORY_DATA=y \
943
- -DCONFIG_CHIP_FACTORY_DATA_BUILD =y \
944
- -DCONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE =y \
943
+ -DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE =y \
944
+ -DSB_CONFIG_MATTER_FACTORY_DATA_MERGE_WITH_FIRMWARE =y \
945
945
-DCONFIG_CHIP_FACTORY_DATA_USE_DEFAULT_CERTS=n
946
946
```
947
947
0 commit comments