<?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>Issues in compiling BLE Secure bootloader by enable macro-ecc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55968/issues-in-compiling-ble-secure-bootloader-by-enable-macro-ecc</link><description>Hello, 
 
 Hello, 
 
 I am using nRF52840, SDK_16.0.0, S140 SoftDevice and Segger 4.16 for flashing the image. 
 
 I have issues in compiling Secure bootloader with my Public key. This is on top of my previous query 
 https://devzone.nordicsemi.com/support</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Dec 2019 09:37:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55968/issues-in-compiling-ble-secure-bootloader-by-enable-macro-ecc" /><item><title>RE: Issues in compiling BLE Secure bootloader by enable macro-ecc</title><link>https://devzone.nordicsemi.com/thread/226840?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 09:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4be7d45a-9b50-4215-b14b-01f9cad9075d</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On nRF52840, I am able to do DFU by enabling&amp;nbsp;&lt;span&gt;&amp;nbsp;NRF_CRYPTO_BACKEND_CC310_BL_ENABLED and disabling&amp;nbsp; NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/support/240436"&gt;https://devzone.nordicsemi.com/support/240436&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For nRF52832, once I started if any issues I will raise a separate query.&lt;/p&gt;
&lt;p&gt;Thank you for your support.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues in compiling BLE Secure bootloader by enable macro-ecc</title><link>https://devzone.nordicsemi.com/thread/226839?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 15:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a2569f6-05b3-46f5-bb03-4039fa3b926b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="beemavishnu"]Even I enabled NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED and&amp;nbsp;NRF_CRYPTO_BACKEND_CC310_BL_ENABLED is enabled already in Secure BLE bootloader.[/quote]
&lt;p&gt;It is possible to have both backend enabled, in case you want to use one backend for one cryptographic algorithm and another backend for a second algorithm. Not all backends support all cryptographic operations.&lt;/p&gt;
[quote user="beemavishnu"]But its nRF tools, DFU menu, I am not able to upload. Its getting disconnected.[/quote]
&lt;p&gt;At what point is it getting disconnected? Have you debugged the bootloader to see if any errors are reported, causing a reset in the chip?&lt;/p&gt;
[quote user="beemavishnu"]2) Even in ble_app_blinky do I need to enable&amp;nbsp;NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED. Even after enabling and without including&amp;nbsp;micro_ecc_lib_nrf52.a still I am able to compile ble_app_blinky application.[/quote]
&lt;p&gt;This is not enabled by default in this example, and it compiles just fine for me. What changes have you made to the example/SDK? If you are not able to compile the ble_app_blinky example, please try with a fresh copy of the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues in compiling BLE Secure bootloader by enable macro-ecc</title><link>https://devzone.nordicsemi.com/thread/226838?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 14:34:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b9ec3f3-87ee-4973-bd58-9070e7178ba2</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any updates on this issue. Though I am able to do DFU by disabling NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED. Still I am trying to understanding the reason why its failing if I enable micro-ecc macro. This will help me in further for nRF52832 where micro-ecc to be used.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues in compiling BLE Secure bootloader by enable macro-ecc</title><link>https://devzone.nordicsemi.com/thread/226837?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 17:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a86b5da-1c61-4790-aec8-f951992d4f9b</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Thank you for your inputs. I have further query.&lt;/p&gt;
&lt;p&gt;Sorry, I edited entire query. Please respond as soon as possible as I am totally struck up.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I missed this point to mentioned above. Even I enabled NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED and&amp;nbsp;NRF_CRYPTO_BACKEND_CC310_BL_ENABLED is enabled already in Secure BLE bootloader.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With above settings I am able to compile bootloader and see &amp;quot;DFUCT40&amp;quot; in nRF Tools app. But I am not able to do DFU with my example code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1) I created package with below command. Is this fine.&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --hw-version 52 &lt;strong&gt;--application-version 2&lt;/strong&gt; --application ble_app_blinky_pca10056_s140.hex &lt;strong&gt;--sd-req 0xCA&lt;/strong&gt; --key-file nRF52840_CT40_private.key ble_app_blinky_dfu_package_V2.zip&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But its nRF tools, DFU menu, I am not able to upload. Its getting disconnected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2) Even in ble_app_blinky do I need to enable&amp;nbsp;NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED. Even after enabling and without including&amp;nbsp;micro_ecc_lib_nrf52.a still I am able to compile ble_app_blinky application. Am I doing any mistake ?&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;a) Do I need to include micro_ecc_lib_nrf52.a ?&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;b) How about public key. Do I need to include even public_key.c file into ble_app_blinky.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have lot of confusions.&amp;nbsp;Similar to bootloader, I am attaching my application (By removing private key). Please cross check once and suggest appropriate settings.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-121d7958334b4ae4b9172b3f4340f660/ble_5F00_peripheral.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_peripheral.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues in compiling BLE Secure bootloader by enable macro-ecc</title><link>https://devzone.nordicsemi.com/thread/226836?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 17:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eb30799-6912-41f8-9dc5-6706239b675e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Steps in 1-4 look correct.&lt;/p&gt;
&lt;p&gt;In the image in 5, the golden tick means that this is the default configured backend, it does not mean that other backends are not supported. nRF52840 is the only nRF52 series IC that&amp;nbsp;includes HW crypto acceleration through the CC310 Cryptocell. This is the recommended backend when available, while other ICs must rely on software cryptography.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>