<?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 on nRF9160 custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81738/mcuboot-on-nrf9160-custom-board</link><description>I have written simple hello world code on nRF9160 custom board and enables the MCUBoot as bootloader using CONFIG_BOOTLOADER_MCUBOOT=y in prj.conf file. 
 Also, made some bootloader related configuration at mcuboot.conf file. 
 I have kept the break point</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Dec 2021 14:32:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81738/mcuboot-on-nrf9160-custom-board" /><item><title>RE: mcuboot on nRF9160 custom board</title><link>https://devzone.nordicsemi.com/thread/342563?ContentTypeID=1</link><pubDate>Wed, 08 Dec 2021 14:32:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a773649-89a3-40cb-b431-cf2cad8e1daa</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello! Sorry about the delay.&lt;/p&gt;
[quote user="MayurKumar"]program execution didn&amp;#39;t halt at breakpoints[/quote]
&lt;p&gt;I see, that is odd. And you do manage to set the breakpoints? Note that not every line gives you that option.&lt;/p&gt;
&lt;p&gt;What about at line 90 on loader.c? Place a breakpoint, then go to Debug --&amp;gt; Reset --&amp;gt; Reset &amp;amp; Run.&lt;/p&gt;
[quote user="MayurKumar"]Is there any settings to be enable for nRF9160DK board?[/quote]
&lt;p&gt;Nothing you require for this to work, but speaking of which I believe&amp;nbsp;CONFIG_DEBUG_OPTIMIZATIONS could be helpful.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot on nRF9160 custom board</title><link>https://devzone.nordicsemi.com/thread/341694?ContentTypeID=1</link><pubDate>Thu, 02 Dec 2021 12:35:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcf1a2a5-4bc6-4e46-b13d-bf17da6e0bd9</guid><dc:creator>MayurKumar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am able to debug my custom board using ozone debug as per your suggestion.&lt;/p&gt;
&lt;p&gt;My issue is that mcuboot is unable to read/swap the image. So i want to debug loader.c file on nRF9160 DK board. When i do same process for DK board i unable to debug it (program execution didn&amp;#39;t halt at breakpoints)?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there any settings to be enable for nRF9160DK board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot on nRF9160 custom board</title><link>https://devzone.nordicsemi.com/thread/339681?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2021 14:36:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd995885-ecde-49bf-ae45-0402094c3747</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hey Mayur!&lt;/p&gt;
&lt;p&gt;Yes, this is possible. This is what you need to do:&lt;/p&gt;
&lt;p&gt;- Program the sample to the chip&lt;/p&gt;
&lt;p&gt;- Start an Ozone-session, and when you choose an elf file, then choose&amp;nbsp;&lt;span&gt;&amp;lt;sample&amp;gt;/&amp;lt;build folder&amp;gt;/mcuboot/zephyr/zephyr.elf.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;- Then you drag the file&amp;nbsp;&lt;span&gt;/bootloader/mcuboot/boot/bootutil/src/loader.c into the Ozone window.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Then choose debug --&amp;gt; start debug session --&amp;gt; Attach to running program&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Then set a breakpoint in loader.c and press Debug --&amp;gt; reset&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This should work.&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;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot on nRF9160 custom board</title><link>https://devzone.nordicsemi.com/thread/339328?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 04:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6debd69-8692-43ba-87ce-f910641dfffd</guid><dc:creator>MayurKumar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In my hello world application i have added the below prj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Bootloader
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_SECURE_BOOT=y
#CONFIG_BUILD_S1_VARIANT=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUBOOT_IMG_MANAGER=y

# External Falsh for secondary storage
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y

CONFIG_PM_EXTERNAL_FLASH=y
CONFIG_PM_EXTERNAL_FLASH_DEV_NAME=&amp;quot;MX25R64&amp;quot;
CONFIG_PM_EXTERNAL_FLASH_BASE=0x0
CONFIG_PM_EXTERNAL_FLASH_SIZE=0x800000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;mcuboot.conf as below&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# 
CONFIG_SPI=y
#CONFIG_SPI_1=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
#CONFIG_SPI_NOR_STACK_WRITE_BUFFER_SIZE=16

CONFIG_MULTITHREADING=y
CONFIG_BOOT_MAX_IMG_SECTORS=512 

# Enable these for serial recovery
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=4
CONFIG_LOG_OVERRIDE_LEVEL=4
CONFIG_PM_EXTERNAL_FLASH=y
CONFIG_PM_EXTERNAL_FLASH_DEV_NAME=&amp;quot;MX25R64&amp;quot;
CONFIG_PM_EXTERNAL_FLASH_BASE=0x0
CONFIG_PM_EXTERNAL_FLASH_SIZE=0x800000
CONFIG_PM_EXTERNAL_FLASH_SUPPORT_LEGACY=y

#secondary image
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
CONFIG_PM_PARTITION_SIZE_MCUBOOT_SECONDARY=0xf0000

#OVERWRITE mode
CONFIG_BOOT_UPGRADE_ONLY=y

#shared memory area
#CONFIG_MEASURED_BOOT=y

CONFIG_MAIN_STACK_SIZE=10240

CONFIG_GPIO=y

# Enable regulators
CONFIG_REGULATOR=y
&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;pm_static.yml as below&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
EMPTY_0:
  address: 0xC000
  end_address: 0x10000
  placement:
    before:
    - mcuboot_pad
  region: flash_primary
  size: 0x4000
mcuboot_primary:
  address: 0x10000
  end_address: 0x100000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - spm
  - app
  region: flash_primary
  sharers: 0x1
  size: 0xF0000
  span: *id001
mcuboot_primary_app:
  address: 0x10200
  end_address: 0x100000
  orig_span: &amp;amp;id002
  - app
  - spm
  region: flash_primary
  size: 0xEFE00
  span: *id002
mcuboot_pad:
  address: 0x10000
  end_address: 0x10200
  placement:
    align:
      start: 0x8000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
spm:
  address: 0x10200
  end_address: 0x20200
  inside:
  - mcuboot_primary_app
  placement:
    before:
    - app
  region: flash_primary
  size: 0x10000
app:
  address: 0x20200
  inside:
  - mcuboot_primary_app
  region: flash_primary
  size: 0xDFE00
mcuboot_secondary:
  address: 0x0
  device: MX25R64
  end_address: 0xf0000
  placement:
    align:
      start: 0x000
  region: external_flash
  size: 0xf0000
storage:
  address: 0xf0000
  end_address: 0x800000
  device: MX25R64
  region: external_flash
  size: 0x710000
  &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank You,&lt;/p&gt;
&lt;p&gt;MayurKumar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot on nRF9160 custom board</title><link>https://devzone.nordicsemi.com/thread/339274?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 14:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:548f3ccb-c3e4-4295-88df-5bc3b47106bf</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hey Mayurkumar!&lt;/p&gt;
&lt;p&gt;I see you have another case that strictly isn&amp;#39;t related to this, but still has the same title. Please keep the support tickets separate by giving them different and descriptive titles.&lt;/p&gt;
&lt;p&gt;When it comes to your issue though, it might be that the thread isn&amp;#39;t running on the files you mentioned. Can you tell me more about what configurations you added?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>