<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>52840 Can I burn the matter program?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102016/52840-can-i-burn-the-matter-program</link><description>Hi， 
 I would like to know if nrf52840 can burn a matter program like nrf5340, if so, sample light_bulb, if so, what is the difference with nrf5340? 
 Because we all know one thing, the price of nrf52840 is different from nrf5340. 
 If you can, tell me</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jul 2023 01:53:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102016/52840-can-i-burn-the-matter-program" /><item><title>RE: 52840 Can I burn the matter program?</title><link>https://devzone.nordicsemi.com/thread/437969?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 01:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bb46f46-9c1a-49ee-828e-0109abfbc25e</guid><dc:creator>ChuckRui</dc:creator><description>&lt;p&gt;Hi Swathy,&lt;/p&gt;
&lt;p&gt;I also need to use a serial port to implement my custom communication, so what happens if I disable uart console.&lt;/p&gt;
&lt;p&gt;I transplanted my overlay file on 5340dk directly to 52840dk, and changed the TX and RX pins of uart accordingly, but it didn&amp;#39;t seem to work, but I could run it correctly on 5340.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;52840overlay&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2021-2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
		zephyr,console = &amp;amp;uart0;
	};

	/*
	* By default, PWM module is only configured for led0 (LED1 on the board).
	* The light bulb app, however, uses LED2 to show the state of the lighting,
	* including its brightness level.
	* PWM_POLARITY_NORMAL
	*/
	aliases {
		pwm-led1 = &amp;amp;pwm_led1;
	};

	pwmleds {
		compatible = &amp;quot;pwm-leds&amp;quot;;
		pwm_led1: pwm_led_1 {
			pwms = &amp;lt; &amp;amp;pwm0 1 PWM_MSEC(2) PWM_POLARITY_INVERTED&amp;gt;;
		};
	};
	
};

&amp;amp;pwm0 {
	pinctrl-0 = &amp;lt;&amp;amp;pwm0_default_alt&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep_alt&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;pinctrl {
	pwm0_default_alt: pwm0_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 14)&amp;gt;;
			nordic,invert;
		};
	};

	pwm0_sleep_alt: pwm0_sleep_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 14)&amp;gt;;
			low-power-enable;
		};
	};
};

// Disable GPIO forwarder to reuse the pins in the application core
/ {
gpio_fwd: nrf-gpio-forwarder {
	compatible = &amp;quot;nordic,nrf-gpio-forwarder&amp;quot;;
	status = &amp;quot;disabled&amp;quot;;
	uart {
		gpios = &amp;lt;&amp;amp;gpio1 1 0&amp;gt;, &amp;lt;&amp;amp;gpio1 0 0&amp;gt;, &amp;lt;&amp;amp;gpio0 11 0&amp;gt;, &amp;lt;&amp;amp;gpio0 10 0&amp;gt;;
	};
	};
};

&amp;amp;pinctrl {
vcom0_default: vcom0_default {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 1, 1)&amp;gt;;
	};
	group2 {
		psels = &amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;;
		bias-pull-up;
	};
};

vcom0_sleep: vcom0_sleep {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 1, 1)&amp;gt;,
			&amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;;
		low-power-enable;
	};
};

vcom1_default: vcom1_default {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 0, 8)&amp;gt;;
	};
	group2 {
		psels = &amp;lt;NRF_PSEL(UART_RX, 0, 6)&amp;gt;;
		bias-pull-up;
	};

};

vcom1_sleep: vcom1_sleep {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 0, 8)&amp;gt;,
			&amp;lt;NRF_PSEL(UART_RX, 0, 6)&amp;gt;;
		low-power-enable;
	};
};
};

&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;vcom0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;vcom0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

// Give the pins to UART1, and enable it
&amp;amp;uart1 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;19200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;vcom1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;vcom1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};


/* Disable unused peripherals to reduce power consumption */
&amp;amp;adc {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;i2c1 {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;spi2 {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;usbd {
	status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;5340overlay&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2021-2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
		zephyr,console = &amp;amp;uart0;
	};

	/*
	* By default, PWM module is only configured for led0 (LED1 on the board).
	* The light bulb app, however, uses LED2 to show the state of the lighting,
	* including its brightness level.
	* PWM_POLARITY_NORMAL
	*/
	aliases {
		pwm-led1 = &amp;amp;pwm_led1;
	};

	pwmleds {
		compatible = &amp;quot;pwm-leds&amp;quot;;
		pwm_led1: pwm_led_1 {
			pwms = &amp;lt; &amp;amp;pwm0 1 PWM_MSEC(2) PWM_POLARITY_INVERTED&amp;gt;;
		};
	};
	
};

&amp;amp;pwm0 {
	pinctrl-0 = &amp;lt;&amp;amp;pwm0_default_alt&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep_alt&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;pinctrl {
	pwm0_default_alt: pwm0_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 29)&amp;gt;;
			nordic,invert;
		};
	};

	pwm0_sleep_alt: pwm0_sleep_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 29)&amp;gt;;
			low-power-enable;
		};
	};
};

// Disable GPIO forwarder to reuse the pins in the application core
/ {
gpio_fwd: nrf-gpio-forwarder {
	compatible = &amp;quot;nordic,nrf-gpio-forwarder&amp;quot;;
	status = &amp;quot;disabled&amp;quot;;
	uart {
		gpios = &amp;lt;&amp;amp;gpio1 1 0&amp;gt;, &amp;lt;&amp;amp;gpio1 0 0&amp;gt;, &amp;lt;&amp;amp;gpio0 11 0&amp;gt;, &amp;lt;&amp;amp;gpio0 10 0&amp;gt;;
	};
	};
};

&amp;amp;pinctrl {
vcom0_default: vcom0_default {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 1, 1)&amp;gt;;
	};
	group2 {
		psels = &amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;;
		bias-pull-up;
	};
};

vcom0_sleep: vcom0_sleep {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 1, 1)&amp;gt;,
			&amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;;
		low-power-enable;
	};
};

vcom1_default: vcom1_default {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 0, 20)&amp;gt;;
	};
	group2 {
		psels = &amp;lt;NRF_PSEL(UART_RX, 0, 22)&amp;gt;;
		bias-pull-up;
	};

};

vcom1_sleep: vcom1_sleep {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 0, 20)&amp;gt;,
			&amp;lt;NRF_PSEL(UART_RX, 0, 22)&amp;gt;;
		low-power-enable;
	};
};
};

&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;vcom0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;vcom0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

// Give the pins to UART1, and enable it
&amp;amp;uart1 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;19200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;vcom1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;vcom1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};


/* Disable unused peripherals to reduce power consumption */
&amp;amp;adc {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;i2c1 {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;spi2 {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;usbd {
	status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It is worth mentioning that on 5340dk, I used UART0 as the output of the network core, and on 53840 I used RTT. Then uart1 on 5340dk is the serial port I use to implement a protocol I customized. On 52840, I also want to use P0.08 and P0.06 as the TX and RX pins respectively, but it seems that they cannot be used normally now, because some data is sent to the serial port after power-on in my code. But I didn&amp;#39;t see that data when I tested it.&lt;/p&gt;
&lt;p&gt;Thank you for your help~&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;chuck&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840 Can I burn the matter program?</title><link>https://devzone.nordicsemi.com/thread/437886?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 13:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:290671bd-c9c4-4b94-8737-012c18c0339f</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Chuck,&lt;/p&gt;
&lt;p&gt;Try adding the following in the prj.conf file:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_UART_CONSOLE=n&lt;br /&gt;&lt;/span&gt;&lt;span&gt;CONFIG_RTT_CONSOLE=y&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_USE_SEGGER_RTT=y&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_LOG_BACKEND_RTT=y&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_LONG_BACKEND_UART=n&lt;/span&gt;&lt;br /&gt;CONFIG_SHELL_RTT_INIT_LOG_LEVEL_NONE=y&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840 Can I burn the matter program?</title><link>https://devzone.nordicsemi.com/thread/437810?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 09:22:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d5b1cdd-2267-4c8e-bfa6-8e996cd28c0a</guid><dc:creator>ChuckRui</dc:creator><description>&lt;p&gt;Update：Now I can successfully burn the matter program on 52840, but I can&amp;#39;t see any output in the code now, I would like to ask how to get the output related to RTT?&lt;/p&gt;
&lt;p&gt;prj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Enable CHIP
CONFIG_CHIP=y
CONFIG_CHIP_PROJECT_CONFIG=&amp;quot;src/chip_project_config.h&amp;quot;
# 32773 == 0x8005 (example lighting-app)
CONFIG_CHIP_DEVICE_PRODUCT_ID=32773
CONFIG_STD_CPP14=y

# Enable CHIP pairing automatically on application start.
CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART=y

# Add support for LEDs and buttons on Nordic development kits
CONFIG_DK_LIBRARY=y
CONFIG_PWM=y

# Bluetooth Low Energy configuration
CONFIG_BT_DEVICE_NAME=&amp;quot;MatterLight&amp;quot;

# Other settings
CONFIG_THREAD_NAME=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_RESET_ON_FATAL_ERROR=n
CONFIG_CHIP_LIB_SHELL=y

# Reduce application size
CONFIG_UART_CONSOLE=n
CONFIG_CONSOLE=y
CONFIG_RTT_CONSOLE=y


&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Whether to use SEGGER_RTT_printf() for RTT output in the code?&lt;/p&gt;
&lt;p&gt;Thank you~&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;chuck&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840 Can I burn the matter program?</title><link>https://devzone.nordicsemi.com/thread/437578?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 07:02:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8741baf1-c949-4736-a803-db7066f5fe0c</guid><dc:creator>ChuckRui</dc:creator><description>&lt;p&gt;Hi Swathy，&lt;/p&gt;
&lt;p&gt;Such an error occurred in the compilation process, which should not be a problem in the code, but a problem in the overlay file. I clicked the error link and saw that the zephyr device name could not be found, but I clearly redefined uart0 and uart1 in the overlay file. I copied and pasted it from the 5340overlay file, but I didn&amp;#39;t copy the one about the GPIO transponder, could you help me look at it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;build error&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;e:\nrf52840\myProj\light_bulb\build\zephyr\include\generated\devicetree_generated.h:14173:38: error: &amp;#39;DT_N_S_soc_S_uart_40002000&amp;#39; was not declared in this scope; did you mean &amp;#39;DT_N_S_soc_S_uart_40002000_ORD&amp;#39;?
14173 | #define DT_N_NODELABEL_uart0         DT_N_S_soc_S_uart_40002000
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
E:\nrf5340\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:3901:24: note: in expansion of macro &amp;#39;DT_N_NODELABEL_uart0&amp;#39;
 3901 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
E:\nrf5340\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:29: note: in expansion of macro &amp;#39;DT_CAT&amp;#39;
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
e:\nrf52840\myProj\light_bulb\src\app_task.cpp:63:47: note: in expansion of macro &amp;#39;DT_NODELABEL&amp;#39;
   63 | static const struct device *const uart0_dev = DT_NODELABEL(uart0);
      |                                               ^~~~~~~~~~~~
e:\nrf52840\myProj\light_bulb\build\zephyr\include\generated\devicetree_generated.h:14173:38: note: maximum limit of 1000 namespaces searched for &amp;#39;DT_N_S_soc_S_uart_40002000&amp;#39;
14173 | #define DT_N_NODELABEL_uart0         DT_N_S_soc_S_uart_40002000
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
E:\nrf5340\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:3901:24: note: in expansion of macro &amp;#39;DT_N_NODELABEL_uart0&amp;#39;
 3901 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
E:\nrf5340\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:29: note: in expansion of macro &amp;#39;DT_CAT&amp;#39;
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
e:\nrf52840\myProj\light_bulb\src\app_task.cpp:63:47: note: in expansion of macro &amp;#39;DT_NODELABEL&amp;#39;
   63 | static const struct device *const uart0_dev = DT_NODELABEL(uart0);
      |                                               ^~~~~~~~~~~~
e:\nrf52840\myProj\light_bulb\build\zephyr\include\generated\devicetree_generated.h:14375:39: error: &amp;#39;DT_N_S_soc_S_uart_40028000&amp;#39; was not declared in this scope; did you mean &amp;#39;DT_N_S_soc_S_uart_40028000_ORD&amp;#39;?
14375 | #define DT_N_NODELABEL_uart1          DT_N_S_soc_S_uart_40028000
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
E:\nrf5340\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:3901:24: note: in expansion of macro &amp;#39;DT_N_NODELABEL_uart1&amp;#39;
 3901 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
E:\nrf5340\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:29: note: in expansion of macro &amp;#39;DT_CAT&amp;#39;
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
e:\nrf52840\myProj\light_bulb\src\app_task.cpp:64:47: note: in expansion of macro &amp;#39;DT_NODELABEL&amp;#39;
   64 | static const struct device *const uart1_dev = DT_NODELABEL(uart1);
      |                                               ^~~~~~~~~~~~
e:\nrf52840\myProj\light_bulb\build\zephyr\include\generated\devicetree_generated.h:14375:39: note: maximum limit of 1000 namespaces searched for &amp;#39;DT_N_S_soc_S_uart_40028000&amp;#39;
14375 | #define DT_N_NODELABEL_uart1          DT_N_S_soc_S_uart_40028000
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
E:\nrf5340\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:3901:24: note: in expansion of macro &amp;#39;DT_N_NODELABEL_uart1&amp;#39;
 3901 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
E:\nrf5340\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:29: note: in expansion of macro &amp;#39;DT_CAT&amp;#39;
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
e:\nrf52840\myProj\light_bulb\src\app_task.cpp:64:47: note: in expansion of macro &amp;#39;DT_NODELABEL&amp;#39;
   64 | static const struct device *const uart1_dev = DT_NODELABEL(uart1);
      |                                               ^~~~~~~~~~~~&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;5340overlay&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2021-2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
		zephyr,console = &amp;amp;uart0;
	};

	/*
	* By default, PWM module is only configured for led0 (LED1 on the board).
	* The light bulb app, however, uses LED2 to show the state of the lighting,
	* including its brightness level.
	* PWM_POLARITY_NORMAL
	*/
	aliases {
		pwm-led1 = &amp;amp;pwm_led1;
	};

	pwmleds {
		compatible = &amp;quot;pwm-leds&amp;quot;;
		pwm_led1: pwm_led_1 {
			pwms = &amp;lt; &amp;amp;pwm0 1 PWM_MSEC(2) PWM_POLARITY_INVERTED&amp;gt;;
		};
	};
	
};

&amp;amp;pwm0 {
	pinctrl-0 = &amp;lt;&amp;amp;pwm0_default_alt&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep_alt&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;pinctrl {
	pwm0_default_alt: pwm0_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 29)&amp;gt;;
			nordic,invert;
		};
	};

	pwm0_sleep_alt: pwm0_sleep_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 29)&amp;gt;;
			low-power-enable;
		};
	};
};

// Disable GPIO forwarder to reuse the pins in the application core
/ {
gpio_fwd: nrf-gpio-forwarder {
	compatible = &amp;quot;nordic,nrf-gpio-forwarder&amp;quot;;
	status = &amp;quot;disabled&amp;quot;;
	uart {
		gpios = &amp;lt;&amp;amp;gpio1 1 0&amp;gt;, &amp;lt;&amp;amp;gpio1 0 0&amp;gt;, &amp;lt;&amp;amp;gpio0 11 0&amp;gt;, &amp;lt;&amp;amp;gpio0 10 0&amp;gt;;
	};
	};
};

&amp;amp;pinctrl {
vcom0_default: vcom0_default {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 1, 1)&amp;gt;;
	};
	group2 {
		psels = &amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;;
		bias-pull-up;
	};
};

vcom0_sleep: vcom0_sleep {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 1, 1)&amp;gt;,
			&amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;;
		low-power-enable;
	};
};

vcom1_default: vcom1_default {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 0, 20)&amp;gt;;
	};
	group2 {
		psels = &amp;lt;NRF_PSEL(UART_RX, 0, 22)&amp;gt;;
		bias-pull-up;
	};

};

vcom1_sleep: vcom1_sleep {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 0, 20)&amp;gt;,
			&amp;lt;NRF_PSEL(UART_RX, 0, 22)&amp;gt;;
		low-power-enable;
	};
};
};

&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;vcom0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;vcom0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

// Give the pins to UART1, and enable it
&amp;amp;uart1 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;19200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;vcom1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;vcom1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};


/* Disable unused peripherals to reduce power consumption */
&amp;amp;adc {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;i2c1 {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;spi2 {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;usbd {
	status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;52840overlay&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2021-2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
		zephyr,console = &amp;amp;uart0;
	};

	/*
	* In some default configurations within the nRF Connect SDK,
	* e.g. on nRF52840, the chosen zephyr,entropy node is &amp;amp;cryptocell.
	* This devicetree overlay ensures that default is overridden wherever it
	* is set, as this application uses the RNG node for entropy exclusively.
	*/

	chosen {
		zephyr,entropy = &amp;amp;rng;
	};

	/*
	* By default, PWM module is only configured for led0 (LED1 on the board).
	* The light bulb app, however, uses LED2 to show the state of the lighting,
	* including its brightness level.
	*/
	aliases {
		pwm-led1 = &amp;amp;pwm_led1;
	};

	pwmleds {
		pwm_led1: pwm_led_1 {
			pwms = &amp;lt;&amp;amp;pwm0 1 PWM_MSEC(2) PWM_POLARITY_INVERTED&amp;gt;;
		};
	};

};

&amp;amp;pwm0 {
	pinctrl-0 = &amp;lt;&amp;amp;pwm0_default_alt&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep_alt&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;pinctrl {
	pwm0_default_alt: pwm0_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 29)&amp;gt;;
			nordic,invert;
		};
	};

	pwm0_sleep_alt: pwm0_sleep_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 29)&amp;gt;;
			low-power-enable;
		};
	};
};

&amp;amp;uart0 {
	pinctrl-0 = &amp;lt;&amp;amp;vcom0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;vcom0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;,&amp;quot;sleep&amp;quot;;
};

&amp;amp;pinctrl {
	vcom0_default: vcom0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 1, 1)&amp;gt;;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;;
			bias-pull-up;
		};
	};

	vcom0_sleep: vcom0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 1, 1)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;;
		low-power-enable;
		};
	};
};

&amp;amp;uart1 {
	pinctrl-0 = &amp;lt;&amp;amp;vcom1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;vcom1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;,&amp;quot;sleep&amp;quot;;
};

&amp;amp;pinctrl {
	vcom1_default: vcom1_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 20)&amp;gt;;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 0, 22)&amp;gt;;
			bias-pull-up;
		};
	};

	vcom1_sleep: vcom1_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 20)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_RX, 0, 22)&amp;gt;;
			low-power-enable;
		};
	};
};







/* Disable unused peripherals to reduce power consumption */
&amp;amp;adc {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;uart1 {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;i2c0 {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;spi1 {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;spi3 {
	status = &amp;quot;disabled&amp;quot;;
};
&amp;amp;usbd {
	status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please help me see where the problem is？&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;kind regards，&lt;/p&gt;
&lt;p&gt;chuck&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840 Can I burn the matter program?</title><link>https://devzone.nordicsemi.com/thread/437492?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 13:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6202cbc8-67fa-47ee-af4f-053ea8348e43</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="ChuckRui"]light_bulb program that I have modified[/quote]
&lt;p&gt;The light bulb sample in the nRF Connect SDK also supports nRf52840. You could just make the modification/changes in the overlay file for nrf52840.?&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1689860638414v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840 Can I burn the matter program?</title><link>https://devzone.nordicsemi.com/thread/437397?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 07:15:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76e7eff6-710f-40d4-b011-ae0ec2c618a3</guid><dc:creator>ChuckRui</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;If I need to port the light_bulb program that I have modified so far and that will work properly on nrf5340 to 52840, what is&lt;/p&gt;
&lt;p&gt;the quickest way to do so?&lt;/p&gt;
&lt;p&gt;Do I need to re-copy the light_bulb project and then modify the overlay file for different 52840 peripherals to compile it?&lt;/p&gt;
&lt;p&gt;I can see that many parts of the code do not seem to be shared, such as the way the device in zephyr gets the api&lt;/p&gt;
&lt;p&gt;differently?&lt;/p&gt;
&lt;p&gt;Here are the errors that occur in my compilation?&lt;/p&gt;
&lt;p&gt;Please guide me.Thanke you~&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;chuck@chuckrui MINGW64 /e/nrf5340/myProj/light_bulb (master)
$ west build -b nrf52840dk_nrf52840 -d build_52840 -p
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: E:/nrf5340/myProj/light_bulb
-- Using NCS Toolchain 2.3.0 for building. (E:/nrf5340/ncs/toolchains/v2.3.0/cmake)
-- Found Python3: E:/nrf5340/ncs/toolchains/v2.3.0/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter
-- Cache files will be written to: E:/nrf5340/ncs/v2.3.0/zephyr/.cache
-- Zephyr version: 3.2.99 (E:/nrf5340/ncs/v2.3.0/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.15.2 (E:/nrf5340/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.2 (E:/nrf5340/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found Dtc: E:/nrf5340/ncs/toolchains/v2.3.0/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found BOARD.dts: E:/nrf5340/ncs/v2.3.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: E:/nrf5340/myProj/light_bulb/boards/nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: E:/nrf5340/myProj/light_bulb/build_52840/zephyr/zephyr.dts
-- Generated devicetree_generated.h: E:/nrf5340/myProj/light_bulb/build_52840/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: E:/nrf5340/myProj/light_bulb/build_52840/zephyr/dts.cmake
Parsing E:/nrf5340/myProj/light_bulb/Kconfig
Loaded configuration &amp;#39;E:/nrf5340/ncs/v2.3.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;E:/nrf5340/myProj/light_bulb/prj.conf&amp;#39;
Configuration saved to &amp;#39;E:/nrf5340/myProj/light_bulb/build_52840/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;E:/nrf5340/myProj/light_bulb/build_52840/zephyr/include/generated/autoconf.h&amp;#39;

-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: E:/nrf5340/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Found Python3: E:/nrf5340/ncs/toolchains/v2.3.0/opt/bin/python.exe (found version &amp;quot;3.8.2&amp;quot;) found components: Interpreter

=== child image mcuboot -  begin ===
loading initial cache file E:/nrf5340/myProj/light_bulb/build_52840/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: E:/nrf5340/ncs/v2.3.0/bootloader/mcuboot/boot/zephyr
-- Using NCS Toolchain 2.3.0 for building. (E:/nrf5340/ncs/toolchains/v2.3.0/cmake)
-- Found Python3: E:/nrf5340/ncs/toolchains/v2.3.0/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter
-- Cache files will be written to: E:/nrf5340/ncs/v2.3.0/zephyr/.cache
-- Zephyr version: 3.2.99 (E:/nrf5340/ncs/v2.3.0/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.15.2 (E:/nrf5340/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.2 (E:/nrf5340/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found Dtc: E:/nrf5340/ncs/toolchains/v2.3.0/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found BOARD.dts: E:/nrf5340/ncs/v2.3.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: E:/nrf5340/myProj/light_bulb/child_image/mcuboot/boards/nrf52840dk_nrf52840.overlay
-- Found devicetree overlay: E:/nrf5340/ncs/v2.3.0/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: E:/nrf5340/myProj/light_bulb/build_52840/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: E:/nrf5340/myProj/light_bulb/build_52840/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: E:/nrf5340/myProj/light_bulb/build_52840/mcuboot/zephyr/dts.cmake
Parsing E:/nrf5340/ncs/v2.3.0/modules/lib/matter/config/nrfconnect/chip-module/Kconfig.mcuboot.root
Loaded configuration &amp;#39;E:/nrf5340/ncs/v2.3.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;E:/nrf5340/myProj/light_bulb/child_image/mcuboot/prj.conf&amp;#39;
Merged configuration &amp;#39;E:/nrf5340/ncs/v2.3.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf&amp;#39;
Merged configuration &amp;#39;E:/nrf5340/ncs/v2.3.0/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;E:/nrf5340/myProj/light_bulb/build_52840/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;E:/nrf5340/myProj/light_bulb/build_52840/mcuboot/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;E:/nrf5340/myProj/light_bulb/build_52840/mcuboot/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: E:/nrf5340/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Warning at E:/nrf5340/ncs/v2.3.0/nrf/lib/flash_patch/CMakeLists.txt:8 (message):


        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


MCUBoot bootloader key file: E:/nrf5340/ncs/v2.3.0/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: E:/nrf5340/myProj/light_bulb/build_52840/mcuboot
=== child image mcuboot -  end ===

CMake Warning at E:/nrf5340/ncs/v2.3.0/nrf/modules/mcuboot/CMakeLists.txt:286 (message):


          ---------------------------------------------------------
          --- WARNING: Using default MCUBoot key, it should not ---
          --- be used for production.                           ---
          ---------------------------------------------------------




CMake Warning at E:/nrf5340/ncs/v2.3.0/nrfxlib/openthread/cmake/extensions.cmake:113 (message):

   Current nrf_security configuration does not provide all MBEDTLS options which are required by precompiled OpenThread libraries.
   The minimum of MBEDTLS configuration is stored at: E:/nrf5340/ncs/v2.3.0/nrfxlib/openthread/lib/cortex-m4/hard-float/v1.3/ftd/oberon/nrf_security_mbedtls_configuration.h

Call Stack (most recent call first):
  E:/nrf5340/ncs/v2.3.0/nrfxlib/openthread/CMakeLists.txt:82 (check_openthread_dependencies)


CMake Warning at E:/nrf5340/ncs/v2.3.0/zephyr/CMakeLists.txt:1838 (message):
  __ASSERT() statements are globally ENABLED


-- Found partition manager static configuration: E:/nrf5340/myProj/light_bulb/configuration/nrf52840dk_nrf52840/pm_static_dfu.yml
Partition &amp;#39;mcuboot&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_pad&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary_app&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;settings_storage&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_secondary&amp;#39; is not included in the dynamic resolving since it is statically defined.
-- Configuring done
-- Generating done
-- Build files have been written to: E:/nrf5340/myProj/light_bulb/build_52840
-- west build: building application
[5/509] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (E:/nrf5340/ncs/v2.3.0/zephyr), build: v3.2.99-ncs2
[78/509] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;
[1/177] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (E:/nrf5340/ncs/v2.3.0/zephyr), build: v3.2.99-ncs2
[167/177] Linking C executable zephyr\zephyr_pre0.elf

[171/177] Linking C executable zephyr\zephyr_pre1.elf

[177/177] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       25614 B        28 KB     89.33%
             RAM:         18 KB       256 KB      7.03%
        IDT_LIST:          0 GB         2 KB      0.00%
[429/509] Performing build step for &amp;#39;chip-gn&amp;#39;
Generating compile_commands took 11ms
Done. Made 198 targets from 180 files in 196ms
[398/398] stamp obj/ABS_PATH/E/nrf5340/ncs/v2.3.0/modules/lib/matter/config/nrfconnect/chip-gn/default.stamp
[472/509] Building CXX object CMakeFiles/app.dir/src/app_task.cpp.obj
FAILED: CMakeFiles/app.dir/src/app_task.cpp.obj
E:\nrf5340\ncs\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-g++.exe -DCHIP_BYPASS_IDL -DCHIP_HAVE_CONFIG_H -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;nrf-config.h\&amp;quot; -DMBEDTLS_USER_CONFIG_FILE=\&amp;quot;nrf-config-user.h\&amp;quot; -DNRF52840_XXAA -DNRF_802154_ACK_TIMEOUT_ENABLED=1 -DNRF_802154_CCA_CORR_LIMIT_DEFAULT=2 -DNRF_802154_CCA_CORR_THRESHOLD_DEFAULT=45 -DNRF_802154_CCA_ED_THRESHOLD_DEFAULT=45 -DNRF_802154_CCA_MODE_DEFAULT=NRF_RADIO_CCA_MODE_ED -DNRF_802154_ECB_PRIORITY=-1 -DNRF_802154_ENCRYPTION_ENABLED=1 -DNRF_802154_IE_WRITER_ENABLED=1 -DNRF_802154_INTERNAL_RADIO_IRQ_HANDLING=0 -DNRF_802154_PENDING_EXTENDED_ADDRESSES=16 -DNRF_802154_PENDING_SHORT_ADDRESSES=16 -DNRF_802154_RX_BUFFERS=16 -DNRF_802154_SECURITY_WRITER_ENABLED=1 -DNRF_802154_SWI_PRIORITY=1 -DNRF_802154_TX_STARTED_NOTIFY_ENABLED=1 -DNRF_802154_USE_RAW_API=1 -DUSE_PARTITION_MANAGER=1 -DZCBOR_ASSERTS -D_ANSI_SOURCE -D_DEFAULT_SOURCE -D_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I../src -IE:/nrf5340/ncs/v2.3.0/nrf/samples/matter/common/src -IE:/nrf5340/ncs/v2.3.0/modules/lib/matter/third_party/nlio/repo/include -IE:/nrf5340/ncs/v2.3.0/modules/lib/matter/zzz_generated/app-common -IE:/nrf5340/ncs/v2.3.0/nrf/drivers/mpsl/clock_control -IE:/nrf5340/ncs/v2.3.0/zephyr/include -Izephyr/include/generated -IE:/nrf5340/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/nrf52 -IE:/nrf5340/ncs/v2.3.0/zephyr/lib/libc/newlib/include -IE:/nrf5340/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/common/. -IE:/nrf5340/ncs/v2.3.0/zephyr/subsys/bluetooth -IE:/nrf5340/ncs/v2.3.0/zephyr/subsys/net/lib/sockets/. -IE:/nrf5340/ncs/v2.3.0/zephyr/subsys/settings/include -IE:/nrf5340/ncs/v2.3.0/nrf/include -IE:/nrf5340/ncs/v2.3.0/nrf/lib/multithreading_lock/. -IE:/nrf5340/ncs/v2.3.0/nrf/subsys/bluetooth/controller/. -IE:/nrf5340/ncs/v2.3.0/zephyr/drivers/flash -IE:/nrf5340/ncs/v2.3.0/nrf/tests/include -IE:/nrf5340/ncs/v2.3.0/zephyr/modules/openthread/platform/. -IE:/nrf5340/ncs/v2.3.0/modules/hal/cmsis/CMSIS/Core/Include -IE:/nrf5340/ncs/v2.3.0/modules/hal/nordic/nrfx -IE:/nrf5340/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/include -IE:/nrf5340/ncs/v2.3.0/modules/hal/nordic/nrfx/mdk -IE:/nrf5340/ncs/v2.3.0/zephyr/modules/hal_nordic/nrfx/. -IE:/nrf5340/ncs/v2.3.0/modules/crypto/tinycrypt/lib/include -IE:/nrf5340/ncs/v2.3.0/modules/lib/zcbor/include -IE:/nrf5340/ncs/v2.3.0/nrfxlib/nfc/include -IE:/nrf5340/ncs/v2.3.0/nrfxlib/mpsl/include -IE:/nrf5340/ncs/v2.3.0/nrfxlib/mpsl/include/protocol -IE:/nrf5340/ncs/v2.3.0/nrfxlib/openthread/include -Imodules/nrfxlib/nrfxlib/nrf_security/src/include/generated -IE:/nrf5340/ncs/v2.3.0/nrfxlib/nrf_security/include -IE:/nrf5340/ncs/v2.3.0/nrfxlib/nrf_security/include/mbedtls -IE:/nrf5340/ncs/v2.3.0/nrfxlib/nrf_security/include/psa -IE:/nrf5340/ncs/v2.3.0/modules/crypto/mbedtls/include -IE:/nrf5340/ncs/v2.3.0/modules/crypto/mbedtls/include/mbedtls -IE:/nrf5340/ncs/v2.3.0/modules/crypto/mbedtls/include/psa -IE:/nrf5340/ncs/v2.3.0/modules/crypto/mbedtls/library -IE:/nrf5340/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include -IE:/nrf5340/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/mbedtls -IE:/nrf5340/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/psa -IE:/nrf5340/ncs/v2.3.0/nrfxlib/crypto/nrf_oberon/include/mbedtls -IE:/nrf5340/ncs/v2.3.0/nrfxlib/crypto/nrf_oberon/include -IE:/nrf5340/ncs/v2.3.0/nrfxlib/nrf_802154/driver/include -IE:/nrf5340/ncs/v2.3.0/nrfxlib/nrf_802154/sl/include -IE:/nrf5340/ncs/v2.3.0/nrfxlib/softdevice_controller/include -IE:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/posix -IE:/nrf5340/ncs/v2.3.0/modules/lib/matter/src -IE:/nrf5340/ncs/v2.3.0/modules/lib/matter/src/include -IE:/nrf5340/ncs/v2.3.0/modules/lib/matter/third_party/nlassert/repo/include -Imodules/connectedhomeip/gen/include -IE:/nrf5340/ncs/v2.3.0/modules/lib/matter/examples/providers -isystem E:/nrf5340/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/include &amp;quot;-DCHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=&amp;lt;lib/address_resolve/AddressResolve_DefaultImpl.h&amp;gt;&amp;quot; -fno-strict-aliasing -Os -fcheck-new -std=c++14 -Wno-register -fno-exceptions -fno-rtti -imacros E:/nrf5340/myProj/light_bulb/build_52840/zephyr/include/generated/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=E:/nrf5340/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=E:/nrf5340/myProj/light_bulb=CMAKE_SOURCE_DIR -fmacro-prefix-map=E:/nrf5340/ncs/v2.3.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=E:/nrf5340/ncs/v2.3.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=gnu++17 -D_SYS__PTHREADTYPES_H_ -MD -MT CMakeFiles/app.dir/src/app_task.cpp.obj -MF CMakeFiles\app.dir\src\app_task.cpp.obj.d -o CMakeFiles/app.dir/src/app_task.cpp.obj -c ../src/app_task.cpp
In file included from E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/toolchain/gcc.h:89,
                 from E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/toolchain.h:50,
                 from E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/kernel_includes.h:19,
                 from E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/kernel.h:17,
                 from E:/nrf5340/ncs/v2.3.0/nrf/samples/matter/common/src/led_widget.h:11,
                 from ../src/app_task.h:10,
                 from ../src/app_task.cpp:6:
E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/device.h:83:41: error: &amp;#39;__device_dts_ord_119&amp;#39; was not declared in this scope; did you mean &amp;#39;__device_dts_ord_19&amp;#39;?
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro &amp;#39;_DO_CONCAT&amp;#39;
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/device.h:83:33: note: in expansion of macro &amp;#39;_CONCAT&amp;#39;
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/device.h:209:37: note: in expansion of macro &amp;#39;DEVICE_NAME_GET&amp;#39;
  209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/device.h:226:34: note: in expansion of macro &amp;#39;DEVICE_DT_NAME_GET&amp;#39;
  226 | #define DEVICE_DT_GET(node_id) (&amp;amp;DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
../src/app_task.cpp:63:47: note: in expansion of macro &amp;#39;DEVICE_DT_GET&amp;#39;
   63 | static const struct device *const uart1_dev = DEVICE_DT_GET(DT_NODELABEL(uart1));
      |                                               ^~~~~~~~~~~~~
E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/device.h:83:41: note: maximum limit of 1000 namespaces searched for &amp;#39;__device_dts_ord_119&amp;#39;
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro &amp;#39;_DO_CONCAT&amp;#39;
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/device.h:83:33: note: in expansion of macro &amp;#39;_CONCAT&amp;#39;
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/device.h:209:37: note: in expansion of macro &amp;#39;DEVICE_NAME_GET&amp;#39;
  209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
E:/nrf5340/ncs/v2.3.0/zephyr/include/zephyr/device.h:226:34: note: in expansion of macro &amp;#39;DEVICE_DT_NAME_GET&amp;#39;
  226 | #define DEVICE_DT_GET(node_id) (&amp;amp;DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
../src/app_task.cpp:63:47: note: in expansion of macro &amp;#39;DEVICE_DT_GET&amp;#39;
   63 | static const struct device *const uart1_dev = DEVICE_DT_GET(DT_NODELABEL(uart1));
      |                                               ^~~~~~~~~~~~~
[487/509] Building CXX object CMakeFiles/app.dir/E_/nrf5340/nc...ed/app-common/app-common/zap-generated/cluster-objects.cpp.objninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: &amp;#39;E:\nrf5340\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;E:\nrf5340\myProj\light_bulb\build_52840&amp;#39;

chuck@chuckrui MINGW64 /e/nrf5340/myProj/light_bulb (master)
$&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;chuck&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840 Can I burn the matter program?</title><link>https://devzone.nordicsemi.com/thread/437202?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 10:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20e91858-c645-42ee-b9f6-a9ad3108e7dc</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is possible to run the matter samples on the nRF52840 as well.. Say for the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/matter/light_switch/README.html"&gt;matter_light_switch&lt;/a&gt; sample, the nRF52840-DK is on the supported boards.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1689760473489v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The nRF5340 is a dual core SoC (has a separated network core for the radio and an application core) whereas the nRF52840 has a single core. Also, nRF5340 has better RAM.. See here to see the comparison chart of the Nordic products:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/-/media/Publications/WQ-Product-guide/Product-Guide_Nordic_PDF.pdf"&gt;https://www.nordicsemi.com/-/media/Publications/WQ-Product-guide/Product-Guide_Nordic_PDF.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>