<?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>Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117761/matter-application-on-nrf52840-custom-board</link><description>hi 
 board : nrf52840 custom board 
 sdk : nrf connect sdk v2.6.1 
 example: matter light bulb 
 problem: 
 After the code is burned in, the system not working, I have modified and added the following config in the prj.conf file 
 What settings do I need</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2025 08:55:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117761/matter-application-on-nrf52840-custom-board" /><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517880?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 08:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88c74634-8b24-4715-adfe-d9c2a74116c7</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This will go against the specification, so if you wish to experiment with this you will have to do it on your own. We can&amp;#39;t help you do so.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517829?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 03:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc29b2ab-12cc-4877-b5bd-62ea999c6a1f</guid><dc:creator>PiKa PiKa</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;If I want to temporarily disable DFU and external flash functions in matter light blub sample, how should I modify my prj_conf file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517412?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 09:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff81f88e-b19f-4d03-b489-b24539cbbd27</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately we don&amp;#39;t have an overview over an third party modules based on the nRF52840 which might be suited. You would have to reach out to your regional sales manager and/or a your SoC/Module distributor for any input w.r.t any suited third party modules that might be useful. Make sure that you choose a nRF52840 module which meets the criteria w.r.t external flash in the link I sent in my previous contact and let me know if you need the contact information for your Nordic regional sales manager in your area and I&amp;#39;ll forward it to you&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517396?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 08:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:548928ce-ff49-43e4-96aa-42bca375dddc</guid><dc:creator>PiKa PiKa</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;If the nrf52840 module we choose has built-in large-capacity flash,&lt;br /&gt;Is there any way to use matter application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517265?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 14:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c704f48c-c99f-44df-b401-d3a83d58e9ab</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Yes, unfortunately (for the device you&amp;#39;re using) it is necessary. In Matter, dual bank DFU is a mandatory feature, and unfortunately both the nRF52840 and nRF5340 has too little flash available to do this without an external flash device.&lt;/p&gt;
&lt;p&gt;If you have either a device with enough internal flash you can away with not having an external flash device, but unfortunally all the supported as of now requires an external flash. Here&amp;#39;s a link to the memory requirements for some standard Matter applications. Also have a look at the section regarding &amp;quot;External flash&amp;quot;:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/matter/getting_started/hw_requirements.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/matter/getting_started/hw_requirements.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517223?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 13:14:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d72ab4c0-3d79-44bd-a443-43750c4de2ab</guid><dc:creator>PiKa PiKa</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;Is external flash necessary to use the matter sample?&lt;br /&gt;if yes ,then I think the problem may be that my custom board does not have&amp;nbsp;&lt;span&gt;external flash.&lt;br /&gt;That is to say, there is no way to use matter-related examples without external flash, right?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517157?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 09:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffea9a6f-c932-47d8-85e6-afd6a75b6390</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Good catch, yes I do believe it is an issue with initialization of the flash configuration or driver. I suspect this happens if you either don&amp;#39;t power the external flash if the device is unknown for the bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Next steps I would suggest you look into is if you&amp;#39;re able to access the external flash from a simpler sample than the Matter Light Bulb. If the issue persists with this, then we need to look into if your external flash device is properly set up in hardware and software&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517053?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 15:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59c1b25d-5add-4b19-b49d-839a341e72df</guid><dc:creator>PiKa PiKa</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also run the build/mcuboot debugger , and found the code stop at&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;            if (rc != 0) {
                BOOT_LOG_ERR(&amp;quot;Failed to open flash area ID %d (image %d slot %d): %d, &amp;quot;
                             &amp;quot;cannot continue&amp;quot;, fa_id, image_index, (int8_t)slot, rc);
                FIH_PANIC;
            }&lt;/pre&gt;&lt;br /&gt;Do you think this is a problem with the flash configuration?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517048?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 15:04:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33265e4f-f02d-4eca-950b-5f2d27f319f8</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Noted, then I would recommend if you look closer into where the Matter sample expects the Buttons and LEDs are connected w.r.t the differences in the pin configuration in your board and on for instance the nRF52840DK.&lt;/p&gt;
&lt;p&gt;A second thought is that there might be something that stops the boot procedure due to initialization failing (just speculating) during bootup. It could indicate that there&amp;#39;s something to do with buttons and/or LEDs initialization so it might be worth investigating from your end as well.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517039?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 14:53:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a51fe942-1557-4711-883c-e44ab6aa6139</guid><dc:creator>PiKa PiKa</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;a id="AHaug"&gt;&lt;/a&gt;I don&amp;#39;t think this is the issue since you said the peripheral_uart sample worked for your custom board after commenting out the GPIO configuring function, but just as a sanity check: You have an oscillator on your custom board, right?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Yes, there is a&lt;span&gt;n oscillator on my custom board&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517034?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 14:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fd3d685-fca1-45d9-b552-1761c4b4e664</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for filling out an answer to these items&lt;/p&gt;
[quote user="qqq558877"]I used&amp;nbsp;&lt;span&gt;nRF52840DK fot board target&lt;/span&gt;[/quote]
&lt;p&gt;I suspect this is the issue. Are you using any overlay files to compensate for any changes in the 52840DK board file and your custom board?&lt;/p&gt;
[quote user="qqq558877"]&lt;br /&gt;I have used&amp;nbsp;&lt;span&gt;peripheral_uart BLE sample,&amp;nbsp;It didn&amp;#39;t work at the beginning until I commented out configure_gpio()&lt;/span&gt;[/quote]
&lt;p&gt;This is most likely due to your configuration being different on your custom board than it is on the 52840dk. This sample sets the LEDS up towards the GPIO&amp;#39;s connected to the LEDs on the DK&amp;nbsp;&lt;/p&gt;
[quote user="qqq558877"]I try to run the debugger, and found it stop on&amp;nbsp;&lt;span&gt;bootup,as the log below&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;I don&amp;#39;t think this is the issue since you said the peripheral_uart sample worked for your custom board after commenting out the GPIO configuring function, but just as a sanity check: You have an oscillator on your custom board, right?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/517012?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 14:07:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96966322-3c33-4317-9eb3-82eff3dcc152</guid><dc:creator>PiKa PiKa</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Have you had your custom board through a hardware review? Did you get any comments on the design?&lt;br /&gt;&lt;br /&gt;No&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Is your custom board layout different than the nRF52840DK board files? See&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-3-adding-custom-board-support/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-3-adding-custom-board-support/&lt;/a&gt;&amp;nbsp;about custom board support.
&lt;ol&gt;
&lt;li&gt;If so, have you made any modifications?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;my custom board layout is different from nRF52840DK,&amp;nbsp;The difference is just to pull out a few GPIOs for control(p0.22,&lt;span&gt;p0.23,p0.24,p0.25&lt;/span&gt;).&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;What board target are you building your firmware for? Is it the nRF52840DK or is it your custom board?&lt;br /&gt;&lt;br /&gt;I used&amp;nbsp;&lt;span&gt;nRF52840DK fot board target&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Does any other firmware work on your custom board? Are you for instance able to run the hello_world sample in nRF Connect SDK or the peripheral_uart BLE sample?&lt;br /&gt;&lt;br /&gt;I have used&amp;nbsp;&lt;span&gt;peripheral_uart BLE sample,&amp;nbsp;It didn&amp;#39;t work at the beginning until I commented out configure_gpio()&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void configure_gpio(void)
{
	int err;

#ifdef CONFIG_BT_NUS_SECURITY_ENABLED
	err = dk_buttons_init(button_changed);
	if (err) {
		LOG_ERR(&amp;quot;Cannot init buttons (err: %d)&amp;quot;, err);
	}
#endif /* CONFIG_BT_NUS_SECURITY_ENABLED */

	err = dk_leds_init();
	if (err) {
		LOG_ERR(&amp;quot;Cannot init LEDs (err: %d)&amp;quot;, err);
	}
}&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;so in matter light blub sample I try to modify the&amp;nbsp;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DK_LIBRARY to n but it didn&amp;#39;t work.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Do you have any device logs? If not, please look into providing them and see where your device crashes through&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/&lt;/a&gt;&amp;nbsp;
&lt;ol&gt;
&lt;li&gt;Where does your device? Is it before bootup, during boot, or within the application?&lt;br /&gt;&lt;br /&gt;I try to run the debugger, and found it stop on&amp;nbsp;&lt;span&gt;bootup,as the log below&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;JLinkGDBServerCL: SEGGER J-Link GDB Server V7.94i Command Line Version
JLinkGDBServerCL: 
JLinkGDBServerCL: JLinkARM.dll V7.94i (DLL compiled Feb  7 2024 17:08:52)
JLinkGDBServerCL: 
JLinkGDBServerCL: -----GDB Server start settings-----
JLinkGDBServerCL: GDBInit file:                  none
JLinkGDBServerCL: GDB Server Listening port:     53144
JLinkGDBServerCL: SWO raw output listening port: 2332
JLinkGDBServerCL: Terminal I/O port:             2333
JLinkGDBServerCL: Accept remote connection:      localhost only
JLinkGDBServerCL: Generate logfile:              off
JLinkGDBServerCL: Verify download:               off
JLinkGDBServerCL: Init regs on start:            off
JLinkGDBServerCL: Silent mode:                   on
JLinkGDBServerCL: Single run mode:               on
JLinkGDBServerCL: Target connection timeout:     0 ms
JLinkGDBServerCL: ------J-Link related settings------
JLinkGDBServerCL: J-Link Host interface:         USB
JLinkGDBServerCL: J-Link script:                 none
JLinkGDBServerCL: J-Link settings file:          none
JLinkGDBServerCL: ------Target related settings------
JLinkGDBServerCL: Target device:                 nRF52840_xxAA
JLinkGDBServerCL: Target device parameters:      none
JLinkGDBServerCL: Target interface:              SWD
JLinkGDBServerCL: Target interface speed:        12000kHz
JLinkGDBServerCL: Target endian:                 little
JLinkGDBServerCL: 
=thread-group-added,id=&amp;quot;i1&amp;quot;
=cmd-param-changed,param=&amp;quot;pagination&amp;quot;,value=&amp;quot;off&amp;quot;
context_boot_go (state=state@entry=0x200014ac &amp;lt;boot_data&amp;gt;, rsp=rsp@entry=0x200047d4 &amp;lt;z_main_stack-149292&amp;gt;) at C:/ncs/v2.6.1/bootloader/mcuboot/boot/bootutil/src/loader.c:2324
2324	                FIH_PANIC;
[New Thread 1409331537]
&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Matter application on nrf52840 custom board</title><link>https://devzone.nordicsemi.com/thread/516996?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 13:20:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:068f6d01-2f24-48e2-9f00-220243a0f1a1</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To be able to help you at all you need to provide more information about the issues you&amp;#39;re having. For instance the following is helpful&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Have you had your custom board through a hardware review? Did you get any comments on the design?&lt;/li&gt;
&lt;li&gt;Is your custom board layout different than the nRF52840DK board files? See&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-3-adding-custom-board-support/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-3-adding-custom-board-support/&lt;/a&gt;&amp;nbsp;about custom board support.
&lt;ol&gt;
&lt;li&gt;If so, have you made any modifications?&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;What board target are you building your firmware for? Is it the nRF52840DK or is it your custom board?&lt;/li&gt;
&lt;li&gt;Does any other firmware work on your custom board? Are you for instance able to run the hello_world sample in nRF Connect SDK or the peripheral_uart BLE sample?&lt;/li&gt;
&lt;li&gt;Do you have any device logs? If not, please look into providing them and see where your device crashes through&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-2-debugging/&lt;/a&gt;&amp;nbsp;
&lt;ol&gt;
&lt;li&gt;Where does your device? Is it before bootup, during boot, or within the application?&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Please comment on all of the above and I&amp;#39;ll get back to you&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>