<?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>DFU_public_key.c won&amp;#39;t compile.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55629/dfu_public_key-c-won-t-compile</link><description>I have create a new DFU_public_key.c file with nrf_util and replace the existing file in the dfu_req_handling folder (MacOSX). 
 I had to change the name of the nRF5_SDK_14.2-2.0_17b948a to nRF5_SDK_14 because Terminal.app had problem with the name while</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jan 2020 13:54:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55629/dfu_public_key-c-won-t-compile" /><item><title>RE: DFU_public_key.c won't compile.</title><link>https://devzone.nordicsemi.com/thread/227699?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 13:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6d90e4d-0df2-46bf-9758-553d8dc7bae4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I have been out of office for the Christmas Holidays, and we have been short staffed, so we have not been able to answer all the cases.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="SL06"]and have install the 4.9 - 2014 q4 version. although a version 5.4 was available[/quote]
&lt;p&gt;&amp;nbsp;That is good. I recommend you to use the same version that the SDK that you are using was written in and tested with.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU_public_key.c won't compile.</title><link>https://devzone.nordicsemi.com/thread/226763?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2019 18:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef784fae-8b22-4890-b42f-08af279e72f1</guid><dc:creator>SL06</dc:creator><description>&lt;p&gt;Finaly, the secure_dfu_ble app is compiling without error.... Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU_public_key.c won't compile.</title><link>https://devzone.nordicsemi.com/thread/226762?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2019 18:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37912ef0-6bff-40fe-96d8-a728eba86aa4</guid><dc:creator>SL06</dc:creator><description>&lt;p&gt;I have download and install the gcc-arm file from this site :&amp;nbsp;&lt;a href="https://launchpad.net/gcc-arm-embedded/+download"&gt;https://launchpad.net/gcc-arm-embedded/+download&lt;/a&gt;&amp;nbsp; and have install the 4.9 - 2014 q4 version. although a version 5.4 was available.&lt;/p&gt;
&lt;p&gt;I have change the&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF5_SDK_14/components/toolchain/gcc/Makefile.posix file according to the version installed:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;GNU_INSTALL_ROOT := /usr/local/gcc-arm-none-eabi-4_9-2014q4/bin/&lt;br /&gt;GNU_VERSION := 4.9&lt;br /&gt;GNU_PREFIX := arm-none-eabi&lt;/p&gt;
&lt;p&gt;Then&amp;nbsp;the&amp;nbsp;&lt;span&gt;build_all.sh work fine up to the end.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU_public_key.c won't compile.</title><link>https://devzone.nordicsemi.com/thread/226759?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2019 17:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dde0dde-21d1-4109-844f-9bd2c04ddd5d</guid><dc:creator>SL06</dc:creator><description>&lt;p&gt;I have just look in the folder /usr/local and the folder&amp;nbsp;gcc-arm-none-eabi-4_9-2015q3 is absent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU_public_key.c won't compile.</title><link>https://devzone.nordicsemi.com/thread/226692?ContentTypeID=1</link><pubDate>Sun, 22 Dec 2019 23:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48a1f0aa-ac64-4d38-b071-4862148cb26b</guid><dc:creator>SL06</dc:creator><description>&lt;p&gt;Yes, the script work, but partially. &amp;nbsp;I have now the uECC files, but I have the following problem :&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SLMini-I5-172:micro-ecc slareau$ make -C nrf51_armgcc/armgcc &amp;amp;&amp;amp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt; make -C nrf51_iar/armgcc &amp;amp;&amp;amp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt; make -C nrf51_keil/armgcc &amp;amp;&amp;amp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt; make -C nrf52hf_armgcc/armgcc &amp;amp;&amp;amp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt; make -C nrf52hf_iar/armgcc &amp;amp;&amp;amp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt; make -C nrf52hf_keil/armgcc &amp;amp;&amp;amp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt; make -C nrf52nf_armgcc/armgcc &amp;amp;&amp;amp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt; make -C nrf52nf_iar/armgcc &amp;amp;&amp;amp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt; make -C nrf52nf_keil/armgcc&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;make: /usr/local/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc: Command not found&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cannot find: &amp;#39;/usr/local/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc&amp;#39;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please set values in: &amp;quot;/Users/slareau/nrf52_development/nRF5_SDK_14/components/toolchain/gcc/Makefile.posix&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;according to the actual configuration of your system.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;../../../../components/toolchain/gcc/Makefile.common:129: *** Cannot continue.&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Stop.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU_public_key.c won't compile.</title><link>https://devzone.nordicsemi.com/thread/226484?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2019 07:48:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe4a6eb0-a53f-499f-b225-6c5981f7c0c6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry, I didn&amp;#39;t notice you used a Mac. Run the build_all.sh instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU_public_key.c won't compile.</title><link>https://devzone.nordicsemi.com/thread/226452?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2019 22:28:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:475fca83-a83a-41a9-8b00-aa07050ff43d</guid><dc:creator>SL06</dc:creator><description>&lt;p&gt;I have tried to compile&amp;nbsp;&lt;span&gt; the &amp;quot;build_all.bat&amp;quot; script on my Mac (OS&amp;nbsp;10.14.6) without&amp;nbsp;success. &amp;nbsp;The script first ask me to install Java SDK. &amp;nbsp;I have install the 13.01 version. &amp;nbsp;When I ran the script a&amp;nbsp;sedan time after reboot I had to error message : &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SLMini-I5-172:~ slareau$ /Users/slareau/nrf52_development/nRF5_SDK_14.2-2.0_17b948a\ /external/micro-ecc/build_all.bat ; exit;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/Users/slareau/nrf52_development/nRF5_SDK_14.2-2.0_17b948a /external/micro-ecc/build_all.bat: line 1: @ECHO: command not found&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/Users/slareau/nrf52_development/nRF5_SDK_14.2-2.0_17b948a /external/micro-ecc/b: command not found2:&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/Users/slareau/nrf52_development/nRF5_SDK_14.2-2.0_17b948a /external/micro-ecc/build_all.bat: line 3: syntax error near unexpected token `(&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/Users/slareau/nrf52_development/nRF5_SDK_14.2-2.0_17b948a /external/micro-ecc/build_all.bat: line 3: `:: This script will use git (must be in %PATH%) and arm-n&amp;#39;ne-eabi tools in combination with GNU Make&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;logout&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Saving session...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;...copying shared history...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;...saving history...truncating history files...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;...completed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have also tried to download and reinstall the SDK14. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can I compile those file on my PC and transfer those back on my Mac ? &amp;nbsp;Or maybe you can just send me the proper uECC.c and&amp;nbsp;&lt;span&gt;uECC.h file...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU_public_key.c won't compile.</title><link>https://devzone.nordicsemi.com/thread/225837?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 09:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b79ca99-6cf8-4444-af66-ccbfb8f5d1c1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Open the folder &amp;quot;nRF5_SDK_14.2.0_17b948a\external\micro-ecc&amp;quot; and run the &amp;quot;build_all.bat&amp;quot; script (double click it).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If it can&amp;#39;t find the micro_ecc_lib_init.c it is probably because you have changed the path. It shouldn&amp;#39;t be dependent on the name of the SDK folder itself, but if you have moved things around inside the SDK, then the relative paths will not match anymore. Try to right click the file in project explorer, and select &amp;quot;options for ...&amp;quot; or something similar, depending on what compiler/IDE you are using.&lt;/p&gt;
&lt;p&gt;Then you can see what path it expects this file to be in. Make sure that it is correct.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU_public_key.c won't compile.</title><link>https://devzone.nordicsemi.com/thread/225746?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2019 17:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a058d88-227c-4284-ae1a-a3a4f744f990</guid><dc:creator>SL06</dc:creator><description>&lt;pre&gt;Thanks,  adding the comma have solved this issue.  Now I have the following error :&lt;br /&gt;Compiling &amp;lsquo;micro_ecc_lib_init.c&amp;rsquo;&lt;br /&gt;uECC.h: No such file or directory&lt;br /&gt;&lt;br /&gt;uECC.h is not part of the SDK as is , but there is the micro-eco folder present . I am trying to follow instruction on Nordic infocenter for SDK14.2.  I am using the nrf52DK + SES.  There is nrf52nf_armgcc  and nrf52hf_armgcc  file in that folder.  Which one should I use?&lt;br /&gt;&lt;br /&gt;I am puzzled with this issue since I tough that I had successfully compiled the BLEsecure DFU booth loader once without issue. After I change the SDK folder name, nothing worked.  May be I was dreaming...  &lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU_public_key.c won't compile.</title><link>https://devzone.nordicsemi.com/thread/225652?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2019 13:17:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eab1fce-30d5-4ed9-bf4c-3104f24275d2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry. I checked now, and I saw the same behavior. It seems like there is a bug in the latest version of nrfutil. the dfu_public_key.c (or whatever you choose to call it) is missing a comma at the end of the first line of the key. So if you add this comma, it should compile. Taking the dfu_public_key.c that I sent you, it should look like this after the fix:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/* This file was automatically generated by nrfutil on 2019-12-16 (YY-MM-DD) at 14:00:14 */

#include &amp;quot;stdint.h&amp;quot;
#include &amp;quot;compiler_abstraction.h&amp;quot;

/** @brief Public key used to verify DFU images */
__ALIGN(4) const uint8_t pk[64] =
{
    0xfe, 0x9e, 0x34, 0x2f, 0x68, 0x35, 0x1d, 0x0a, 0x24, 0x5d, 0x7f, 0x50, 0x36, 0x67, 0xa7, 0x73, 0xb9, 0x7f, 0xbd, 0x76, 0x82, 0x9f, 0x96, 0xf1, 0x43, 0xad, 0x70, 0xf8, 0x6a, 0x24, 0x50, 0x09,
    0x65, 0x5a, 0x05, 0x62, 0xf4, 0x97, 0xe0, 0x8f, 0xaa, 0xc0, 0x1a, 0x2a, 0x38, 0xdb, 0x3a, 0x43, 0x33, 0x25, 0xcb, 0xcc, 0xae, 0x94, 0xa3, 0x42, 0x3a, 0x5e, 0x4d, 0xc1, 0x3f, 0xe3, 0xe3, 0x34
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I will report this internally. Thank you for the feedback.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU_public_key.c won't compile.</title><link>https://devzone.nordicsemi.com/thread/225637?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2019 13:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4e78fdb-6830-4738-8973-10c706d1192a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What version of nrfutil do you use? You can check by using the command &amp;quot;nrfutil version&amp;quot;.&lt;/p&gt;
&lt;p&gt;What compiler do you use? Is it possible to send the dfu_public_key.c file (or a separate dfu_public_key.c that you don&amp;#39;t intend to use, but can replicate the problem)?&lt;/p&gt;
&lt;p&gt;What command did you use to generate the keys?&lt;/p&gt;
&lt;p&gt;Can you try with the attached dfu_public_key.c? Does that compile?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ffb0d94b3cdf4c22b36fedb320246429/dfu_5F00_public_5F00_key.c"&gt;devzone.nordicsemi.com/.../dfu_5F00_public_5F00_key.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>