<?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>Compiler Error: PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104491/compiler-error-pm_mcuboot_primary_1_id-undeclared</link><description>Hello, 
 we are using an nRF5340-DK board together with SDK 2.4.2. 
 We want to to integrate the &amp;quot;ble simultaneious boot&amp;quot; feature into our application . 
 It should be possible to update both images (app-corr / net-net) simultanious via BLE while the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 14 Oct 2023 01:53:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104491/compiler-error-pm_mcuboot_primary_1_id-undeclared" /><item><title>RE: Compiler Error: PM_MCUBOOT_PRIMARY_1_ID' undeclared</title><link>https://devzone.nordicsemi.com/thread/450395?ContentTypeID=1</link><pubDate>Sat, 14 Oct 2023 01:53:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cab32cc-afa8-4d2e-840b-2c28cb5157d8</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am glad to hear that your issue has been resolved. I am considering this case closed. Please feel free to create new tickets if you come across any other issues in the future.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiler Error: PM_MCUBOOT_PRIMARY_1_ID' undeclared</title><link>https://devzone.nordicsemi.com/thread/450337?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 14:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdadaec0-bf2d-4f27-994d-61d69e86a373</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;in the meantime I found the problem.&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp; 2 overlay files, but did only include the first one to the build configuration.&lt;/p&gt;
&lt;p&gt;After adding the&amp;nbsp; second overlay file, which contains the following sequence, everything works fine.&lt;/p&gt;
&lt;p&gt;chosen {&lt;br /&gt;nordic,pm-ext-flash = &amp;amp;mx25r64;&lt;br /&gt;};&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiler Error: PM_MCUBOOT_PRIMARY_1_ID' undeclared</title><link>https://devzone.nordicsemi.com/thread/449827?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 12:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0222f449-aebb-4e8b-b6da-a278ef09a77a</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;it sems that this configuration is invalid. Below you can see the output of the build process:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;c:/Projekte/BleCan_CAB11A/prj.conf:82: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol NRF53_MULTI_IMAGE_UPDATE&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;error: Aborting due to Kconfig warnings&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiler Error: PM_MCUBOOT_PRIMARY_1_ID' undeclared</title><link>https://devzone.nordicsemi.com/thread/449821?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 12:28:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0509c265-fa4f-41fb-9b01-bf0845f6e296</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;C:\DevTools\ncs\v2.4.2\bootloader\mcuboot\boot\zephyr\include\sysflash\sysflash.h:45:12: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; 45 | PM_MCUBOOT_PRIMARY_1_ID : \&lt;/span&gt;[/quote]
&lt;p&gt;The error message you pointed out is coming from &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/54319b44950463936e75b4cf898ba5222083a497/boot/zephyr/pm.yml#L77"&gt;here&lt;/a&gt;. Not sure, but it looks like it lacks some partition that&amp;#39;s not defined.&lt;/p&gt;
&lt;p&gt;Could you enable the configuration CONFIG_NRF53_MULTI_IMAGE_UPDATE and give it a try?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiler Error: PM_MCUBOOT_PRIMARY_1_ID' undeclared</title><link>https://devzone.nordicsemi.com/thread/449622?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 15:01:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:842ee7e0-73c9-4b27-983c-86723bbb1bdb</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;Hallo&amp;nbsp;&lt;span&gt;Abhijith,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;we already had added 2 overlay files to our project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The first one is called app.overlay. This is in the same directory&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;as &amp;quot;CMakeLists.txt&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The second one is called mcuboot.overlay. This is in sub-directory:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;child_image&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Both overlay-files looks like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {

chosen {
nordic,pm-ext-flash = &amp;amp;mx25r64;
};
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;This are steps we have done to add the &amp;quot;simultaneious boot&amp;quot; feature to our project.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 1:&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We added the following configuration to our prj.config which was taken from here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous/prj.conf"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous/prj.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;######################################################
#&amp;#160;Boot&amp;#160;loader&amp;#160;/&amp;#160;FOTA&amp;#160;and&amp;#160;simultaneious&amp;#160;multi&amp;#160;image&amp;#160;DFU
######################################################
#&amp;#160;Enable&amp;#160;Bootloader
CONFIG_BOOTLOADER_MCUBOOT=y

#&amp;#160;Enable&amp;#160;SMP&amp;#160;Server
CONFIG_MCUMGR...Code&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 2:&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We added the app overlay file to our project which was taken from here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous/app.overlay"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous/app.overlay&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 3:&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Copying the directory &amp;quot;child_image&amp;quot; from the example to our project. This directory contains 2 files:&lt;/p&gt;
&lt;p&gt;mcuboor.cont and mcuboot.overlay. This files are also taken from here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous/child_image"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous/child_image&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiler Error: PM_MCUBOOT_PRIMARY_1_ID' undeclared</title><link>https://devzone.nordicsemi.com/thread/449542?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 11:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e38d9907-b3a8-4070-a0ac-890aca2a5289</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;C:\DevTools\ncs\v2.4.2\bootloader\mcuboot\boot\zephyr\include\sysflash\sysflash.h:45:12: note: each undeclared identifier is reported only once for each function it appears in&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; 45 | PM_MCUBOOT_PRIMARY_1_ID : \&lt;/span&gt;[/quote]
&lt;p&gt;While checking the error logs you shared, I guess this is caused by the setting inside the overlay file. Please take a look at this&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/zigbee/light_switch/child_image/mcuboot/boards/nrf5340dk_nrf5340_cpuapp_fota.overlay#L7"&gt;&amp;nbsp;sample overlay file&amp;nbsp;&lt;/a&gt;and make sure you are also setting it like this. I also recommend you share a minimal (with minimum configuration) project, which will help me reproduce the issue here for a better understanding of this issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiler Error: PM_MCUBOOT_PRIMARY_1_ID' undeclared</title><link>https://devzone.nordicsemi.com/thread/449362?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 12:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7700c875-03c2-4a9c-9549-6902e2729720</guid><dc:creator>Georg</dc:creator><description>&lt;p&gt;The prj,config file in the former mail was too short.&lt;/p&gt;
&lt;p&gt;Here is the complete prj.config:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_LOG=y&lt;/p&gt;
&lt;p&gt;CONFIG_BT=y&lt;br /&gt;#CONFIG_BT_DEBUG_LOG=y&lt;br /&gt;CONFIG_BT_SMP=y&lt;br /&gt;CONFIG_BT_SIGNING=y&lt;br /&gt;CONFIG_BT_PERIPHERAL=y&lt;br /&gt;#GS CONFIG_BT_DIS=y&lt;br /&gt;CONFIG_BT_ATT_PREPARE_COUNT=5&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;CONFIG_BT_DEVICE_NAME=&amp;quot;SEW-??:??:??:??:??:??&amp;quot;&lt;br /&gt;CONFIG_BT_DEVICE_APPEARANCE=833&lt;br /&gt;CONFIG_BT_DEVICE_NAME_DYNAMIC=y&lt;/p&gt;
&lt;p&gt;CONFIG_BT_DEVICE_NAME_MAX=30&lt;/p&gt;
&lt;p&gt;CONFIG_BT_KEYS_OVERWRITE_OLDEST=y&lt;br /&gt;CONFIG_BT_SETTINGS=y&lt;/p&gt;
&lt;p&gt;CONFIG_BT_LOG_LEVEL_INF=y&lt;br /&gt;CONFIG_BT_LOG_LEVEL_ERR=y&lt;br /&gt;CONFIG_BT_LOG_LEVEL_WRN=y&lt;/p&gt;
&lt;p&gt;CONFIG_BT_L2CAP_TX_MTU=509&lt;br /&gt;CONFIG_BT_BUF_ACL_TX_COUNT=10&lt;br /&gt;CONFIG_BT_BUF_ACL_RX_SIZE=512&lt;br /&gt;CONFIG_BT_BUF_ACL_TX_SIZE=512&lt;/p&gt;
&lt;p&gt;CONFIG_BT_USER_DATA_LEN_UPDATE=y&lt;br /&gt;CONFIG_BT_USER_PHY_UPDATE=y&lt;/p&gt;
&lt;p&gt;CONFIG_SPI=y&lt;/p&gt;
&lt;p&gt;CONFIG_SPI_NOR=y&lt;br /&gt;CONFIG_FLASH_JESD216_API=y&lt;/p&gt;
&lt;p&gt;CONFIG_I2C=y&lt;/p&gt;
&lt;p&gt;CONFIG_FLASH=y&lt;br /&gt;CONFIG_FLASH_PAGE_LAYOUT=y&lt;br /&gt;CONFIG_FLASH_MAP=y&lt;br /&gt;CONFIG_NVS=y&lt;br /&gt;CONFIG_SETTINGS=y&lt;/p&gt;
&lt;p&gt;CONFIG_NRFX_SPIM4=y&lt;br /&gt;CONFIG_MAIN_STACK_SIZE=4096&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;CONFIG_WATCHDOG=y&lt;br /&gt;CONFIG_WDT_DISABLE_AT_BOOT=y&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;######################################################&lt;br /&gt;# Boot loader / FOTA and simultaneious multi image DFU&lt;br /&gt;######################################################&lt;br /&gt;# Enable Bootloader&lt;br /&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;/p&gt;
&lt;p&gt;# Enable SMP Server&lt;br /&gt;CONFIG_MCUMGR=y&lt;br /&gt;CONFIG_MCUMGR_GRP_IMG=y&lt;/p&gt;
&lt;p&gt;# CONFIG_MCUMGR_GRP_IMG dependencies&lt;br /&gt;CONFIG_FLASH=y&lt;br /&gt;CONFIG_IMG_MANAGER=y&lt;/p&gt;
&lt;p&gt;# CONFIG_IMG_MANAGER dependencies&lt;br /&gt;CONFIG_STREAM_FLASH=y&lt;/p&gt;
&lt;p&gt;# CONFIG_MCUMGR dependencies&lt;br /&gt;CONFIG_NET_BUF=y&lt;br /&gt;CONFIG_ZCBOR=y&lt;/p&gt;
&lt;p&gt;# Required for CONFIG_IMG_MANAGER&lt;br /&gt;CONFIG_FLASH_MAP=y&lt;/p&gt;
&lt;p&gt;# Enable BLE transfer&lt;br /&gt;CONFIG_BT=y&lt;br /&gt;CONFIG_BT_PERIPHERAL=y&lt;br /&gt;#GS CONFIG_BT_DEVICE_NAME=&amp;quot;Test SMP Server&amp;quot; #GS: Gibt es oben schon&lt;br /&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y&lt;/p&gt;
&lt;p&gt;CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM=y&lt;br /&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y&lt;br /&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP=n&lt;br /&gt;CONFIG_NRF53_UPGRADE_NETWORK_CORE=y&lt;br /&gt;CONFIG_UPDATEABLE_IMAGE_NUMBER=2&lt;br /&gt;CONFIG_ADD_MCUBOOT_MEDIATE_SIM_FLASH_DTS=y&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096&lt;br /&gt;CONFIG_MCUBOOT_IMAGE_VERSION=&amp;quot;2.3.0+0&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>