<?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>Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11521/bootloader-problem-in-gcc-eclipse</link><description>I am working the signed image signing by taking the bootloader example in examples\dfu\experimental\bootloader_signing of SDK9.0.0 when I compiled in the Keil and flash on to the board its working fine. But when I created a make file to run in eclipse</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Mar 2018 11:57:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11521/bootloader-problem-in-gcc-eclipse" /><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/122808?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2018 11:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4f456d9-03df-43cf-bfb6-84315c79e30f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/arifmansoori"&gt;Arif Mansoori&lt;/a&gt;: Both SDK v13.0.0 and SDK v14.0.0 have Secure Bootloader examples ( found in the examples\dfu\bootloader_secure_ble folder) that should compile &amp;quot;out-of-the-box&amp;quot; with GCC. As far as I know &lt;code&gt;Security_SVC_Handler()refers to an experimental implementation of an early bootloader with signing released with SDK v10.0.0&lt;/code&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/122682?ContentTypeID=1</link><pubDate>Sat, 03 Mar 2018 07:29:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46991ec2-a6ee-4dd6-bc19-7fb925229e0a</guid><dc:creator>Arif Mansoori</dc:creator><description>&lt;p&gt;Hello Bjorn,&lt;/p&gt;
&lt;p&gt;I am using V13 and V14 on nRF52382...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/122560?ContentTypeID=1</link><pubDate>Fri, 02 Mar 2018 08:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98ee5a43-bd20-47a8-ac89-c4de42336ba7</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/arifmansoori"&gt;Arif Mansoori&lt;/a&gt;: Are you using SDK v13.0.0 on a nRF51 chip`?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/121850?ContentTypeID=1</link><pubDate>Sat, 24 Feb 2018 08:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e89543a1-b581-43fe-a7e5-d66e8b1e3393</guid><dc:creator>Arif Mansoori</dc:creator><description>&lt;p&gt;Hello Bjorn,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the clear explanation. Curious to know if the&amp;nbsp;&lt;code&gt;Security_SVC_Handler()&lt;/code&gt;&lt;span&gt;has been ported for GCC now on what version?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am getting the same error in V13.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/43560?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 17:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb5a688d-6d7f-4f1d-bdc2-099350edc848</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;yes Bjorn After porting that SVC_Handler to gcc I can able to program it well and thank you very much for you nice explanation&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/43559?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 11:54:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4d6ae07-2de6-4f19-afa3-a94671e3f898</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The way it works is when &lt;code&gt;nrf_sec_svc_verify()&lt;/code&gt; is called you&amp;#39;re in reality passing a SVC number(and the arguments of &lt;code&gt;nrf_sec_svc_verify()&lt;/code&gt;) &lt;code&gt;SVC_Handler&lt;/code&gt; in &lt;code&gt;dfu_ble_svc.c&lt;/code&gt;  which based on this number branches to the address in flash where this function is defined( like sd_ -functions). If the SVC number is equal to 8 the &lt;code&gt;SVC_Handler&lt;/code&gt; will branch to &lt;code&gt;Security_SVC_Handler()&lt;/code&gt;, which in turn will branch to the nrf_sec module.&lt;/p&gt;
&lt;p&gt;However, &lt;code&gt;Security_SVC_Handler()&lt;/code&gt;has only been defined for the ARM compiler(__CC_ARM) and not GCC.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll have to port &lt;code&gt;Security_SVC_Handler()&lt;/code&gt; from ARM to GCC and modify the GCC &lt;code&gt;SVC_Handler()&lt;/code&gt; so that it branches to &lt;code&gt;Security_SVC_Handler()&lt;/code&gt; if the SVC number is equal to 8&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/43558?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 11:08:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9315c64-d2d7-4977-8764-9ea69a4209a0</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;Hii Bjorn and sorry for my late reply when I tried I found that nrf_sec_svc_verify() returns with NRF_ERROR_SVC_HANDLER_MISSING error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/43557?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 12:28:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7efe92d7-a8a4-4bb3-b0b6-e48d425f9fa8</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Can you check if &lt;code&gt;nrf_sec_svc_verify()&lt;/code&gt; returns or not? If it returns, please provide the err_code and if it does not return use J-Link Commander to see if it branches correctly to the nrf_secmodule or ends up hardfaulting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/43556?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 09:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7aee94c7-3290-4f6b-b18f-aadb5104b5cf</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;does ECC module means nrf_sec.hex right? in that case I flashed that. Yes I know that but my point is like if the same code working in keil but giving the init packet error in eclipse can you guys suggest me where may the problem exist so that I can look in that area&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/43555?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 14:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8775878a-a967-42d1-ac12-f4e2c57812a0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, have you loaded the ECC module to flash? Otherwise the call to nrf_sec_svc_verify() will not work, and therefore fail the pre-validation step. Note that we have not tested this particular example with GCC yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/43554?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 13:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a92d6df8-a323-4bc9-a1b5-1be5fd3355a5</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;I believe that the problem should be in the prevalidation, because init packet will b handled by prevalidation, I go through the whole code but I didn&amp;#39;t find any  reason. But I really surprised because the same code that compiled in the eclipse working obviously fine. My question is like what may make difference in eclipse and keil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader problem in gcc eclipse</title><link>https://devzone.nordicsemi.com/thread/43553?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 13:19:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab7108d7-62f2-46c2-8160-5c01c566e1b8</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;What &lt;strong&gt;debugging&lt;/strong&gt; have &lt;strong&gt;you&lt;/strong&gt; done to find the cause?
Have you looked in the code to see what condition(s) would cause that message?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>