<?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>Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11451/problem-with-the-bootloader-start-adress</link><description>Hii all
I am trying to run bootloader_signing example from the gcc. Nordic already gave an example for Keil I wanted to port the same thing for gcc. But its not working, On verifcation I come to notice that there is problem with the start address of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Sep 2016 16:47:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11451/problem-with-the-bootloader-start-adress" /><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43212?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 16:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2418f69-f1ea-40eb-8cce-67618729ff31</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;Yes thats generally happend it take some time to verify signature.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43211?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 16:42:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0266563-842f-41f8-8dc6-6ef544ba8033</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;Hi Pavan,&lt;/p&gt;
&lt;p&gt;Thanks for sharing the code. Appreciate it.! Do u also observe that signature verification takes quite a long time.&lt;/p&gt;
&lt;p&gt;Best, Arjun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43210?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 16:28:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d6cd0ea-3c5b-4042-994b-5b0999cbbcad</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;This is the ported code for Security_SVC_Handler&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void __attribute__ (( naked )) Security_SVC_Handler(void)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;{
const uint32_t sec_svc_handler = 0x0003DC00;
const uint32_t svcall_irq_offset = 0x2c;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;__asm volatile(
		&amp;quot;mov r2,%0\t\n&amp;quot;
		&amp;quot;add r2,r2,#44\t\n&amp;quot;
		&amp;quot;ldr r2,[r2]\t\n&amp;quot;
		&amp;quot;bx r2\t\n&amp;quot;
		&amp;quot;.align\t\n&amp;quot;
		:: &amp;quot;r&amp;quot; (sec_svc_handler), &amp;quot;r&amp;quot; (svcall_irq_offset)
		: &amp;quot;r2&amp;quot;
		);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43209?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 16:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:376452f1-0e68-4521-ab4a-d6c0f02b8e50</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;Hi Pavan,&lt;/p&gt;
&lt;p&gt;Could you share with us the porting u did for gcc?&lt;/p&gt;
&lt;p&gt;Thanks in Advance,
Arjun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43203?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 17:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32bd6584-7622-4106-9abd-fa0bd1f0f648</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;yes you need to port that for gcc as like ARM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43208?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 17:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7721cd1-ffc1-4a61-87ba-87d0a0b75b9e</guid><dc:creator>[Florian]</dc:creator><description>&lt;p&gt;You are right! Is mixed up the regular SVC_Handler and the Security_SVC_Handler. The Security_SVC_Handler is only available for __CC_ARM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43207?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 17:43:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07dc8f3b-1cd7-4aef-b8e7-1f897a9dc24f</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;Still confused do you talking about the file SDK\examples\dfu\experimental\bootloader_signing\dfu_ble_svc.c
there is no implementation for void &lt;strong&gt;attribute&lt;/strong&gt; (( naked )) Security_SVC_Handler(void) under #elif defined ( &lt;strong&gt;GNUC&lt;/strong&gt; ) right? its only implemented under #if defined ( __CC_ARM ) as __asm void Security_SVC_Handler(void). If yes can you please share that .c file by just highlighting Security_SVC_Handler&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43206?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 17:21:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99111545-edbc-4100-b9b0-40646a4b3ce1</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure which SDK that you are using but I didn&amp;#39;t see any implementation for void Security_SVC_Handler(void) in SDK9 or SDK10 in &lt;strong&gt;GNUC&lt;/strong&gt; It only there at definition of __CC_ARM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43205?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 16:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ed4dc3c-c333-443b-b6de-a0f5f18a8b5f</guid><dc:creator>[Florian]</dc:creator><description>&lt;p&gt;Hi Pavan,
thanks for your fast response. I already read the post you mentioned, but I do not really understand what is missing if gcc is used. As far as I understand this post, it is referring to &amp;#39;dfu_ble_svc.c&amp;#39;. This file is already part of the bootloader and it contains an implementation of &amp;#39;Security_SVC_Handler&amp;#39; if &amp;#39;&lt;strong&gt;GNUC&lt;/strong&gt;&amp;#39; is defined. So can you give me a hint what is missing?&lt;/p&gt;
&lt;p&gt;I am am using nRF51 SDK  v10.0.0_dc26b5e from &lt;a href="https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v10.x.x/nRF51_SDK_10.0.0_dc26b5e.zip."&gt;developer.nordicsemi.com/.../nRF51_SDK_10.0.0_dc26b5e.zip.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43204?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 16:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:607ba3d5-3351-484e-9b8b-12113c5684b1</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;Yes Florian even I face this issue because cal to SVC_Handler is not defined for gcc, only defined for Keil we need to define our own this link will help you &lt;a href="https://devzone.nordicsemi.com/question/65790/bootloader-problem-in-gcc-eclipse/?comment=65961#comment-65961"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
look at comments section&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43202?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 16:18:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db45565b-3084-472c-8dbc-5ee09db7e4c4</guid><dc:creator>[Florian]</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a similar issue. After changing the linker script and adding the macro SIGNING to the makefile is was able to launch the signing bootloader. But when I try to upload the new firmware &amp;#39;dfu_init_prevalidate&amp;#39; always returns NRF_ERROR_SVC_HANDLER_MISSING. I tried SDK v10 and v11 but the problem stays the same.&lt;/p&gt;
&lt;p&gt;I used the following commands to flash the code&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog -e
nrfjprog --program s110_nrf51_8.0.0_softdevice.hex
nrfjprog --program nrf51422_xxac_s110.hex
nrfjprog --program nrf_sec.hex
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43201?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2016 17:02:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b4169a2-08b9-4201-a81e-5a243ee8a357</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;Yes Luckily I got the solution for that we need to define the SIGNING in the make file so that it writes the BOOTLOADER_REGION_START as 39c00 you can have a look at dfu_types.h that solves my issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43199?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2016 15:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f59b650b-22d1-4cd2-a471-7c349c843133</guid><dc:creator>Pavan kumar</dc:creator><description>&lt;p&gt;Hi Spockeli you can find that in the image in the test result.rar any how I added in my question the linker script that I&amp;#39;m using
Thanks and regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with the bootloader start adress</title><link>https://devzone.nordicsemi.com/thread/43200?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2016 14:46:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3cae330-212c-4eb8-ab7c-3f4c9bc84898</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Can you share your linker script?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>