<?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>Issues migrating from v2.5.0 to v2.9.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121205/issues-migrating-from-v2-5-0-to-v2-9-1</link><description>Hey, I am working with the Matter light bulb sample from the 2.9.1 SDK, which I have modified to support the occupancy cluster. (nRF-52840 and nRF-52840DK) 
 This worked fine on version 2.5.0, so I tried to follow the migration guides and implement my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jun 2025 11:50:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121205/issues-migrating-from-v2-5-0-to-v2-9-1" /><item><title>RE: Issues migrating from v2.5.0 to v2.9.1</title><link>https://devzone.nordicsemi.com/thread/539872?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2025 11:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bc73043-cc97-4f50-818e-88ca1f9c0f01</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Thank you for your patience.&amp;nbsp;&lt;/p&gt;
[quote user="rwahidi"]Still no luck unfortunately, maybe someone can check my custom overlay for compatibility with the hardware model v2? [/quote]
&lt;p&gt;I see that in the HWMv2 board files,&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.7.99-ncs2-1/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts#L157"&gt;gpio-reserved-ranges&lt;/a&gt; includes &amp;lt;8, 3&amp;gt;, so &amp;amp;gpio0 8 can&amp;#39;t be used.&amp;nbsp;&lt;/p&gt;
[quote user="rwahidi"]I tried using the PAN1780_EVB board files, but I receive this error during the build:[/quote]
&lt;p&gt;My apologies for suggesting this. The PAN1780 EVB does not have external flash, so this result is expected when building a Matter application with FOTA functionality.&amp;nbsp;&lt;/p&gt;
[quote user="rwahidi"]I forgot to clarify, I never built for the PAN1780 Evalboard. The base configuration is always nrf52840dk/nrf52840.[/quote]
&lt;p&gt;I do recommend that you build the application with your board as the target. This way you are sure that the firmware is meant for the board hardware.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since you don&amp;#39;t build for your board, am I right to assume that you don&amp;#39;t have board files for your custom board? These can be &lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/guides/bd_work_with_boards.html#how-to-add-a-new-board"&gt;created through our nRF Connect for VS Code extension&lt;/a&gt;. Since your board is quite similar to the nRF52840 DK, you should be able to use the board files for the DK as a reference when populating the generated board files with relevant configurations.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-3-adding-custom-board-support/"&gt;Lesson 3&lt;/a&gt; in the nRF Connect SDK Intermediate course also covers adding custom board support.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues migrating from v2.5.0 to v2.9.1</title><link>https://devzone.nordicsemi.com/thread/538882?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 16:02:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7d2e0af-02f2-4045-b01a-7bc17843a3b5</guid><dc:creator>rwahidi</dc:creator><description>&lt;p&gt;I forgot to clarify, I never built for the PAN1780 Evalboard. The base configuration is always nrf52840dk/nrf52840. I just have an overlay file that maps some IO&amp;#39;s differently for my custom boards, but this is not in use right now so it can be ignored.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So if I build the unmodified light bulb sample, these are my observations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In SDK v2.5 I can take the same hex file and flash it to the nRF52840-DK and my PAN1780. Both of them will boot and have a BLE beacon.&lt;/li&gt;
&lt;li&gt;In SDK v2.9.1 flashing the hex file boots on the nRF52840-DK but does not work on the PAN1780&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I tried using the PAN1780_EVB board files, but I receive this error during the build:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/home/entwicklung/ncs/v2.9.1/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function &amp;#39;__flash_area_ids_for_slot&amp;#39;:

/home/entwicklung/ncs/v2.9.1/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:19:60: error: &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?

   19 | #define FLASH_AREA_IMAGE_0_SLOTS    PM_MCUBOOT_PRIMARY_ID, PM_MCUBOOT_SECONDARY_ID,

      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~
 &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues migrating from v2.5.0 to v2.9.1</title><link>https://devzone.nordicsemi.com/thread/538171?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 08:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e7b3ddb-7565-41f7-96c2-a6102e89f150</guid><dc:creator>Maria Gilje</dc:creator><description>[quote user="rwahidi"]Do you have any findings&amp;nbsp;on your end?[/quote]
&lt;p&gt;Apologies, I don&amp;#39;t have anything yet.&amp;nbsp;&lt;/p&gt;
[quote user="rwahidi"]However, the SDK v2.9.1 version of my firmware (and the unmodified light bulb sample) works well on the devkit but does not boot properly on the PAN1780. The Panasonic module uses the nRF-52840 and the same flash memory as the devkit. Building for the standard board files with some overlay changes has worked until now. The blinky sample does not have this problem.[/quote]
&lt;p&gt;This finding that the unchanged light bulb sample does not run on the PAN1780 is interesting. Could you do one (or both) of the following?&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Share your PAN1780 overlay and board specific .conf you use for the unchanged light bulb sample.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Build the light bulb sample for both PAN1780 and nRF52840 DK and compare the generated .config files between the two builds.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I took a quick look at the board files for PAN1780 &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.7.99-ncs2-rc1/boards/panasonic/pan1780_evb/pan1780_evb.dts"&gt;here&lt;/a&gt;, but I did not find any obvious nodes missing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues migrating from v2.5.0 to v2.9.1</title><link>https://devzone.nordicsemi.com/thread/538055?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 12:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77f983c6-135d-4e26-9f65-b228ead9fcce</guid><dc:creator>rwahidi</dc:creator><description>&lt;p&gt;Hello Maria,&lt;/p&gt;
&lt;p&gt;Thank you for your help. After some testing, I found that SDK v2.5 works fine.&lt;/p&gt;
&lt;p&gt;However, the SDK v2.9.1 version of my firmware (and the unmodified light bulb sample) works well on the devkit but does not boot properly on the PAN1780. The Panasonic module uses the nRF-52840 and the same flash memory as the devkit. Building for the standard board files with some overlay changes has worked until now. The blinky sample does not have this problem.&lt;/p&gt;
&lt;p&gt;Do you have any findings&amp;nbsp;on your end?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues migrating from v2.5.0 to v2.9.1</title><link>https://devzone.nordicsemi.com/thread/536746?ContentTypeID=1</link><pubDate>Fri, 23 May 2025 09:40:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a88f959c-3bc8-41af-a4de-b895935c60f9</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;Thank you for the update. &lt;/p&gt;
&lt;p&gt;I have reproduced this now, and will start debugging. I&amp;#39;ll report back with my findings as soon as I have some. I will strive to get back to you by end of Tuesday. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues migrating from v2.5.0 to v2.9.1</title><link>https://devzone.nordicsemi.com/thread/536499?ContentTypeID=1</link><pubDate>Wed, 21 May 2025 15:45:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee460cda-bb69-43ab-9a07-4c015752e74e</guid><dc:creator>rwahidi</dc:creator><description>&lt;p&gt;Still no luck unfortunately, maybe someone can check my custom overlay for compatibility with the hardware model v2? &lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c) 2021-2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};

	/*
	* 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-led0 = &amp;amp;pwm_led0;
		pwm-led1 = &amp;amp;pwm_led1;
	};

	pwmleds {
		pwm_led0: pwm_led_0 {
			pwms = &amp;lt;&amp;amp;pwm0 0 PWM_HZ(1600) 1&amp;gt;;
		};
		//pwm_led1: pwm_led_1 {
		//	pwms = &amp;lt;&amp;amp;pwm1 0 PWM_HZ(1600) 1&amp;gt;;
		//};
	};

};

/ {
    bgt60 {
        compatible = &amp;quot;gpio-keys&amp;quot;;
        targetd: d_target {
            gpios =
				&amp;lt;&amp;amp;gpio0 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)&amp;gt;;
            label = &amp;quot;Target detection&amp;quot;;
        };
        phased: d_phase {
            gpios =
				&amp;lt;&amp;amp;gpio0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)&amp;gt;;
            label = &amp;quot;Phase detection&amp;quot;;
        };
    };
    
    aliases {
        targetd = &amp;amp;targetd;
        phased = &amp;amp;phased;
    };
};


&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;pwm1 {
	pinctrl-0 = &amp;lt;&amp;amp;pwm1_default_alt&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm1_sleep_alt&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	status=&amp;quot;okay&amp;quot;;
};*/

/*&amp;amp;pinctrl {
    pwm0_default_alt: pwm0_default_alt {
        group1 {
            psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 27)&amp;gt;;
			bias-pull-down;
        };
    };
 
    pwm0_sleep_alt: pwm0_sleep_alt {
        group1 {
            psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 27)&amp;gt;;
            low-power-enable;
        };
    };
 
    pwm1_default_alt: pwm1_default_alt {
        group2 {
            psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 26)&amp;gt;;
            //nordic,invert;
			bias-pull-up;
        };
    };
 
    pwm1_sleep_alt: pwm1_sleep_alt {
        group2 {
            psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 26)&amp;gt;;
            low-power-enable;
        };
    };

};*/

&amp;amp;pinctrl {
    pwm0_default_alt: pwm0_default_alt {
        group1 {
            psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 26)&amp;gt;;
        };
    };
 
    pwm0_sleep_alt: pwm0_sleep_alt {
        group1 {
            psels = &amp;lt;NRF_PSEL(PWM_OUT1, 0, 27)&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;okay&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;;
};

&amp;amp;i2c0_default {
	group1 {
		psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 30)&amp;gt;, &amp;lt;NRF_PSEL(TWIM_SCL, 0, 4)&amp;gt;;
	};
};

&amp;amp;spi0 {
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 16 0&amp;gt;;
};

&amp;amp;spi0_default {
	group1 {
		psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 19)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 21)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 0, 20)&amp;gt;;
	};
};

/*&amp;amp;uart0_default {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 0, 9)&amp;gt;, &amp;lt;NRF_PSEL(UART_RTS, 0, 5)&amp;gt;;
	};

	group2 {
		psels = &amp;lt;NRF_PSEL(UART_RX, 0, 10)&amp;gt;, &amp;lt;NRF_PSEL(UART_CTS, 0, 7)&amp;gt;;
	};
};

&amp;amp;uart0_sleep {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 0, 9)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 10)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 5)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 7)&amp;gt;;
	};
};

&amp;amp;uart0 {
	current-speed = &amp;lt;115200&amp;gt;;
};*/


&amp;amp;nfct {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;uart0_default {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_RTS, 0, 5)&amp;gt;, &amp;lt;NRF_PSEL(UART_TX, 0, 9)&amp;gt;;
	};

	group2 {
		psels = &amp;lt;NRF_PSEL(UART_RX, 0, 10)&amp;gt;, &amp;lt;NRF_PSEL(UART_CTS, 0, 7)&amp;gt;;
	};
};

&amp;amp;uart0_sleep {
	group1 {
		psels = &amp;lt;NRF_PSEL(UART_TX, 0, 9)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 10)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 5)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 7)&amp;gt;;
	};
};
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues migrating from v2.5.0 to v2.9.1</title><link>https://devzone.nordicsemi.com/thread/535110?ContentTypeID=1</link><pubDate>Tue, 13 May 2025 11:53:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6689b12-570f-4a05-b60b-879c5cbca2f7</guid><dc:creator>rwahidi</dc:creator><description>&lt;p&gt;Okay I have found the line that causes an assert, it is my custom bgt60.cpp file. There is no additional info.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;55	    ret = gpio_pin_configure_dt(&amp;amp;td, GPIO_INPUT);
ERROR: Command aborted. See the output window for additional details.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues migrating from v2.5.0 to v2.9.1</title><link>https://devzone.nordicsemi.com/thread/534229?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 08:46:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:215ea611-61c6-4c09-b071-034f057dca02</guid><dc:creator>rwahidi</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;the unchanged sample works as expected and can be commissioned.&lt;br /&gt;&lt;br /&gt;I have modified the apptask.cpp and I have created a new file BGT60.cpp/BGT60.h with functions related to the sensor. This was functional in SDK v2.5.0. After porting these changes to the new SDK and getting rid of the building errors, the board seems to be stuck in some state.&lt;br /&gt;&lt;br /&gt;I have edited the original post to include the full apptask.cpp and related functions.&lt;/p&gt;
&lt;p&gt;While debugging, stepping over the initialization function of the Sensor bgt60.init() causes the same IRQ lock. So my best guess is that some of the GPIO configures or interrupts are faulty.&lt;/p&gt;
&lt;p&gt;Thank you and best regards,&lt;/p&gt;
&lt;p&gt;Wahidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues migrating from v2.5.0 to v2.9.1</title><link>https://devzone.nordicsemi.com/thread/534120?ContentTypeID=1</link><pubDate>Tue, 06 May 2025 13:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66de5fe3-6fca-46c3-9049-c2168e1d64fc</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you share the necessary steps to reproduce this? Your shared code does not have all the needed definitions. So far I have added the occupancy cluster in ZAP tool, but since I am missing definitions for several objects and functions in AppTask.cpp, I&amp;#39;m not able to build the project. &lt;/p&gt;
&lt;p&gt;Just as a sanity check: does the unchanged light bulb sample boot properly? &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>