<?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>The sample bootloader project resets with a bus fault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71706/the-sample-bootloader-project-resets-with-a-bus-fault</link><description>Steps: 
 
 UART output: 
 *** Booting Zephyr OS build v2.4.0-ncs2 *** E: ***** BUS FAULT ***** E: Precise data bus error E: BFAR Address: 0xffffffff E: r0/a1: 0xffffffff r1/a2: 0x2000142b r2/a3: 0x0000000c E: r3/a4: 0x00007000 r12/ip: 0xffffffff r14/lr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Feb 2021 14:55:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71706/the-sample-bootloader-project-resets-with-a-bus-fault" /><item><title>RE: The sample bootloader project resets with a bus fault</title><link>https://devzone.nordicsemi.com/thread/294906?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2021 14:55:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89573866-ae62-415a-95f2-13c2c576bc7b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;The secure bootloader is never used alone, so the default way to build it is to add it as a child image to your main application. That can be done by setting&amp;nbsp;&lt;span&gt;CONFIG_SECURE_BOOT=y in e.g. zephyr/samples/hello_world/prj.conf. If you build the hello world sample then, you can see the build output for the secure bootloader in&amp;nbsp;&lt;em&gt;\zephyr\samples\hello_world\&amp;lt;build folder&amp;gt;\b0&lt;/em&gt;. If you run west flash, it will flash the hex file&amp;nbsp;zephyr\samples\hello_world\&amp;lt;build folder&amp;gt;\zephyr\merged.hex which contains both the hello_world sample as well as the secure bootloader.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I just tested this and it worked:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.4.0-ncs2  ***
Attempting to boot slot 0.

Attempting to boot from address 0x8000.

Verifying signature against key 0.

Hash: 0xae...d1

Firmware signature verified.

Firmware version 1

Setting monotonic counter (version: 1, slot: 0)

Booting (0x8000).

*** Booting Zephyr OS build v2.4.0-ncs2  ***
Hello World! nrf52840dk_nrf52840&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, there might be circumstances where one would like to build the secure bootloader as a standalone.&amp;nbsp;I can look into this if you would like to.&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;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>