<?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>Building a custom board in VS Code for nRF9160, and getting an error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85949/building-a-custom-board-in-vs-code-for-nrf9160-and-getting-an-error</link><description>I&amp;#39;m trying to build a custom board in VS Code to use with the nRF9160. I&amp;#39;m using a Thingy91, so I took the board file for that, and copied it into the project directory. (the board file I copied from is from C:\Users\&amp;lt;USERNAME&amp;gt;\ncs\v1.9.1\nrf\boards\arm</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Mar 2022 08:05:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85949/building-a-custom-board-in-vs-code-for-nrf9160-and-getting-an-error" /><item><title>RE: Building a custom board in VS Code for nRF9160, and getting an error</title><link>https://devzone.nordicsemi.com/thread/359720?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 08:05:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0000a661-724c-4e58-bfe2-6b015d1bfa6b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="jonnyMN"]Also, I&amp;#39;m not sure if it&amp;#39;s related, but I noticed&amp;nbsp;there&amp;#39;s one additional file I have that isn&amp;#39;t in your list: boards/arm/ncb_nrf9160/nrf52840_reset.c.[/quote]
&lt;p&gt;No, this is fine if you have in your folder. Should not affect the message you get.&amp;nbsp;&lt;/p&gt;
[quote user="jonnyMN"]After moving the ncb_nrf9160.conf file into the child_image directory, the original problem happens again (&amp;quot;&lt;span&gt;Protect mcuboot flash failed, cancel startup.&lt;/span&gt;&amp;quot;).[/quote]
&lt;p&gt;Sorry, you need to rename it to&amp;nbsp;child_image\&lt;strong&gt;mcuboot.conf&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Let me know how that works for you. Remember to do a pristine build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a custom board in VS Code for nRF9160, and getting an error</title><link>https://devzone.nordicsemi.com/thread/359637?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 14:29:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:add0b917-bb74-469f-8985-c4961439d042</guid><dc:creator>JonnyMN</dc:creator><description>&lt;p&gt;After moving the ncb_nrf9160.conf file into the child_image directory, the original problem happens again (&amp;quot;&lt;span&gt;Protect mcuboot flash failed, cancel startup.&lt;/span&gt;&amp;quot;).&lt;/p&gt;
&lt;p&gt;Also, I&amp;#39;m not sure if it&amp;#39;s related, but I noticed&amp;nbsp;there&amp;#39;s one additional file I have that isn&amp;#39;t in your list: boards/arm/ncb_nrf9160/nrf52840_reset.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a custom board in VS Code for nRF9160, and getting an error</title><link>https://devzone.nordicsemi.com/thread/359516?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 08:13:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b82c0b1-b731-440c-ae88-2ceda9b93e24</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Yes, you can add it to a new folder called: child_image\ncb_nrf9160.conf&lt;/p&gt;
&lt;p&gt;Your project folder should look similar to this:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;boards\arm\ncb_nrf9160\board_nonsecure.c
boards\arm\ncb_nrf9160\board_secure.c
boards\arm\ncb_nrf9160\board.cmake
boards\arm\ncb_nrf9160\CMakeLists.txt
boards\arm\ncb_nrf9160\Kconfig
boards\arm\ncb_nrf9160\Kconfig.board
boards\arm\ncb_nrf9160\Kconfig.defconfig
boards\arm\ncb_nrf9160\ncb_nrf9160_common.dts
boards\arm\ncb_nrf9160\ncb_nrf9160_defconfig
boards\arm\ncb_nrf9160\ncb_nrf9160_ns_defconfig
boards\arm\ncb_nrf9160\ncb_nrf9160_ns.dts
boards\arm\ncb_nrf9160\ncb_nrf9160_ns.yaml
boards\arm\ncb_nrf9160\ncb_nrf9160_partition_conf.dts
boards\arm\ncb_nrf9160\ncb_nrf9160.dts
boards\arm\ncb_nrf9160\ncb_nrf9160.yaml
boards\arm\ncb_nrf9160\pm_static.yml
boards\arm\ncb_nrf9160\pre_dt_board.cmake

child_image\ncb_nrf9160.conf

src
CMakeLists.txt
Kconfig
prj_qemu_x86.conf
prj.conf
README.rst
sample.yaml&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;That worked on my side. Let me know how it works for you.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a custom board in VS Code for nRF9160, and getting an error</title><link>https://devzone.nordicsemi.com/thread/359443?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 18:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb03840e-fba6-4c8f-96d8-aa7c4ecf513f</guid><dc:creator>JonnyMN</dc:creator><description>&lt;p&gt;Thank you, that works!&lt;/p&gt;
&lt;p&gt;Is there a way to keep&amp;nbsp;this file&amp;nbsp;with the local project folder?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a custom board in VS Code for nRF9160, and getting an error</title><link>https://devzone.nordicsemi.com/thread/359265?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 05:48:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c7edf16-937e-405a-be2b-9a0be450bbd2</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, sorry for the delayed answer. There is a one last file that you have to add here:&amp;nbsp;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bootloader\mcuboot\boot\zephyr\boards\ncb_nrf9160.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I tested on my side and&amp;nbsp;got at first the same output as you, then I copied the thingy91_nrf9160.conf and renamed to the same name as custom board and now it runs as expected.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Let me know how it works for you.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a custom board in VS Code for nRF9160, and getting an error</title><link>https://devzone.nordicsemi.com/thread/358877?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 13:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1311f8f-360e-4af4-8f1c-bdd18aeb70eb</guid><dc:creator>JonnyMN</dc:creator><description>&lt;p&gt;Yes, every file was copied. I did notice some files exist in the board file directory that weren&amp;#39;t mentioned in the webinar or the how-to page. But I kept those files since I figured they were important.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a custom board in VS Code for nRF9160, and getting an error</title><link>https://devzone.nordicsemi.com/thread/358761?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 05:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1871dca-063c-44a0-aa62-7ef3192ad8e9</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Did you copy every file &lt;em&gt;nrf\boards\arm\thingy91_nrf9160&lt;/em&gt;? Both guides that you point to are fairly old and there have been several improvements introduced since. I will need some time to test on my side as well.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>