<?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>Secure bootloader example doesn&amp;#39;t build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92776/secure-bootloader-example-doesn-t-build</link><description>nRF SDK 17.1.0 I&amp;#39;ve never touched this example before today, and yet it complains about a bunch of stuff not being found in the file nrf_dfu_validation.c. I am trying to use the micro-ecc backend version. 
 
 C:\Users\jgusler\Desktop\nRF5_SDK_17.1.0\components</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Oct 2022 14:16:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92776/secure-bootloader-example-doesn-t-build" /><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390685?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 14:16:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cc135d1-afc7-4679-963c-186faf890ea5</guid><dc:creator>JGusler</dc:creator><description>&lt;p&gt;Using SES 5.42a with a clean copy of the entire secure bootloader folder worked immediately&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390676?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 14:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac83279e-4d4e-4fb8-bc5c-01a9a228fad8</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="JGusler"]Maybe the build_all.bat file pulled them in[/quote]
&lt;p&gt;Yes, it does. Then this part is OK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390675?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 13:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e83fdb5e-6dfb-46a1-bce6-905c24f4c5f8</guid><dc:creator>JGusler</dc:creator><description>&lt;p&gt;Every single file in that repo I am looking at right now in the sdk under sdk/external/micro-ecc/micro-ecc&lt;/p&gt;
&lt;p&gt;Maybe the build_all.bat file pulled them in&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390674?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 13:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6869272b-6069-47aa-a37e-f8c447bf2c66</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Not sure what you mean, but micro-ecc does not ship with the SDK. That is why you have these instructions that I linked to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390671?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 13:51:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b0ad5eb-afcb-4344-a951-682eeb9ae0d9</guid><dc:creator>JGusler</dc:creator><description>&lt;p&gt;The whole thing already exists in the SDK, all the files from the repo, in the micro-ecc folder&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390668?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 13:42:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:852466db-e854-41a5-b941-419b494080aa</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You don&amp;#39;t need to modify the sample, it builds right out of the box. So there is something else wrong here. Did you remember to check out and build micro-ecc as explained under &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_crypto_backend_micro_ecc.html"&gt;Installing micro-ecc&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390665?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 13:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be27edf3-731a-49d0-b5fd-bca6d15c03b4</guid><dc:creator>JGusler</dc:creator><description>&lt;p&gt;Ah, the pca10056_s140_ble project. I added the following includes to nrf_dfu_validation.c to remove a bunch of errors&lt;br /&gt;&lt;br /&gt;#include &amp;quot;nrf_crypto_ecc.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_crypto_ecdsa.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_crypto_hash.h&amp;quot;&lt;/p&gt;
&lt;p&gt;I then had to remove the size limitation for .text and .rodata in the flash_xml (not a new issue)&lt;br /&gt;&lt;br /&gt;Now I&amp;#39;m just getting issues in nrf_crypto_ecc.o and ecdsa.o that all also mention some location in .rodata&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390661?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 13:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0994cc9d-997c-4ce0-8131-90b82b8d0a59</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="JGusler"]The project &amp;quot;secure bootloader&amp;quot;.[/quote]
&lt;p&gt;There are many example projects under this folder (different configurations, different toolchains and different ICs). Which &lt;em&gt;exact&lt;/em&gt;&amp;nbsp;project are you using?&lt;/p&gt;
[quote user="JGusler"]I&amp;#39;m using version 6.34a at them moment.[/quote]
&lt;p&gt;I saw that in the log. Please revert to&amp;nbsp;SES 5.42a just to have a know base. That is used for release testing this SDK release and the projects will build out of the box, if not, there is a high likelihood&amp;nbsp;that there is an error with your setup or that you have modified something in the SDK by accident (which is why I suggested to extract a fresh copy of the&amp;nbsp;whole SDK, not just the bootloader project)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390653?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 13:00:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dfaa1ca-71b4-48e1-a9a9-d4243ae32f29</guid><dc:creator>JGusler</dc:creator><description>&lt;p&gt;The project &amp;quot;secure bootloader&amp;quot;. I&amp;#39;m using version 6.34a at them moment. Okay, I&amp;#39;ll start messing with this then just to get it to work, I didn&amp;#39;t want to while it was &amp;#39;supposed to work&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390575?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 08:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e153fb6-05f9-4a08-98ef-0f9ba1f17572</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Which exact example project are you using?&amp;nbsp;Also note that you should expect some issues (though not these) if you use a too recent Segger Embedded Studio version. SDK 17.1.0 was release tested using SES&amp;nbsp;5.42a, so I suggest you try to build with that first to limit the number of unknowns. (You can always port the project to a newer release later).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390479?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 14:11:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae93dbb4-3845-426d-b65d-c07e148715e4</guid><dc:creator>JGusler</dc:creator><description>&lt;p&gt;Okay so I built&amp;nbsp; and compiled it, added the nrf52hf uECC lib to my project, enabled the corresponding backends and disabled the others, added micro-ecc/micro-ecc to the common preprocessor defines, all with a fresh copy of the secure bootloader example, and I&amp;#39;m still getting those errors&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390457?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 13:08:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caaed687-bde8-4f78-b79f-19cc24cf76bf</guid><dc:creator>JGusler</dc:creator><description>&lt;p&gt;Oh, I built but didnt compile, I&amp;#39;m stupid. You can delete this ticket&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader example doesn't build</title><link>https://devzone.nordicsemi.com/thread/390373?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 08:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e356c4c1-ff40-4cd7-a5b3-b3b4f1191ed2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am not able to explain this without more information. All example&amp;nbsp;bootloaders for other devices than the nRF52840 use micro-ecc by default, and as long as you have checked out and built mico-ecc&amp;nbsp; as explained under &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_crypto_backend_micro_ecc.html"&gt;Installing micro-ecc&lt;/a&gt;, it builds out of the box. Which exact example project are you using? And have you made any other changes in the SDK files? Can you try to download a fresh copy of the SDK, clone and build micro-ecc, and then see what happens?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>