<?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>NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54643/nrf52832-qfab-r-loader-script</link><description>Hello, I modified the ble_app_blinky example to work on our board (removed leds and buttons) and modified the board pca10040.h the new application worked on the devkit but not in our board. As the chip in the devkit is not the same used on our board </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Dec 2019 16:58:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54643/nrf52832-qfab-r-loader-script" /><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/225000?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 16:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4732865-8179-4617-a711-f48d4a5da63a</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;We succeed to program the NRF52 by updating the firmware of the STK3600 (the board we use to do flashing), you can close this issue.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/223842?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 10:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49b3ccae-3c2c-48e9-b0d7-a81b109a21fa</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I don&amp;#39;t need the .out file. What I am interested in is the files that you used when you compiled your project. main.c, boards.h and those files. When you debug, you should be able to step through the code from these files. Where does the issue occur in that case? In one of your earlier replies, you had a screenshot from your call stack that was stuck in the reset handler. What are the calls before that? Can you give me the screenshot of the entire table?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/223820?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 09:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64dbceee-dd27-4452-8701-011bd39b838a</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;Hello, Ozone is the debugger I use, I attach the file .out of my application and the processor used so it know all registers and instruction to execute. So I think it should be related to my application&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/223675?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 15:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8366061-0332-4455-a220-5fd02415bfd2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So it doesn&amp;#39;t look like that in your application project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/223665?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 15:08:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9605ae37-08a1-49d1-9b13-46f19f8e35e8</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;all register references are taken from Ozone&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/223534?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 10:03:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d1fdfde-4891-4839-ae37-dd59dec2a376</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Where did you find all the register references, such as&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;         0000 030C   07C2   LSL     R2, R0, #31
         0000 030E   D407   BMI     #+0x0E ;&amp;lt;nrf_gpio_cfg&amp;gt; ;320&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;?&lt;/p&gt;
&lt;p&gt;Are you sure they are correct for Nordic?&lt;/p&gt;
&lt;p&gt;They are not part of the SDK functions that you refer to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/223523?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 09:41:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7d9e7b4-efae-48ac-b839-2569f963314b</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;Below all calls:&lt;/p&gt;
&lt;p&gt;//////////////////////////////////////1/////////////////////////////////////////&lt;br /&gt;&lt;br /&gt;void bsp_board_init(uint32_t init_flags)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #if defined(BOARDS_WITH_USB_DFU_TRIGGER) &amp;amp;&amp;amp; defined(BOARD_PCA10059)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (void) nrf_dfu_trigger_usb_init();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #if LEDS_NUMBER &amp;gt; 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (init_flags &amp;amp; BSP_INIT_LEDS)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 030C&amp;nbsp;&amp;nbsp; 07C2&amp;nbsp;&amp;nbsp; LSL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2, R0, #31&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 030E&amp;nbsp;&amp;nbsp; D407&amp;nbsp;&amp;nbsp; BMI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #+0x0E ;&amp;lt;nrf_gpio_cfg&amp;gt; ;320&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bsp_board_leds_init();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;//////////////////////////////////////2/////////////////////////////////////////&lt;br /&gt;&lt;br /&gt;__STATIC_INLINE void nrf_gpio_cfg_output(uint32_t pin_number)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_gpio_cfg(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 0320&amp;nbsp;&amp;nbsp; F04F 43A0&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R3, #0x50000000&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 0324&amp;nbsp;&amp;nbsp; 2103&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOVS&amp;nbsp;&amp;nbsp;&amp;nbsp; R1, #3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pin_number,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_PIN_DIR_OUTPUT,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_PIN_INPUT_DISCONNECT,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_PIN_NOPULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_PIN_S0S1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_PIN_NOSENSE);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;///////////////////////////////////////3////////////////////////////////////////&lt;br /&gt;&lt;br /&gt;__STATIC_INLINE void nrf_gpio_port_out_clear(NRF_GPIO_Type * p_reg, uint32_t clr_mask)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_reg-&amp;gt;OUTCLR = clr_mask;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 0326&amp;nbsp;&amp;nbsp; F44F 3280&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2, #0x10000&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 032E&amp;nbsp;&amp;nbsp; F8C3 250C&amp;nbsp; STR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2, [R3, #+0x50C]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 0332&amp;nbsp;&amp;nbsp; E7ED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #-0x26 ;&amp;lt;bsp_board_init&amp;gt;+0x4 ;310&lt;br /&gt;}&lt;br /&gt;///////////////////////////////////////4////////////////////////////////////////&lt;br /&gt;&lt;br /&gt;__STATIC_INLINE void nrf_gpio_cfg(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pin_number,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_gpio_pin_dir_t&amp;nbsp;&amp;nbsp; dir,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_gpio_pin_input_t input,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_gpio_pin_pull_t&amp;nbsp; pull,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_gpio_pin_drive_t drive,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_gpio_pin_sense_t sense)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&amp;amp;pin_number);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg-&amp;gt;PIN_CNF[pin_number] = ((uint32_t)dir &amp;lt;&amp;lt; GPIO_PIN_CNF_DIR_Pos)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | ((uint32_t)input &amp;lt;&amp;lt; GPIO_PIN_CNF_INPUT_Pos)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | ((uint32_t)pull &amp;lt;&amp;lt; GPIO_PIN_CNF_PULL_Pos)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | ((uint32_t)drive &amp;lt;&amp;lt; GPIO_PIN_CNF_DRIVE_Pos)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | ((uint32_t)sense &amp;lt;&amp;lt; GPIO_PIN_CNF_SENSE_Pos);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;////////////////////////////////////////5///////////////////////////////////////&lt;br /&gt;&lt;br /&gt;__STATIC_INLINE void nrf_gpio_port_out_clear(NRF_GPIO_Type * p_reg, uint32_t clr_mask)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_reg-&amp;gt;OUTCLR = clr_mask;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 0326&amp;nbsp;&amp;nbsp; F44F 3280&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2, #0x10000&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 032E&amp;nbsp;&amp;nbsp; F8C3 250C&amp;nbsp; STR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2, [R3, #+0x50C]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 0332&amp;nbsp;&amp;nbsp; E7ED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #-0x26 ;&amp;lt;bsp_board_init&amp;gt;+0x4 ;310&lt;br /&gt;}&lt;br /&gt;/*&lt;br /&gt;&amp;nbsp;* bsp_board_init is located at 0x30C but when executing the branch command &lt;br /&gt;&amp;nbsp;* it go to Reset_Handler&lt;br /&gt;*/&lt;br /&gt;/////////////////////////////////////////6//////////////////////////////////////&lt;br /&gt;&lt;br /&gt;Reset_Handler:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/* Loop to copy data from read only memory to RAM.&lt;br /&gt;&amp;nbsp;* The ranges of copy from/to are specified by following symbols:&lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __etext: LMA of start of the section to copy from. Usually end of text&lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __data_start__: VMA of start of the section to copy to.&lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __bss_start__: VMA of end of the section to copy to. Normally __data_end__ is used, but by using __bss_start__&lt;br /&gt;&amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the user can add their own initialized data section before BSS section with the INTERT AFTER command.&lt;br /&gt;&amp;nbsp;*&lt;br /&gt;&amp;nbsp;* All addresses must be aligned to 4 bytes boundary.&lt;br /&gt;&amp;nbsp;*/&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldr r1, =__etext&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldr r2, =__data_start__&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldr r3, =__bss_start__&lt;br /&gt;////////////////////////////////////////////////////////////////////////////////&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/223109?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 14:59:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fec5ea65-27ce-47ac-8963-fc8b0cd602b4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am not familiar with the DK that you link to, what it uses, and how it works.&lt;/p&gt;
&lt;p&gt;I see that you uploaded a picture from the callstack, where the reset handler was called. Can you show me the rest of the callstack as well? Maybe it can give some hints as to what went wrong.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/223000?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 10:52:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4016545-afb5-4899-a152-417eedac155f</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;I want to add a new result:&lt;/p&gt;
&lt;p&gt;As I said I used to program the custom device with &lt;a href="https://www.silabs.com/documents/public/user-guides/efm32lg-stk3600-ug.pdf"&gt;https://www.silabs.com/documents/public/user-guides/efm32lg-stk3600-ug.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We used to use that device to program the NRF51 in our old hardware version and to program the main MCU, and we never had such issue.&lt;/p&gt;
&lt;p&gt;I tested today to program our custom board using NRF52 DK by making the connection described here: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14058/external-programming-using-nrf52-dk"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/14058/external-programming-using-nrf52-dk&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Using the NRF52DK resolve the problem. have you any Idea of the difference between the two board? As the production lines are already equipped with the silabs devkit it will be easier to make just a firmware changes than adding new equipment !&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/222973?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 09:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13495124-ba28-4e06-a236-c39628f2f8d9</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;The reset Handler is called:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1575279006792v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/222744?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 10:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a0f93c6-5305-4950-8acd-5185d616a07d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Is it the error handler that catches something?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Edvin Holmseth"]Have you tried to monitor the log?&amp;nbsp;[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/222654?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 15:59:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9bb33c2-7e8e-47fc-ac0d-e8962d018330</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;To resume, the only way to start the application on my custom board is to do these steps:&lt;/p&gt;
&lt;p&gt;1- flash the application&lt;/p&gt;
&lt;p&gt;2- start the debugger (ozone)&lt;/p&gt;
&lt;p&gt;3- remove connection with the debugger&lt;/p&gt;
&lt;p&gt;4- remove the battery&lt;/p&gt;
&lt;p&gt;5- reconnect the battery then it works&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/222650?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 15:34:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:187eecb1-33f0-43c7-811a-a27c6b758424</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;I don&amp;#39;t use log.&lt;/p&gt;
&lt;p&gt;the parameters:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 0326&amp;nbsp;&amp;nbsp; F44F 3280&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2, #0x10000&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 032E&amp;nbsp;&amp;nbsp; F8C3 250C&amp;nbsp; STR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2, [R3, #+0x50C]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 0332&amp;nbsp;&amp;nbsp; E7ED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #-0x26 ;&amp;lt;bsp_board_init&amp;gt;+0x4 ;310&lt;/p&gt;
&lt;p&gt;clr_mask = 0x10000&amp;nbsp;&amp;nbsp; =&amp;gt; pin 16&lt;/p&gt;
&lt;p&gt;p_reg-&amp;gt;OUTCLR = 0x5000 0000 + 0x50C&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/222538?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 08:39:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89c91392-b55b-447b-aa9f-849ad8375871</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand exactly why it stops there when you are debugging. Have you tried to monitor the log?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you know what parameters nrf_gpio_port_out_clear() was called with when it stopped?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/222418?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 15:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:642226ab-0c67-40ea-b149-98b6eb652bcc</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;programming is not an issue, I use this: &lt;a href="https://www.silabs.com/documents/public/user-guides/efm32lg-stk3600-ug.pdf"&gt;https://www.silabs.com/documents/public/user-guides/efm32lg-stk3600-ug.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the kit is connected to SWIO et SWCLK of the nrf52 to perform the programming.&lt;/p&gt;
&lt;p&gt;yes I did debug the application, I tried with the blinky example from peripheral under s10040/blank/armgcc as this is the simplest example. When I start debugging with Ozone I see that the nrf52 reset when it try to configure the PIN 16 (LED PIN in the custom board), exactly here:&lt;/p&gt;
&lt;p&gt;__STATIC_INLINE void nrf_gpio_port_out_clear(NRF_GPIO_Type * p_reg, uint32_t clr_mask)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_reg-&amp;gt;OUTCLR = clr_mask;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 0326&amp;nbsp;&amp;nbsp; F44F 3280&amp;nbsp; MOV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2, #0x10000&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 032E&amp;nbsp;&amp;nbsp; F8C3 250C&amp;nbsp; STR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R2, [R3, #+0x50C]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000 0332&amp;nbsp;&amp;nbsp; E7ED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #-0x26 ;&amp;lt;bsp_board_init&amp;gt;+0x4 ;310&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;Then I removed the debugger connection with the custom board and removed the battery and plug it again to be sure that the device reset completely and then my board worked!&lt;/p&gt;
&lt;p&gt;So I tried again to program the same example as usual :&lt;/p&gt;
&lt;p&gt;$ nrfjprog --eraseall&lt;/p&gt;
&lt;p&gt;$ nrfjprog -f nrf52 --program _build/nrf52832_xxaa.hex --sectorerase &lt;/p&gt;
&lt;p&gt;$ nrfjprog --reset&lt;/p&gt;
&lt;p&gt;the application don&amp;#39;t start as usual so I unplug/plug the battery and the application don&amp;#39;t start.&lt;/p&gt;
&lt;p&gt;So I connected the debugger and start debugging and see the same result as before (reset when configuring pin 16), then when I removed the debugger connection and unplug/plug the battery the application started!! It seems like when I run the debugger it do something (I don&amp;#39;t know what) that enable the application to start after !!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What is wrong in what I&amp;#39;m doing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/222152?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 15:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bf94023-f769-4e81-b39d-600f862f2135</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;dud you succeed to debug the application? Do you have a programmer that you can use for this? How did you program your custom board?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/222115?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 13:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d08b672-8a03-467d-aa61-c706c64a453c</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;As my first goal is to check that our setup is good then test the currernt consumption, I made the following test:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1- I took the example peripheral/blinky tested on DK work fine&lt;/p&gt;
&lt;p&gt;2- I added to the custom board a led connected to P0.16 (LED works fine when powered)&lt;/p&gt;
&lt;p&gt;3- Modified blinky_gccnrf52.ld:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; MEMORY &lt;br /&gt;&amp;nbsp;&amp;nbsp; { &lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0x1a000 &lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; RAM (rwx) :&amp;nbsp; ORIGIN = 0x20002a98, LENGTH = 0x5568 &lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;4- Modified the makefile to use new board name &amp;quot;BOARD_PCA10040_ABW&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;=&amp;gt; Flashed soft device s132 and new application on our custom board but the led don&amp;#39;t blink, and the current is 5mA more than it should.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;5- I changed just the led number PIN to 17 and rebuild and flash it on the DK and it works&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I feel like there is something that I have to change but I don&amp;#39;t know where!&lt;/p&gt;
&lt;p&gt;Please can you help as we are stuck and can&amp;#39;t go further in the development?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/222017?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 09:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45581e06-0834-4b94-8008-7f8679223933</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;I tried to debug the app with ozone but the connection fail, I&amp;#39;m using leopard geko EFM32 development kit to connect to the BLE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/221871?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 13:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74329f03-87a7-4160-b162-36248b5b7389</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;Just to add I use SDK16&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/221869?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 13:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87ab7640-bd41-4302-a584-4f5c0eaf4c24</guid><dc:creator>sboudaud</dc:creator><description>&lt;p&gt;Thanks Edvin for the response,&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/54643/nrf52832-qfab-r-loader-script/221279"]it is probably because your custom board doesn&amp;#39;t have an external LFXTAL. Do you have that? [/quote]
&lt;p&gt;Yes we have LFXTAL 32kHz&lt;/p&gt;
&lt;p&gt;I tried this config for the&amp;nbsp;examples\ble_peripheral\ble_app_blinky (I removed all led and button management as our board don&amp;#39;t use buttons and leds) :&lt;/p&gt;
&lt;p&gt;MEMORY &lt;br /&gt;{ &lt;br /&gt;&amp;nbsp; FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0x1a000 &lt;br /&gt;&amp;nbsp; RAM (rwx) :&amp;nbsp; ORIGIN = 0x20002a98, LENGTH = 0x5568 &lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;but the result is the same as above (device is not advertising) and the current consumption is high almost 5mA for the BLE (the board without BLE consume 4.2mA and with BLE 9.24mA)&lt;/p&gt;
&lt;p&gt;maybe my issue is not there but I can&amp;#39;t figure out where&lt;/p&gt;
&lt;p&gt;our design:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1574689754473v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832-QFAB-R loader script</title><link>https://devzone.nordicsemi.com/thread/221279?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 10:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:078757f8-28fe-4999-a682-991ce3b04bbf</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You should probably adjust the memory settings to match the chip variant that you have. Check this table:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcomp_matrix_nrf52832%2FCOMP%2Fnrf52832%2Fic_revision_overview.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcomp_matrix_nrf52832%2FCOMP%2Fnrf52832%2Fic_revision_overview.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So if your device has 256kb/32kB Flash/RAM, you need to change the&amp;nbsp;&lt;span&gt;ble_app_blinky_gcc_nrf52.ld&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now it probably says something like:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0x5a000&lt;br /&gt; RAM (rwx) : ORIGIN = 0x20002a98, LENGTH = 0xd568&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This means that the application can use:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The flash from address 0x26000 to 0x80000 ( = 0x26000+0x5a000)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The RAM from address 0x2000 2a98 to 0x2001 0000.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The Flash is mapped from 0x00000000 to 0x0008 0000, and the RAM is mapped from 0x2000 0000 to 0x2001 0000. on the 512/64 kB devices.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The reason the origins are not on 0x0000 0000 and 0x2000 0000 is because some of it is reserved for the softdevice.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On the 256/32 kB version, the Flash is mapped from 0x0000 0000 to 0x0004 0000, and the RAM from 0x2000 0000 to 0x2000 8000.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So adjust the LENGTH so that ORIGIN + LENGTH equals 0x40000 in Flash and 0x2000 8000 in RAM.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now, this is probably not the issue that you see in ble_app_blinky, because this application doesn&amp;#39;t use particularly much flash or RAM.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;What you probably will see is if you run e.g. the blinky example from SDK\examples\peripheral\blinky, it will work, but the examples from SDK\examples\ble_peripheral will not work. If that is the case, it is probably because your custom board doesn&amp;#39;t have an external LFXTAL. Do you have that? If you don&amp;#39;t have it, you need to set the softdevice to use the RC Oscillator instead of the external XTAL. I don&amp;#39;t know what SDK you use, but in SDK15.3.0, look for&amp;nbsp;NRF_SDH_CLOCK_LF_SRC, and set it to 0. There are some more defines you should adjust. You can start with these:&lt;/p&gt;
&lt;p&gt;#define NRF_SDH_CLOCK_LF_SRC 0&lt;br /&gt;#define NRF_SDH_CLOCK_LF_RC_CTIV&amp;nbsp;16&lt;br /&gt;#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2&lt;br /&gt;#define NRF_SDH_CLOCK_LF_ACCURACY&amp;nbsp;1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try these configs, and see if you can see the advertisements. If not, have you tried debugging the application on the custom PCB?&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></channel></rss>