<?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>Programming custom board through SES corrupts host device&amp;#39;s bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57878/programming-custom-board-through-ses-corrupts-host-device-s-bootloader</link><description>I am using a nRF52 DK to program an externally powered board with a NRF52811. 
 I am able to flash a blinky program onto the custom board successfully using the output .hex files after building in SES 
 However, when I try to Start Execution while Debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 01 Mar 2020 20:05:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57878/programming-custom-board-through-ses-corrupts-host-device-s-bootloader" /><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/237297?ContentTypeID=1</link><pubDate>Sun, 01 Mar 2020 20:05:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0667c6ba-8abb-41bf-9fe7-1079dd40d7a6</guid><dc:creator>sheddanl</dc:creator><description>&lt;p&gt;Hi Bjorn, this one worked. No idea why my one didn&amp;#39;t work originally after modifying everything. For anyone having similar problems to me here is a guide for running the twi_scanner example on nRF52811 hardware, if starting from a non-emulated project (i.e. pca10056):&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;.emProject file modifications&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right Click the project in the Project Explorer. In this case it will be named &amp;#39;twi_scanner_pca10056&amp;#39;&lt;/li&gt;
&lt;li&gt;Select &amp;#39;Open Solution in Editor&amp;#39; from the menu that appears.&lt;/li&gt;
&lt;li&gt;Change&amp;nbsp;arm_fp_abi from &amp;quot;Hard&amp;quot; to &amp;quot;Soft&amp;quot;&lt;/li&gt;
&lt;li&gt;Change&amp;nbsp;arm_fpu_type from &amp;quot;FPv4-SP-D16&amp;quot; to &amp;quot;Soft&amp;quot;&lt;/li&gt;
&lt;li&gt;Change&amp;nbsp;arm_target_device_name from &amp;quot;nRF52840_xxAA&amp;quot; to&amp;nbsp;&lt;span&gt;&amp;quot;nRF52811_xxAA&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Add in any directories you might want to use to&amp;nbsp;c_user_include_directories&lt;/li&gt;
&lt;li&gt;Change in&amp;nbsp;c_preprocessor_definitions:
&lt;ol&gt;
&lt;li&gt;BOARD_PCA10056 to your custom board&lt;/li&gt;
&lt;li&gt;FLOAT_ABI_HARD to&amp;nbsp;FLOAT_ABI_SOFT&lt;/li&gt;
&lt;li&gt;NRF52840_XXAA to&amp;nbsp;NRF52811_XXAA&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Change debug_register_definition_file from&amp;nbsp;&amp;quot;../../../../../../modules/nrfx/mdk/nrf52840.svd&amp;quot; to&amp;nbsp;&amp;quot;../../../../../../modules/nrfx/mdk/nrf52811.svd&amp;quot;&lt;/li&gt;
&lt;li&gt;Change linker_section_placement_macros:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;FLASH_PH_SIZE=0x100000 to&amp;nbsp;0x30000&lt;/li&gt;
&lt;li&gt;RAM_PH_SIZE=0x40000 to&amp;nbsp;0x6000&lt;/li&gt;
&lt;li&gt;FLASH_SIZE=0x100000 to&amp;nbsp;0x30000&lt;/li&gt;
&lt;li&gt;RAM_SIZE=0x40000 to&amp;nbsp;0x6000&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Under &amp;lt;folder Name=&amp;quot;None&amp;quot;&amp;gt;
&lt;ol&gt;
&lt;li&gt;&amp;lt;file file_name=&amp;quot;../../../../../../modules/nrfx/mdk/ses_startup_nrf52840.s&amp;quot; /&amp;gt; change to&amp;nbsp;&amp;lt;file file_name=&amp;quot;../../../../../../modules/nrfx/mdk/ses_startup_nrf52811.s&amp;quot; /&amp;gt;&lt;/li&gt;
&lt;li&gt;&amp;lt;file file_name=&amp;quot;../../../../../../modules/nrfx/mdk/system_nrf52840.c&amp;quot; /&amp;gt; change to&amp;nbsp;&amp;lt;file file_name=&amp;quot;../../../../../../modules/nrfx/mdk/system_nrf52811.c&amp;quot; /&amp;gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;sdk_config.h modifcations&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The reason I have included these is to use them as an example of the things you might have to change in a separate example.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;NRFX_TWIM0_ENABLED from 0 to 1&lt;/li&gt;
&lt;li&gt;NRFX_TWI0_ENABLED from 0 to 1&lt;/li&gt;
&lt;li&gt;TWI1_ENABLED from 1 to 0&lt;/li&gt;
&lt;li&gt;UART_LEGACY_SUPPORT from 1 to 0&lt;/li&gt;
&lt;/ol&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;In order to get things printing in the Debug Terminal&lt;/em&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;NRF_LOG_BACKEND_RTT_ENABLED from 0 to 1&lt;/li&gt;
&lt;li&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED from 1 to 0&lt;/li&gt;
&lt;li&gt;NRF_LOG_BACKEND_UART_ENABLED from 1 to 0&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;main.c modifications&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Change your pin assignments&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thank you Bjorn for all your help.&lt;/p&gt;
&lt;p&gt;I suggest Nordic provide clearer instructions in future for this kind of thing, as their instructions left out many things that Bjorn has helped with that are crucial for transferring examples to different hardware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/236704?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 08:00:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a34a6e7-9cb1-4967-a1bb-67c4b616bd38</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Attached is the modified project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e718d138cdb04dfd9145907de7d7e478/twi_5F00_scanner_5F00_sheddanl_5F00_modified.zip"&gt;devzone.nordicsemi.com/.../twi_5F00_scanner_5F00_sheddanl_5F00_modified.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/236653?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 18:51:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37764a53-16ce-45f1-9ba6-4756a8602004</guid><dc:creator>sheddanl</dc:creator><description>&lt;p&gt;With the changes I still hardfault immediately. Would you be able to attach the modified project so I can check if it runs on my board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/236464?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 09:40:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83da9e01-ba93-4163-9f28-e26ef878e0ca</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Found two errors in the project&lt;/p&gt;
&lt;p&gt;The first error was that&amp;nbsp;FLOAT_ABI_HARD was added under&amp;nbsp;Code &amp;gt; Preprocessor &amp;gt; Preprocessor Definitions. This must be changed to&amp;nbsp;&lt;span&gt;FLOAT_ABI_SOFT. Without this change I was not able to compile the project.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Running the project I saw that it Hardfaulted &lt;span style="font-size:12px;"&gt;immediately&lt;/span&gt;&amp;nbsp;and I saw that the Stack pointer was way out of bounds so I check the&amp;nbsp;FLASH and RAM settings and t&lt;/span&gt;he second error was that the FLASH and RAM settings were still set as if the code was running on a nRF52840, i.e.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FLASH_PH_START=0x0
FLASH_PH_SIZE=0x100000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x40000
FLASH_START=0x0
FLASH_SIZE=0x2FFFF
RAM_START=0x20000000
RAM_SIZE=0x5FFF&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you compare this to another pca10056e peripheral project, see below, then you see that the physical size of FLASH and RAM are much lower. So changing the&amp;nbsp;Code &amp;gt; Linker &amp;gt; Section Placement Macros to the one below&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FLASH_PH_START=0x0
FLASH_PH_SIZE=0x30000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x6000
FLASH_START=0x0
FLASH_SIZE=0x30000
RAM_START=0x20000000
RAM_SIZE=0x6000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After this change the example runs with no issues on my nRF52811 board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/236394?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 23:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:195f0573-5fba-4078-99f7-e3c656212f6d</guid><dc:creator>sheddanl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/thank_5F00_you_5F00_bjorn.zip"&gt;devzone.nordicsemi.com/.../thank_5F00_you_5F00_bjorn.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am able to get examples working if I paste them into an already emulated example and import all the libraries etc, however, I&amp;#39;d like to understand what&amp;#39;s happening here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/236143?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 08:00:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:575ca46f-e5a8-48ed-8e73-38389a7d6860</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Can you attach your modified twi_scanner example? I would like to debug it on a nRF52811 board I have here.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/236087?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 19:25:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9492f7a1-6bc8-4320-ab10-a3279701b176</guid><dc:creator>sheddanl</dc:creator><description>&lt;p&gt;This allowed the program to builld. If anyone is having the a similar problem with &lt;em&gt;&lt;span style="text-decoration:underline;"&gt;&amp;#39;multiple definitions of UARTE0_UART0_IRQHANDLER&amp;#39;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;set the flag&amp;nbsp;UART_LEGACY_SUPPORT&amp;nbsp;to 0 in your sdk_config.h file.&lt;/p&gt;
&lt;p&gt;I am now met with another hard fault unfortunately. I&amp;#39;ve started with a fresh copy of twi_scanner and have performed the following steps on the pca10056 project to try and transfer it to the nrf52811 hardware:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Project Options -&amp;gt; Common -&amp;gt; Debugger -&amp;gt; Target Device -&amp;gt; nRF52811_xxAA&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Project Options -&amp;gt; Common -&amp;gt; Preprocessor -&amp;gt; Preprocessor Definitions -&amp;gt; (changed&amp;nbsp;NRF52840_XXAA to&amp;nbsp;NRF52811_XXAA)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Project Options -&amp;gt; Common -&amp;gt; Linker -&amp;gt; Section Placement Macros -&amp;gt; (changed FLASH_SIZE to 0x2FFFF and RAM_SIZE to 0x5FFF)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click project -&amp;gt; Open Solution in Editor -&amp;gt; (change&amp;nbsp;ses_startup_nrf52840.s to&amp;nbsp;ses_startup_nrf52811.s and&amp;nbsp;system_nrf52840 to&amp;nbsp;system_nrf52811)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Project Options -&amp;gt; Common -&amp;gt;&amp;nbsp;Code Generation -&amp;gt; (ARM FPU TYPE -&amp;gt; None, ARM FP ABI TYPE -&amp;gt; Soft)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Save and reload project&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Add in my own custom board layout and edit the scl and sda pins&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;In the sdk_config.h file:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;NRFX_TWIM0_ENABLED 1&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;UART_LEGACY_SUPPORT 0&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;NRFX_TWI0_ENABLED 1&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Also in the sdk_config.h file to enable the debug terminal&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;NRF_LOG_BACKEND_RTT_ENABLED 1&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;NRF_LOG_BACKEND_UART_ENABLED 0&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;The program will then build and when I try to run it will give me a hard fault.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt;&amp;nbsp;also be sure to change the register definiton file to nrf52811.svd&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also tried this with the fatfs example and I am met with the same hard fault&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/235914?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 10:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cff46caf-7c31-4b96-912c-664bb698c3e5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The nRF52811 does not have a TWIM1 instance, see&amp;nbsp;&lt;a title="Instantiation" href="https://infocenter.nordicsemi.com/topic/ps_nrf52811/memory.html?cp=4_3_0_3_1_3#topic"&gt;Instantiation&lt;/a&gt;, so I think its related to your sdk_config.h.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the twi_scanner main.c file you see that the instance is set by the sdk_config.h definitions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/* TWI instance ID. */
#if TWI0_ENABLED
#define TWI_INSTANCE_ID     0
#elif TWI1_ENABLED
#define TWI_INSTANCE_ID     1
#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So just make sure that&amp;nbsp;&lt;span&gt;&lt;span&gt;TWI0_ENABLED is set to 1 and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;TWI1_ENABLED is set to 0 in&amp;nbsp;&lt;span&gt;sdk_config.h&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/235846?ContentTypeID=1</link><pubDate>Sun, 23 Feb 2020 23:47:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:378fe1df-ba41-4532-8239-daf842173162</guid><dc:creator>sheddanl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/twi_5F00_scanner.zip"&gt;devzone.nordicsemi.com/.../twi_5F00_scanner.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I believe I have altered things in the config file. Although forgive me, I can&amp;#39;t remember exactly what.&lt;/p&gt;
&lt;p&gt;Thanks very much&lt;/p&gt;
&lt;p&gt;Could this have something to with the limitations on the&amp;nbsp;bit length?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1582510204396v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If so how can I make sure I use the correct length, as I am trying to use an SD card in SPI mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/235631?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 07:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc64604d-e560-405b-b708-704945d514cf</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Have you altered the sdk_config.h file of the TWI scanner example for the pca10056? If you could share the modified project, then I can debug it here on my end.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/235581?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 20:10:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10801328-6df7-46d3-81e7-7de271f7bda0</guid><dc:creator>sheddanl</dc:creator><description>&lt;p&gt;This resolved the error, although I did not have the option for ARM FP ABI Type -&amp;gt; Soft, instead I used None.&lt;/p&gt;
&lt;p&gt;I am trying to use the TWI scanner example, and now I am given the error:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;#39;TWIM1_EASYDMA_MAXCNT_SIZE&amp;#39; undeclared (first use in this function); did you mean &amp;#39;TWIM0_EASYDMA_MAXCNT_SIZE&amp;#39;?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In the file nrfx_twim.c&lt;/p&gt;
&lt;p&gt;Is this related to my original issues?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/235578?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 19:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6a3d739-75bd-4762-9be0-77c007d62b7a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Make sure that you set the ARM FPU type and ARM FP ABI Type to Soft in the Project settings&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e718d138cdb04dfd9145907de7d7e478/pastedimage1582228502581v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/235576?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 19:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:129c9c99-b997-4486-ab72-9007b26ddb06</guid><dc:creator>sheddanl</dc:creator><description>&lt;p&gt;I have followed those steps and I am given the error:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I found the&amp;nbsp;instructions unclear and hard to follow, could I have done something wrong to give me this error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/235338?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 08:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e79712ef-ddb0-4571-a83f-3e93c53e0a80</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If your custom board has a nRF52811, then there is no wonder that the pca10056 examples hardfault as they are intended for the nRF52840. We emulate the nRF52811 on the nRF52840 DK, these projects are labled pca10056e, but in order to run these on actual nRF52811 HW instead then you need to modify the project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hence, I suggest that you read through the&amp;nbsp;&lt;a title="Developing for nRF52811" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrf52811_user_guide.html?cp=7_1_5_1"&gt;Developing for nRF52811&lt;/a&gt;&amp;nbsp;section on our Nordic Infocenter, specifically the &lt;a title="Transferring the project to nRF52811 hardware" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrf52811_user_guide.html?cp=7_1_5_1_3#ug_52811_project"&gt;Transferring the project to nRF52811 hardware&lt;/a&gt;&amp;nbsp;that explains the necessary steps.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/235300?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 02:07:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b523e1a-bae5-4925-a75a-cdae6513191b</guid><dc:creator>sheddanl</dc:creator><description>&lt;p&gt;I am programming my custom board through the nrf52 DK. Only the emulated examples work. I tried the pca10056 examples too but they hardfault when I try to run thm on the custom board. Only emulated examples are able to run on my custom board&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/234777?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 07:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1a1cc8d-fc48-4ab4-ab48-2a9a0591c442</guid><dc:creator>bjorn-spockeli</dc:creator><description>[quote user="sheddanl"]Yesterday I did a fresh install of everything Nordic related and now I am able to get the pca10040e blinky example to program from Segger Embedded Studio using Debug and Release, however pca10040 does not work, it will give me a hardfault.&amp;nbsp;This is the same with the TWI scanner for pca10040.[/quote]
&lt;p&gt;&amp;nbsp;So you&amp;#39;re not able to run a pca10040 example on a nRF52811? If this is the case, then this is expected as the pc10040 examples are intended for the nRF52832. Or is the pca10040 example hardfaulting on a nRF52832?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/234753?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 18:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:124daf41-33f8-4215-ac9c-a8e4b08dc3b3</guid><dc:creator>sheddanl</dc:creator><description>&lt;p&gt;Thank you for replying to my question :)&lt;/p&gt;
&lt;p&gt;Yesterday I did a fresh install of everything Nordic related and now I am able to get the pca10040e blinky example to program from Segger Embedded Studio using Debug and Release, however pca10040 does not work, it will give me a hardfault.&amp;nbsp;This is the same with the TWI scanner for pca10040.&lt;/p&gt;
&lt;p&gt;I suppose my question is now why is the emulated project working for me but not the other?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom board through SES corrupts host device's bootloader</title><link>https://devzone.nordicsemi.com/thread/234652?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 13:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c9b5acf-5bd0-4d98-836d-d65d7b07e62e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi sheddanl,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]However, when I try to Start Execution while Debug has been selected, the DK will only show up as a corrupted USB device and is not able to flashed until I re-upload the bootloader software onto it. It is still able to be found by nRFgo Studio but it requires that I select a NRF51 device as it is unknown to the version of J-link software.[/quote]
&lt;p&gt;&amp;nbsp;nRFGo Studio is deprecated for the nRF52 Series. You need to use the nRF Programmer application in nRF Connect for Desktop, see&amp;nbsp;&lt;a title="nRF Connect Programmer" href="https://infocenter.nordicsemi.com/topic/ug_nc_programmer/UG/nrf_connect_programmer/ncp_introduction.html?cp=8_3_1"&gt;nRF Connect Programmer&lt;/a&gt;.&amp;nbsp; If you flash the bootloader to a nRF52 device, then the nRF52 will remain in bootloader mode even though an application has been flashed until a boootloader settings page is flashed to the nRF52, see Appendix 1 in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>