<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Update from nRF Connect SDK 1.7 to nRF Connect SDK 1.9.1</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87932/update-from-nrf-connect-sdk-1-7-to-nrf-connect-sdk-1-9-1</link><description>I am attempting to upgrade from nRF Connect SDK version 1.7 to version 1.9.1 
 My application is using the nrf52840 on a custom board. 
 I&amp;#39;m using Zephyr and created a board file based on the nrf52840-nrf52840-dk board (and an overlay file). 
 Everything</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Tue, 24 May 2022 15:30:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87932/update-from-nrf-connect-sdk-1-7-to-nrf-connect-sdk-1-9-1" /><item><title>RE: Update from nRF Connect SDK 1.7 to nRF Connect SDK 1.9.1</title><link>https://test-devzone.nordicsemi.com/thread/369351?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 15:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd298bea-0aae-4f8d-9907-2e0d962e01c8</guid><dc:creator>user111786</dc:creator><description>&lt;p&gt;Hi Ed,&lt;br /&gt;&lt;br /&gt;This would be a correct example to follow. &lt;br /&gt;I would recommend you to start using Visual Studio Code with nRF Connect Extension instead of Segger Embedded Studio. I have tested unmodified littlefs sample myself in VS Code and there were no build errors.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update from nRF Connect SDK 1.7 to nRF Connect SDK 1.9.1</title><link>https://test-devzone.nordicsemi.com/thread/369120?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 20:31:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46d70064-8d8e-435c-8acb-7db61b7d1c11</guid><dc:creator>user89639</dc:creator><description>&lt;p&gt;But the calls I make come directly from the example in:&lt;/p&gt;
&lt;p&gt;zephyr/samples/subsys/fs/littlefs/src/main.c&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there a different example I should be following?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update from nRF Connect SDK 1.7 to nRF Connect SDK 1.9.1</title><link>https://test-devzone.nordicsemi.com/thread/368921?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 07:35:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22375fd1-239b-4ae1-a402-6999691ea365</guid><dc:creator>user111786</dc:creator><description>&lt;p&gt;Hi Ed,&lt;br /&gt;&lt;br /&gt;If you are using partition manager in your project, it is recommended to use macros from flash_map_pm.h instead of DT natives.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update from nRF Connect SDK 1.7 to nRF Connect SDK 1.9.1</title><link>https://test-devzone.nordicsemi.com/thread/368427?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 14:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b72a4e9-dfb8-4016-bb00-35195964e7c4</guid><dc:creator>user111786</dc:creator><description>&lt;p&gt;Hi Ed,&lt;br /&gt;&lt;br /&gt;When using zero latency interrupt, 0-5 are available interrupt levels for the application.&lt;br /&gt;&lt;br /&gt;Regarding&amp;nbsp;&lt;span&gt;DT_NODE_BY_FIXED_PARTITION_LABEL, I have asked internally and I will get back to you with more information, possibly till the end of this week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update from nRF Connect SDK 1.7 to nRF Connect SDK 1.9.1</title><link>https://test-devzone.nordicsemi.com/thread/368118?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 21:05:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67fa433d-79a6-466a-83f3-3a917cc6c3b5</guid><dc:creator>user89639</dc:creator><description>&lt;p&gt;Here is the full error message:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2&amp;gt; Compiling &amp;lsquo;littlefs_fs.c&amp;rsquo;&lt;br /&gt;2&amp;gt; In file included from [01m[KE:/N/S/v1.9.1/zephyr/include/sys/util_macro.h:34[m[K,&lt;br /&gt;2&amp;gt; from [01m[KE:/N/S/v1.9.1/zephyr/include/sys/atomic.h:16[m[K,&lt;br /&gt;2&amp;gt; from [01m[KE:/N/S/v1.9.1/zephyr/include/kernel_includes.h:21[m[K,&lt;br /&gt;2&amp;gt; from [01m[KE:/N/S/v1.9.1/zephyr/include/kernel.h:17[m[K,&lt;br /&gt;2&amp;gt; from [01m[KE:/N/S/v1.9.1/zephyr/subsys/fs/littlefs_fs.c:10[m[K:&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/devicetree/fixed-partitions.h:53:9:[m[K [01;31m[Kerror: [m[K&amp;#39;[01m[KDT_COMPAT_fixed_partitions_LABEL_storage_PARTITION_ID[m[K&amp;#39; undeclared here (not in a function); did you mean &amp;#39;[01m[KDT_COMPAT_fixed_partitions_LABEL_image_1_EXISTS[m[K&amp;#39;?&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/sys/util_internal.h:67:26:[m[K [01;36m[Knote: [m[Kin definition of macro &amp;#39;[01m[K__DEBRACKET[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/sys/util_internal.h:59:2:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[K__GET_ARG2_DEBRACKET[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/sys/util_internal.h:54:2:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[K__COND_CODE[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/sys/util_macro.h:157:2:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KZ_COND_CODE_1[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/devicetree.h:2873:2:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KCOND_CODE_1[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/sys/util_internal.h:64:53:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[K__DEBRACKET[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/sys/util_internal.h:59:2:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[K__GET_ARG2_DEBRACKET[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/sys/util_internal.h:54:2:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[K__COND_CODE[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/sys/util_macro.h:157:2:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KZ_COND_CODE_1[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/subsys/fs/littlefs_fs.c:819:4:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KCOND_CODE_1[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/devicetree/fixed-partitions.h:69:40:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KDT_CAT[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/storage/flash_map.h:270:2:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KDT_FIXED_PARTITION_ID[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/devicetree/fixed-partitions.h:53:2:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KDT_CAT[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/storage/flash_map.h:270:24:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KDT_NODE_BY_FIXED_PARTITION_LABEL[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/subsys/fs/littlefs_fs.c:821:10:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KFLASH_AREA_ID[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[Kzephyr/include/generated/devicetree_unfixed.h:8231:56:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KDEFINE_FS[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/include/sys/util_internal.h:99:36:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KDT_FOREACH_OKAY_INST_zephyr_fstab_littlefs[m[K&amp;#39;&lt;br /&gt;2&amp;gt; [01m[KE:/N/S/v1.9.1/zephyr/subsys/fs/littlefs_fs.c:826:1:[m[K [01;36m[Knote: [m[Kin expansion of macro &amp;#39;[01m[KDT_INST_FOREACH_STATUS_OKAY[m[K&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update from nRF Connect SDK 1.7 to nRF Connect SDK 1.9.1</title><link>https://test-devzone.nordicsemi.com/thread/368084?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 14:20:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b1bc808-d179-4a52-92d4-fbf43c2258ee</guid><dc:creator>user89639</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;I changed the priority in the IRQ_CONNECT() call from 6 to 5 and that seemed to clear that error. (But why?)&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t call DT_NODE_BY_FIXED_PARTITION_LABEL directly...&amp;nbsp; &amp;nbsp;So it must be being called through this code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if 1
//
// LITTLEFS declaration
//
#if DT_NODE_EXISTS(PARTITION_NODE)
FS_FSTAB_DECLARE_ENTRY(PARTITION_NODE);
#else /* PARTITION_NODE */
FS_LITTLEFS_DECLARE_DEFAULT_CONFIG(storage);
static struct fs_mount_t lfs_storage_mnt = {
	.type = FS_LITTLEFS,
	.fs_data = &amp;amp;storage,
	.storage_dev = (void *)FLASH_AREA_ID(storage),
	.mnt_point = &amp;quot;/lfs1&amp;quot;,
};
#endif /* PARTITION_NODE */

// For LITTLEFS
void
initFileSystem(fileSystemInfo *fs) {
  fs-&amp;gt;mp=
#if DT_NODE_EXISTS(PARTITION_NODE)
       &amp;amp;FS_FSTAB_ENTRY(PARTITION_NODE)
#else
       &amp;amp;lfs_storage_mnt
#endif
       ;

  int err= fs_mount(fs-&amp;gt;mp);
  fs-&amp;gt;devId= (uintptr_t)fs-&amp;gt;mp-&amp;gt;storage_dev;
}




#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that&amp;nbsp; &amp;nbsp;DT_NODE_EXISTS(PARTITION_NODE)&amp;nbsp; &amp;nbsp;resolves to TRUE, so the first part of both #if clauses is used.&lt;/p&gt;
&lt;p&gt;Here is the region of portion of the .overlay file where the partition is defined:&lt;/p&gt;
&lt;p&gt;/ {&lt;br /&gt; fstab {&lt;br /&gt;&amp;nbsp; compatible = &amp;quot;zephyr,fstab&amp;quot;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; lfs1: lfs1 {&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; compatible = &amp;quot;zephyr,fstab,littlefs&amp;quot;;&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; mount-point = &amp;quot;/lfs1&amp;quot;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; partition = &amp;lt;&amp;amp;lfs1_part&amp;gt;;&lt;br /&gt;&amp;nbsp; /*&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; automount;&lt;br /&gt;&amp;nbsp; */&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; read-size = &amp;lt;16&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; prog-size = &amp;lt;16&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cache-size = &amp;lt;64&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; lookahead-size = &amp;lt;32&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; block-cycles = &amp;lt;512&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; };&lt;br /&gt;&amp;nbsp; };&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&amp;amp;mx25r64 {&lt;br /&gt;&amp;nbsp; jedec-id = [01 20 18];&lt;br /&gt;&amp;nbsp; size = &amp;lt;134217728&amp;gt;;&lt;br /&gt;&amp;nbsp; partitions {&lt;br /&gt;&amp;nbsp; &amp;nbsp; compatible = &amp;quot;fixed-partitions&amp;quot;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; #address-cells = &amp;lt;1&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; #size-cells = &amp;lt;1&amp;gt;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; lfs1_part: partition@0 {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; label = &amp;quot;lfs1&amp;quot;;&lt;br /&gt;/*&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;0x00000000 0x02000000&amp;gt;;&lt;br /&gt;*/&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;0x00000000 0x00020000&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp;};&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(Note that the above code doesn&amp;#39;t &amp;quot;survive&amp;quot; being put into a &amp;quot;code box&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But for both errors...&amp;nbsp; &amp;nbsp; This all works fine with nRF Connect SDK version 1.7.1&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But it fails for version 1.9.1&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need to understand what has changed in the OS that the IRQ level needs to change from 6 to 5 and the file specification doesn&amp;#39;t work.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update from nRF Connect SDK 1.7 to nRF Connect SDK 1.9.1</title><link>https://test-devzone.nordicsemi.com/thread/368055?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 12:48:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0c8e69b-e7c7-43c5-a0dd-6e5df77b97bf</guid><dc:creator>user111786</dc:creator><description>&lt;p&gt;Hi, Ed,&lt;br /&gt;&lt;br /&gt;Regarding the first error, could you please provide more information how you use DT_NODE_BY_FIXED_PARTITION_LABEL()?&lt;br /&gt;&lt;br /&gt;Regarding the second error, this is an interrupt priority issue. You could try changing the priority level from 6 to 5 in IRQ_CONNECT().&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>