<?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>NCS doesnt create correct bootloader for custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101431/ncs-doesnt-create-correct-bootloader-for-custom-board</link><description>Hello, 
 I am not able to get a working bootloader. I am using the following environment: 
 - NCS 2.4.0 
 - blinky PWM example 
 - nRF52840 dev kit, and custom board based on nRF52840 
 - using the standard way of creating bootloader image ( CONFIG_BOOTLOADER_MCUBOOT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jul 2023 08:47:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101431/ncs-doesnt-create-correct-bootloader-for-custom-board" /><item><title>RE: NCS doesnt create correct bootloader for custom board</title><link>https://devzone.nordicsemi.com/thread/434629?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 08:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd96f588-3ce3-469b-8440-bfb65f98e8b3</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;thanx for the suggestion. It looks that this workaround fixes the problem with creating a correct bootloader image.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will use this workaround while the standard approach for the mcuboot is fixed.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS doesnt create correct bootloader for custom board</title><link>https://devzone.nordicsemi.com/thread/434433?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 11:04:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e841d9b-dd12-4b5a-a4bc-99a96bd3f48f</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;In order to configure mcuboot, instead of making changes to the cmake file, could you try to create a child_image folder as &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous"&gt;shown here &lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;You can take a look at &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/ug_multi_image.html#:~:text=of%20CONFIG_MCUBOOT_BUILD_STRATEGY_FROM_SOURCE.-,Defining%20and%20enabling%20a%20child%20image,-%EF%83%81"&gt;defining a child image&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS doesnt create correct bootloader for custom board</title><link>https://devzone.nordicsemi.com/thread/434424?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 10:36:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be82823e-08c6-4caf-bc1f-571b512f7b44</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;the above mentioned warning is probably not relevant to the bootloader image problem. I tried NCS v2.0.0 where the warning is&amp;nbsp;not present and the bootloader problem is present also there.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS doesnt create correct bootloader for custom board</title><link>https://devzone.nordicsemi.com/thread/434248?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 13:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dc197ae-fa92-4226-8650-640dc3562980</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;when building the mcuboot image I am getting this warning, could point to the root cause:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;=== child image mcuboot - begin ===&lt;/em&gt;&lt;br /&gt;&lt;em&gt;loading initial cache file D:/Dev/zephyr_blinky/blinky_pwm/build/mcuboot/child_image_preload.cmake&lt;/em&gt;&lt;br /&gt;&lt;em&gt;CMake Warning (dev) at D:/Dev/zephyr_blinky/blinky_pwm/build/mcuboot/child_image_preload.cmake:7 (set):&lt;/em&gt;&lt;br /&gt;&lt;em&gt; Syntax error in cmake code at&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;D:/Dev/zephyr_blinky/blinky_pwm/build/mcuboot/child_image_preload.cmake:7&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;when parsing string&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;d:\ncs\toolchains\31f4403e35\opt\bin\python.exe&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Invalid escape sequence \3&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Policy CMP0010 is not set: Bad variable reference syntax is an error. Run&lt;/em&gt;&lt;br /&gt;&lt;em&gt; &amp;quot;cmake --help-policy CMP0010&amp;quot; for policy details. Use the cmake_policy&lt;/em&gt;&lt;br /&gt;&lt;em&gt; command to set the policy and suppress this warning.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;This warning is for project developers. Use -Wno-dev to suppress it.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please pass this to the developers.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS doesnt create correct bootloader for custom board</title><link>https://devzone.nordicsemi.com/thread/434226?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 12:55:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3112fa6e-a442-4799-a4e6-bfbb94a8d002</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Priyanka,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;you can try reproducing my problem by using the mcuboot.conf from my project in any sample project and using dev kit. I am interested to see how it works for you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;peter&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS doesnt create correct bootloader for custom board</title><link>https://devzone.nordicsemi.com/thread/434223?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 12:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a082c1a7-d1a9-411e-90e7-e84184acbc03</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;I saw your reply. Based on my latest finding it looks that root cause of my problem is different than yours. Also changing NCS version doesnt help in my case.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS doesnt create correct bootloader for custom board</title><link>https://devzone.nordicsemi.com/thread/434221?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 12:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0504ff34-f655-44c4-8e30-8a364a1bf744</guid><dc:creator>zachwork</dc:creator><description>&lt;p&gt;Saw your post in my thread, have you read this discussion thread related to bootloader issues and are they related to your problem?&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84564/unable-to-find-bootable-image---mcuboot"&gt;Unable to find bootable image - MCUBoot&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS doesnt create correct bootloader for custom board</title><link>https://devzone.nordicsemi.com/thread/434218?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 12:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70f3e671-1024-458d-b4e4-2b83817df472</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;please find attached the project with some relevant build files.&lt;/p&gt;
&lt;p&gt;There is no error log. I run the bootloader, then pause it in a never ending loop and I can see where it is executed.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5488.blinky_5F00_pwm.zip"&gt;devzone.nordicsemi.com/.../5488.blinky_5F00_pwm.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS doesnt create correct bootloader for custom board</title><link>https://devzone.nordicsemi.com/thread/434215?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 12:33:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c466087-09a5-4ffb-b740-e3ad16503043</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;Could you attach the error logs? Also, could you attach the modified blinky sample?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS doesnt create correct bootloader for custom board</title><link>https://devzone.nordicsemi.com/thread/434209?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 12:17:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c41caf9-c929-4163-aba3-f88bb9314002</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;it looks the problem is related to using mcuboot.conf file. My custom board uses external LFCLK source that is not configured during kernel start so I have to configure using RC oscillator instead and thus to use mcuboot.conf file.&lt;/p&gt;
&lt;p&gt;When I removed the mcuboot.conf file, the dev kit was able to start and run the application. The custom board waits in a loop for starting LFCLK, that is ok, as LFCLK cant start in this case.&lt;/p&gt;
&lt;p&gt;The mcuboot.conf file is simple:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;em&gt;CONFIG_BOARD_ENABLE_DCDC=n&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/em&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;and the CMakelists.txt file contains:&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;set(mcuboot_OVERLAY_CONFIG&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;${CMAKE_CURRENT_LIST_DIR}/mcuboot.conf&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;)&lt;/em&gt;&lt;/div&gt;
&lt;br /&gt;So I need a help - to identify what is wrong with my mcuboot.conf configuration?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;peter&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>