<?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>micro-ecc .a file not included</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64730/micro-ecc-a-file-not-included</link><description>Hi, 
 The instruction from the &amp;#39; Getting started with Nordic&amp;#39;s Secure DFU bootloader, a step by step guide &amp;#39; page tels us to use minGW and GCC compiler to perform a &amp;#39;make&amp;#39; command on the micro-ecc file. 
 After building it, we found out that the &amp;#39;.a&amp;#39;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Aug 2020 08:08:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64730/micro-ecc-a-file-not-included" /><item><title>RE: micro-ecc .a file not included</title><link>https://devzone.nordicsemi.com/thread/264763?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 08:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f32a8a7-7cc4-45f2-8173-29b3fa03a8e5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Glad to hear that you were able to make it work with SDK 17.0.0. The project configuration I uploaded in my previous replay should work with SDK 16.0.0 too. But it&amp;#39;s probably better to just use SDK 17.0.0 if that&amp;#39;s an option.&lt;/p&gt;
[quote userid="91140" url="~/f/nordic-q-a/64730/micro-ecc-a-file-not-included/264492"]Also, is a .lib file the equivalent of a .a file in SES ?[/quote]
&lt;p&gt;Forgot to comment on this. Yes, it&amp;#39;s the equivalent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: micro-ecc .a file not included</title><link>https://devzone.nordicsemi.com/thread/264649?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 14:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fad084b6-a4fc-445a-8ca8-6d2ce185c759</guid><dc:creator>JayLynkz</dc:creator><description>&lt;p&gt;Thanks for your answer Vidar !&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried with the SDK 16, since this is what I was using for the project, and it doesn&amp;#39;t seem to work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried with SDK 17 and it does work, so I&amp;#39;ll be using this one.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: micro-ecc .a file not included</title><link>https://devzone.nordicsemi.com/thread/264581?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 09:16:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27ee0b0d-abf3-4268-b604-751198790d25</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, I should have verified this first. The process of swapping out uECC is slightly more involved than thought. I tried repeating this process here and ended up running into the same issues you described.&lt;/p&gt;
&lt;p&gt;Problem 1: The Oberon library is larger in size and requires you to allocate more flash to the bootloader (ie reduce start address) by one or two flash pages.&lt;/p&gt;
&lt;p&gt;Problem 2: The original flash_placement.xml file makes it so that the linker won&amp;#39;t warn you when the bootloader code starts to grow into the reserved &amp;quot;.mbr_params_page&amp;quot; section, which is exactly what happens when you enable the Oberon library. This results in undefined behavior. A fixed flash_placement.xml file imported from SDK v17.0.0 is included in my project attached below.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Relevant sdk_config.h settings to select oberon backend:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__crypto__config.html#gafb8e79b58dc0ddd8eeaef4b0a87005c9"&gt;NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED&lt;/a&gt; to 0&lt;/li&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__crypto__config.html#gaccdd29018b510e1eb9762f712fa05ac2"&gt;NRF_CRYPTO_BACKEND_NRF_SW_ENABLED&lt;/a&gt; to 0&lt;/li&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__crypto__config.html#ga22ba157a40ce2742fb86f3e527754a91"&gt;NRF_CRYPTO_BACKEND_OBERON_ENABLED&lt;/a&gt; to 1&lt;/li&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__crypto__config.html#ga32a6983153cfbe69069a3e5ac2668c48"&gt;NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED&lt;/a&gt; to 1&lt;/li&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__crypto__config.html#gae3bf2ae6102ba05e00ccb16c5f64d58e"&gt;NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED&lt;/a&gt; to 1&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You may also disable this config setting to make RTT logs appear in SES debug terminal:&lt;/p&gt;
&lt;p&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the bootloader debug project I used for testing:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-4b62bfc7bb974e8db18b27425f565983/pca10040_5F00_s132_5F00_ble_5F00_debug_5F00_oberon.zip"&gt;devzone.nordicsemi.com/.../pca10040_5F00_s132_5F00_ble_5F00_debug_5F00_oberon.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: micro-ecc .a file not included</title><link>https://devzone.nordicsemi.com/thread/264492?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 13:41:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8db58135-a188-4ff3-9dab-f97636c287e1</guid><dc:creator>JayLynkz</dc:creator><description>&lt;p&gt;Thanks for your answer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Following the Oberon steps of the&amp;nbsp;Step by step guide mentionned earlier, I do not get the expected result.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using SES on windows and trying to configure a nrf52832.&lt;/p&gt;
&lt;p&gt;I make the appropriate changes in SDK config, then comment the &amp;#39;#include micro-ecc&amp;#39;. After a build, I don&amp;#39;t get the error message about the memory, although I did the Flash memory changes anyway. I don&amp;#39;t see the device advertising in &amp;#39;DFU Targ&amp;#39; like I do with the micro-ecc way. May be there&amp;#39;s something I miss..&lt;/p&gt;
&lt;p&gt;Also, is a .lib file the equivalent of a .a file in SES ?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Jerome&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: micro-ecc .a file not included</title><link>https://devzone.nordicsemi.com/thread/264267?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 12:40:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0e3386f-84f4-4ded-8783-169f3acb4338</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The reason we don&amp;#39;t distribute it with the SDK has to do with licensing, as Bjørn points out here: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18432/why-nordic-do-not-provide-hex-bootloader-with-dfu-sdk12-1"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/18432/why-nordic-do-not-provide-hex-bootloader-with-dfu-sdk12-1&lt;/a&gt;. But we now include the option to select proprietary Oberon library (starting from SDK 15) as an alternative, so uECC is no longer a requirement.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>