<?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>mbedtls_aes error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44477/mbedtls_aes-error</link><description>Hi all, 
 I tried to merge a mesh application into the nRF5 SDK BLE example. 
 But, I have encountered the errors below: 
 &amp;quot;Output/........... Debug/Obj/ctr_drbg.o: In function `mbedtls_ctr_drbg_seed_entropy_len&amp;#39;: undefined reference to `mbedtls_aes_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Mar 2019 16:15:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44477/mbedtls_aes-error" /><item><title>RE: mbedtls_aes error</title><link>https://devzone.nordicsemi.com/thread/176280?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 16:15:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:105f7571-552e-44ed-a68a-3dc26102f4e8</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The most common reason for an assertion of a newly programmed mesh example is that an area separate from the application area is used by the mesh stack to store the current configuration, and that area may still have data in it from previous use of the board. Make sure to erase flash on the board before programming it with the application, for instance with &amp;quot;nrfjprog -e&amp;quot;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbedtls_aes error</title><link>https://devzone.nordicsemi.com/thread/174813?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 13:29:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92f85c25-c77f-4597-b3b0-4d292c9c23c1</guid><dc:creator>HDuc</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Terje,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am using&amp;nbsp;nRF5 SDK and nRF5 SDK for Mesh. I have realized the same way as&amp;nbsp;SDK Proximity coexistence&lt;br /&gt;and SDK UART coexistence example.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yesterday, I have copied and renamed the&amp;nbsp;&amp;quot;aes.c&amp;quot; file in mesh/core, I can build solution. But after that when flashing on the chip, it does not work and&amp;nbsp;notifies error message from the first line:&amp;nbsp;&amp;lt;error&amp;gt; app: ASSERTION FAILED at :0&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbedtls_aes error</title><link>https://devzone.nordicsemi.com/thread/174807?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 13:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:493a52ee-74d6-49c9-ba0b-38b3ba880d70</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, two source files with the same name may be a problem, at least with some toolchains.&lt;/p&gt;
&lt;p&gt;No, taking one of the files out of the project is not a solution. The reason is those two files have different contents, and the contents from both may be needed when combining nRF5 SDK and nRF5 SDK for Mesh.&lt;/p&gt;
&lt;p&gt;What versions of the nRF5 SDK and the nRF5 SDK for Mesh are you merging?&lt;/p&gt;
&lt;p&gt;What toolchain are you using?&lt;/p&gt;
&lt;p&gt;For nRF5 SDK v15.2.0 and nRF5 SDK for Mesh v3.1.0 I can find one occurence of aes.c in each, at ./external/mbedtls/library/aes.c and at ./mesh/core/src/aes.c respectively.&lt;/p&gt;
&lt;p&gt;Please check that you use a set of nRF5 SDK and nRF5 SDK for Mesh that are compatible. Then instead of deleting the file from the nRF5 SDK, can you try renaming the file in the nRF5 SDK for Mesh and update the project file or makefile to use the new name, then see if that solves the issue?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mbedtls_aes error</title><link>https://devzone.nordicsemi.com/thread/174560?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 13:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4a20371-ed56-4b88-9ce8-7b0f0144f4ba</guid><dc:creator>HDuc</dc:creator><description>&lt;p&gt;I think I understand the problem, but I do not know how to resolve.&lt;/p&gt;
&lt;p&gt;There are two files &amp;quot;aes.c&amp;quot;, one in mesh/core and the other in nrF_TLS. I removed the file&amp;nbsp;&lt;span&gt;&amp;quot;aes.c&amp;quot; in nrF_TLS. and the file &amp;quot;ctr_drbg.c&amp;quot; in nrF_TLS is not compatible with the file&amp;nbsp;&amp;quot;aes.c&amp;quot; in mesh/core.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>