<?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>Trouble integrating the micro-ecc library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36034/trouble-integrating-the-micro-ecc-library</link><description>Hi, 
 I am developing a central and peripheral device with secure LESC connections using SDK v11. 
 
 My peripheral device is an already developed product. I am simply adding BLE capability. 
 My central device is a new product and I have created a derivative</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Jul 2018 14:22:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36034/trouble-integrating-the-micro-ecc-library" /><item><title>RE: Trouble integrating the micro-ecc library</title><link>https://devzone.nordicsemi.com/thread/139133?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 14:22:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bbc8ac8-3587-44c8-8ee9-c11b38c42a55</guid><dc:creator>David Andresky</dc:creator><description>&lt;p&gt;Got it, so as long as I am defining NRF_DEBUG_USER I have two choices.&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;delete or comment out the ASSERT in&amp;nbsp;&lt;strong&gt;nrf_drv_rng_block_rand&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;call&amp;nbsp;&lt;strong&gt;nrf_drv_rng_init&amp;nbsp;&lt;/strong&gt;so the ASSERT doesn&amp;#39;t fail&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;Off to the next problem :-)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble integrating the micro-ecc library</title><link>https://devzone.nordicsemi.com/thread/139054?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 07:16:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08915f51-0023-4244-a8fe-1a47d3ca076e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, the RNG is needed for key generation.&amp;nbsp;The softdevice uses the RNG HW module internally, which is why it doesn&amp;#39;t have to be initialized by the application code. Once the softdevice is enabled, the application can request random bytes through the&amp;nbsp;sd_rand_* APIs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble integrating the micro-ecc library</title><link>https://devzone.nordicsemi.com/thread/139008?ContentTypeID=1</link><pubDate>Wed, 04 Jul 2018 15:05:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34d705d4-fbad-43b7-a2ae-b5dc96e0ecea</guid><dc:creator>David Andresky</dc:creator><description>&lt;p&gt;Thanks, I do have DEBUG_NRF_USER defined in my peripheral project. I am calling the init function now so I could progress but it would be helpful to understand when this init function is actually required. I assume the random number generator is needed for key generation. Why do I not need to initialize for the LESC project to work?&lt;/p&gt;
&lt;p&gt;For anyone reading this encountering the same issue, I had to call the&amp;nbsp;&lt;span&gt;nrf_drv_rng_init&amp;nbsp; function after ble_stack_init but before peer_manager_init for this to work.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble integrating the micro-ecc library</title><link>https://devzone.nordicsemi.com/thread/138960?ContentTypeID=1</link><pubDate>Wed, 04 Jul 2018 12:34:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0de1f73-a8fd-4a77-a1e6-87f1b3727c6b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The example code happens to work because DEBUG_NRF/DEBUG_NRF_USER are undefined, had to debug the code to figure it out. I guess you have one or both of these symbols in your project? I would suggest to just remove the assert, alternatively, call rng init on startup. rng init seems to be redundant as long as the sd_* api is used.&amp;nbsp;&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>