<?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>MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112280/mcuboot-dfu-interference-with-exfat-filesystem</link><description>Hi Folks! 
 I&amp;#39;ve got a rather bulky project that&amp;#39;s having a rather bulky project. In short, my project tries to enable both MCUBoot DFU and an ExFat Filesystem. I&amp;#39;ve narrowed the problem down to some kind of conflict happening between KConfig option for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Jul 2024 01:11:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112280/mcuboot-dfu-interference-with-exfat-filesystem" /><item><title>RE: MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/thread/494005?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 01:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0ef100d-610f-49b7-821e-cb4a3676b32f</guid><dc:creator>FinnBiggs</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thank you so much, great find on that solution. You&amp;#39;re right that that solves the USB sample.&lt;/p&gt;
&lt;p&gt;In a bizarre twist, I sunk my entire workday into trying to get my GitHub repo to build and compile and ended up in a strange state where I was getting very opaque assembler errors.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[55/180] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
FAILED: zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj 
C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52840_XXAA -DPICOLIBC_INTEGER_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=1 -D_POSIX_C_SOURCE=200809 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/zephyr/kernel/include -IC:/ncs/v2.5.0/zephyr/arch/arm/include -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/zephyr/subsys/usb/device -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.5.0/modules/debug/segger/SEGGER -IC:/ncs/v2.5.0/modules/debug/segger/Config -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros C:/Users/finnb/Documents/auli/MCUBoot_ExFat/build/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/Users/finnb/Documents/auli/MCUBoot_ExFat=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj -MF zephyr\CMakeFiles\zephyr.dir\misc\generated\configs.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj -c zephyr/misc/generated/configs.c
C:\Users\finnb\AppData\Local\Temp\ccu25E1Q.s: Assembler messages:
C:\Users\finnb\AppData\Local\Temp\ccu25E1Q.s:43: Error: missing expression
[76/180] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
ninja: build stopped: subcommand failed&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Luckily, I&amp;#39;ve been saved by a coworker, who tried this out by starting from a clean mass sample and made it simply work using your suggestions.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Here is a link to a solution.&lt;/strong&gt; (&lt;a id="" href="https://github.com/FinnWBiggs/mass_pm"&gt;https://github.com/FinnWBiggs/mass_pm&lt;/a&gt;). To any and all future readers: please feel free to do anything you like with it. .&amp;nbsp; &lt;br /&gt;&lt;br /&gt;I&amp;#39;ve added a warning to the malfunctioning ReadMe of that repo to let future viewers know, and will leave both repos up so that future viewers of this post still have a reference.&lt;/p&gt;
&lt;p&gt;If you look at what&amp;#39;s in my included error or in the repo (&lt;a id="" href="https://github.com/FinnWBiggs/MCUBoot_ExFat"&gt;https://github.com/FinnWBiggs/MCUBoot_ExFat&lt;/a&gt;) and see an obvious problem, I&amp;#39;d be happy to know why I&amp;#39;m getting assembler errors.&lt;/p&gt;
&lt;p&gt;If it looks complicated to ID a problem, then let&amp;#39;s just close this ticket -- I&amp;#39;m able to continue on my project.&lt;/p&gt;
&lt;p&gt;Regardless, I&amp;#39;m very glad to have a working filesystem, and I think we can close this ticket. Thank you Sigurd, you&amp;#39;ve been amazingly helpful. I hope you had a lovely and relaxing vacation.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Finn&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/thread/493869?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 10:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:760a7c85-aca9-443e-9c75-719a5d53af7d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I think this should solve the USB mass sample (with a workaround. There seems to be a bug in partititon manager)&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109170/bug-in-partition_manager_output-py-leading-to-incorrect-pm_foreach_affiliated_to_disk"&gt;Bug in partition_manager_output.py leading to incorrect PM_FOREACH_AFFILIATED_TO_disk&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you give it a go and let me know what you think?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/thread/493835?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 09:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cedb62a-c780-4840-ad90-bf2ff1b6defb</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I have been on vacation the last two weeks, but I am back now.&lt;br /&gt;Seems like this ticket has not been picket up in the meantime in the summer rush.&lt;/p&gt;
[quote user="FinnBiggs"]&lt;p&gt;In the process of trying to debug and come up with a minimal example that narrows the scope of this problem, I went back to the mass sample.&lt;/p&gt;
&lt;p&gt;I believe it may be a valid minimal example add CONFIG_PM_SINGLE_IMAGE to zephyr\samples\subsys\usb\mass sample.&lt;/p&gt;
&lt;p&gt;How can I enable the partition manager in this sample?&lt;/p&gt;[/quote]
&lt;p&gt;I think this is a good plan. I will try to make this example work with the partition manager on my side.&lt;/p&gt;
&lt;p&gt;By the way, another customer recently also asked about this in &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/113000/usb-mass-sample-and-partition-manager-build-issues"&gt;USB MASS sample and partition manager build issues&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/thread/492143?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 00:26:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:359aa60c-4fe5-42a3-ba8c-b97501c7fdab</guid><dc:creator>FinnBiggs</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thanks for the kind words. I&amp;#39;ve made a little bit of progress here, but mostly I&amp;#39;ve been on other issues. After devoting my whole workday to this issue I&amp;#39;ve decided to come back for more help.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/112280/mcuboot-dfu-interference-with-exfat-filesystem/490757"]Or are you considering using another file-system than the one you try to handle now altogether?&lt;br /&gt;I do not think I understand the question fully.[/quote]
&lt;p&gt;At this point I&amp;#39;m open to any solution that meets my two needs -- DFU OTA that works alongside a USB File System. If there&amp;#39;s a way to those features that uses some different Zephyr tool set, I&amp;#39;d be happy to swap.&lt;/p&gt;
&lt;p&gt;In this thread, we&amp;#39;ve boiled down the problem to some conflict between partition manager and flash.&lt;/p&gt;
&lt;p&gt;In the ReadMe here: &lt;a id="" href="https://github.com/FinnWBiggs/MCUBoot_ExFat"&gt;https://github.com/FinnWBiggs/MCUBoot_ExFat&lt;/a&gt;, I lay out build instructions, and the config options which lead to the error.&lt;/p&gt;
&lt;p&gt;----------------------------------------------------------&lt;/p&gt;
&lt;p&gt;In the process of trying to debug and come up with a minimal example that narrows the scope of this problem, I went back to the mass sample.&lt;/p&gt;
&lt;p&gt;I believe it may be a valid minimal example add CONFIG_PM_SINGLE_IMAGE to zephyr\samples\subsys\usb\mass sample.&lt;/p&gt;
&lt;p&gt;How can I enable the partition manager in this sample?&lt;/p&gt;
&lt;p&gt;Thanks again for the help.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Finn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/thread/490757?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 06:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0a32de8-32fb-4b26-96a0-3007be105f46</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="FinnBiggs"]I added pm.yml[/quote]
&lt;p&gt;No wait.&lt;br /&gt;pm.yml should not be parsed by user applications. This file is specifically only used for the build system, and not to be used by applications. Applications use pm_static.yml.&lt;/p&gt;
[quote user="FinnBiggs"](The root application does not need to define a &lt;code&gt;&lt;span&gt;pm.yml&lt;/span&gt;&lt;/code&gt; file, because its partition size and placement is implied by the size and placement of the child image partitions. If a root application defines a &lt;code&gt;&lt;span&gt;pm.yml&lt;/span&gt;&lt;/code&gt; file, it is silently ignored.)[/quote]
&lt;p&gt;Ah yes I see you already learned what I said above.&lt;/p&gt;
[quote user="FinnBiggs"]What&amp;#39;s the correct way to implement a partition manager while PM_SINGLE_IMAGE is enabled?[/quote]
&lt;p&gt;Just configure the already enabled partition manager with pm_static.yml. &lt;/p&gt;
[quote user="FinnBiggs"]What do you recommend for a DFU-compatible Filesystem?[/quote]
&lt;p&gt;Let us fix the file system alone first and then add DFU?&lt;br /&gt;Or are you considering using another file-system than the one you try to handle now altogether?&lt;br /&gt;I do not think I understand the question fully.&lt;/p&gt;
[quote user="FinnBiggs"]What would be the right resource to go learn about these tools so I don&amp;#39;t eat up time on DevZone?[/quote]
&lt;p&gt;All I got are these:&lt;br /&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/&lt;/a&gt;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html&lt;/a&gt;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;However, this mostly just requires experience, and this stuff is complicated. &lt;br /&gt;I think that you can still continue to ask here on DevZone.&lt;br /&gt;That being said, summer vacations will start here from next week, so we will be a bit low on staff in the following weeks.&lt;/p&gt;
[quote user="FinnBiggs"]Apologies for not being as helpful as I&amp;#39;d like to be, I&amp;#39;m new to this and feeling lost.[/quote]
&lt;p&gt;No worries at all, this is not easy, and we know it.&lt;br /&gt;We should be making it easier, and I hope that we will in the future, but for now we use tech support as a way to make it easier for you guys to use. (At least that is how I see it).&lt;br /&gt;I think that you are doing a great job, both in trying to learn this and in being friendly!&lt;/p&gt;
&lt;p&gt;Alright, now let me try to explain how I would do this:&lt;/p&gt;
&lt;p&gt;Create the following pm_static.yml:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;fatfs_storage:
  address: 0xf0000
  end_address: 0x100000
  region: flash_primary
  size: 0x10000
  affiliation: disk
  extra_params: {
      disk_name: &amp;quot;SD&amp;quot;,
      disk_cache_size: 4096,
      disk_sector_size: 512,
      disk_read_only: 0
  }
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You may want to change the region to your external storage, and the address range to either the start or end of that region.&lt;/p&gt;
&lt;p&gt;I also used an arbitrary size, so maybe tweak that a bit.&lt;/p&gt;
&lt;p&gt;When you build with this, you should be able to verify that it was added to partitioning by looking at build/partitioning.yml, which contains the final partitioning for the project.&lt;/p&gt;
&lt;p&gt;Now that the partition does have the affiliation &amp;quot;disk&amp;quot;, you should hopefully no longer get the error PM_FOREACH_SOMETHING_SOMETHING_disk that I was getting when building the project.&lt;/p&gt;
&lt;p&gt;Let me know how this goes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/thread/490729?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 00:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad1810fa-4694-473c-af0f-88045a58d76e</guid><dc:creator>FinnBiggs</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I appreciate the pointers on partition management, and the simplification of CONFIG_PM_SINGLE_IMAGE.&lt;/p&gt;
&lt;p&gt;Just to keep things up to date, here&amp;#39;s how it&amp;#39;s going.&lt;/p&gt;
&lt;p&gt;I transitioned this project from static to dynamic partitioning.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;I removed pm_static.yml&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;I added pm.yml&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Result: memory report no longer contains a partitions tab&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;I believe this is due to the note here (&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html#configuration"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html#configuration&lt;/a&gt;)&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;(The root application does not need to define a &lt;code class="file docutils literal notranslate"&gt;&lt;span class="pre"&gt;pm.yml&lt;/span&gt;&lt;/code&gt; file, because its partition size and placement is implied by the size and placement of the child image partitions. If a root application defines a &lt;code class="file docutils literal notranslate"&gt;&lt;span class="pre"&gt;pm.yml&lt;/span&gt;&lt;/code&gt; file, it is silently ignored.)&lt;/p&gt;
&lt;p&gt;Next, I define a child image using the multi-image build tooling.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;add configuration/nrf52840dk_nrf52840/child_image.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;I&amp;#39;m concerned about this on the grounds that PM_CONFIG_SINGLE_IMAGE seems to conflict with adding child images.&lt;/p&gt;
&lt;p&gt;I think maybe the best way forward would be for me to take a step back and ask for more general guidance.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;What&amp;#39;s the correct way to implement a partition manager while PM_SINGLE_IMAGE is enabled?&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;What do you recommend for a DFU-compatible Filesystem?&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;What would be the right resource to go learn about these tools so I don&amp;#39;t eat up time on DevZone?&lt;/p&gt;
&lt;p&gt;Apologies for not being as helpful as I&amp;#39;d like to be, I&amp;#39;m new to this and feeling lost.&lt;/p&gt;
&lt;p&gt;Thank you very much for any help you can provide.&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Finn&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/thread/490345?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 14:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c6ae695-8094-4e67-8680-d2217966cabc</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I have not solved it yet, but I were able to build your project, and i have found some things that could help.&lt;/p&gt;
&lt;p&gt;First some basic partitioning:&lt;br /&gt;You do not need to define your whole partitioning scheme. Just place your partition somewhere, and the partition manager will try to partition around it. Easiest if you put yours in an end.&lt;/p&gt;
&lt;p&gt;And, try to build with CONFIG_PM_SINGLE_IMAGE=y instead of MCUboot. This way, you get the same error and do not use MCUboot. This is good because it proves that the issue is specifically partition manager and not MCUboot, which narrows it down.&lt;/p&gt;
&lt;p&gt;Then for this specific error:&lt;/p&gt;
&lt;p&gt;Just under where one of the errors point to, I see this:&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/2e2523efe52a7ac89f0567b8798fd857b1e71ae3/drivers/disk/flashdisk.c#L486-L503"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/2e2523efe52a7ac89f0567b8798fd857b1e71ae3/drivers/disk/flashdisk.c#L486-L503&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Looking into this, i found something interresting in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#configuration-file-format"&gt;Partition Manager docs&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;fatfs_storage:
    affiliation: disk
    extra_params: {
        disk_name: &amp;quot;SD&amp;quot;,
        disk_cache_size: 4096,
        disk_sector_size: 512,
        disk_read_only: 0
    }
    placement:
        before: [end]
        align: {start: 4096}
    inside: [nonsecure_storage]
    size: 65536&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I suspect that your partition may need such an affiliation and extra parameters.&lt;br /&gt;I tried to do this for your example, and it did not work first try, so I suggest that you do some more testing with this info as well, and let me know what you find&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/thread/490046?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 18:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebd6d686-ded7-4dcc-ac75-f0bf1cad2b6b</guid><dc:creator>FinnBiggs</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;My mistake on the build instructions! I wrote up build instructions for the first version, but didn&amp;#39;t add any to this version.&lt;/p&gt;
&lt;p&gt;Thanks for sticking with me.&lt;/p&gt;
&lt;p&gt;I have added build instructions to the ReadMe.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/FinnWBiggs/MCUBoot_ExFat"&gt;github.com/.../MCUBoot_ExFat&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;------------------&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been working on this for a few hours now. Good news and bad news.&lt;/p&gt;
&lt;p&gt;Good news!&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;I&amp;#39;ve added a pm_static.yml to configure the partition management. This solves the problem where the PM_some_storage_partition_ID was undefined. I can set up a file system using this partition.&lt;/p&gt;
&lt;p&gt;Bad news&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;The new system, which contains a pm_static.yml recreates my initial problem -- flashdisk driver problems.&lt;/p&gt;
&lt;p&gt;------------------&lt;/p&gt;
&lt;p&gt;How do you advise I make these compatible?&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Finn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/thread/489954?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 11:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70e32078-5e12-42de-a858-d73615ae12c5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Sweet, having a smaller sample to look at is always good!&lt;/p&gt;
&lt;p&gt;I have to be a bit difficult out of principle:&lt;br /&gt;Please give me SDK version and build instructions (command/board config is enough, if nothing else is needed). Then, I can test the project.&lt;/p&gt;
[quote user="FinnBiggs"]When I enable MCUBoot, I get errors regarding the definition of PM_some_storage_partition_ID, which implies that MCUBoot is somehow affecting my devicetree&amp;#39;s storage partitioning IDs.&amp;nbsp;[/quote]
&lt;p&gt;MCUboot will enable the Partition Manager, which will override DTS partitioning. See &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/multi-image-builds-and-the-partition-manager/"&gt;this lesson I wrote&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you set &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#external-flash-memory-partitions"&gt;this&lt;/a&gt;, which you have not, MCUboot will automatically use the external flash for its partitions. Other file systems can also be directed to external flash in this way by Kconfig, for example &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_PM_PARTITION_REGION_NVS_STORAGE_EXTERNAL"&gt;CONFIG_PM_PARTITION_REGION_NVS_STORAGE_EXTERNAL&lt;/a&gt;. See &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/partition_manager/pm.yml.nvs"&gt;pm.yml.nvs&lt;/a&gt; for how our build system uses it to define partitions.&lt;/p&gt;
&lt;p&gt;For file systems specifically:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/0862baa53463f8bf51418752315c535349920add/include/flash_map_pm.h#L32-L41"&gt;These lines&lt;/a&gt; can be frustrating when working with file systems. As you can see they map different stuff to &amp;quot;storage&amp;quot;, which may cause conflicts. So be aware of that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/thread/489821?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 20:05:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e57ea578-30a0-4bf3-9dab-13c78205bdbb</guid><dc:creator>FinnBiggs</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll set up a minimized version and update here.&lt;/p&gt;
&lt;p&gt;Update: &lt;/p&gt;
&lt;p&gt;Here is a minimized sample causing a collision between ExFat and MCUBoot.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/FinnWBiggs/MCUBoot_ExFat"&gt;https://github.com/FinnWBiggs/MCUBoot_ExFat&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I do get a different error than I did in mini_desktop, but that&amp;#39;s okay. I believe that if we can find where the two tools conflict, it will tell me enough about the system that I can follow the same logic to get my project working.&lt;/p&gt;
&lt;p&gt;When MCUBoot is disabled, my application finds my devicetree&amp;#39;s &amp;quot;some_storage_partition&amp;quot; (whose name I changed to avoid potential naming and defines, such as in flash_map_pm).The sample runs and sets up a USB storage system as intended.&lt;/p&gt;
&lt;p&gt;When I enable MCUBoot, I get errors regarding the definition of PM_some_storage_partition_ID, which implies that MCUBoot is somehow affecting my devicetree&amp;#39;s storage partitioning IDs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How do you recommend making MCUBoot and Mass storage compatible based on this?&lt;/p&gt;
&lt;p&gt;Thank you very much for your time,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Finn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot DFU Interference with ExFat Filesystem</title><link>https://devzone.nordicsemi.com/thread/489729?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 12:15:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:358be499-5a81-48ec-85a6-e21247bd6219</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I&amp;#39;ve got a rather bulky project that&amp;#39;s having a rather bulky project. In short, my project tries to enable both MCUBoot DFU and an ExFat Filesystem. I&amp;#39;ve narrowed the problem down to some kind of conflict happening between KConfig option for enabling each of these features.[/quote]
&lt;p&gt;You probably have thought about this, but:&lt;/p&gt;
&lt;p&gt;Can I suggest that you try a simpler sample with only MCUboot and ExFat and see if that works?&lt;br /&gt;I find that having a lot of other things in a project as well tent to complicate debugging&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>