<?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>How to change example codes of pca10040 code to pca 10059</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79154/how-to-change-example-codes-of-pca10040-code-to-pca-10059</link><description>Hi Sir/ Madam, 
 
 I want to create a modul to scan and advertise data using Nordic Dongle , (PCA10059). The example code in sdk , ble_app_multirole_lesc has been tested with pca10040 and its working; however I need to reuse the same code to deploy inthe</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Sep 2021 13:12:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79154/how-to-change-example-codes-of-pca10040-code-to-pca-10059" /><item><title>RE: How to change example codes of pca10040 code to pca 10059</title><link>https://devzone.nordicsemi.com/thread/327809?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 13:12:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8f2228c-c083-431d-93af-c97f10f75025</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This happens because the SoftDevice ID in your application does not match the Softdevice version on the Dongle, so the bootloader rejects the upgrade.&amp;nbsp;I would recommend programming the SoftDevice as well as the application, so you are certain what version of the SoftDevice you are using. You can find the hex file for the SoftDevices in &amp;lt;SDK_root&amp;gt;/components/softdevices. &lt;span&gt;You can see supported SoftDevices in the&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52840/COMP/nrf52840/nRF52840_ic_rev_sdk_sd_comp_matrix.html"&gt;nRF52840 compatibility matrix&lt;/a&gt;, but I would recommend using S140.&lt;/p&gt;
&lt;p&gt;If you are adapting a project that use another SoftDevice, you should also change the project settings related to the SoftDevice. If the original project is using for example S132, then you must change all instances of this to S140 instead. This will be the preprocessor definitions and include directories.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change example codes of pca10040 code to pca 10059</title><link>https://devzone.nordicsemi.com/thread/327662?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 15:13:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d4e8b02-db6c-47ee-a0c7-30ee603557de</guid><dc:creator>Rommel</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for reaching out to my query; however , upon creation of the hex file once I try to upload the hex file to the dongle using nrf connect , its asking me to select the soft device. No matter which soft device I choose , the appliation is throwing me error as follows&amp;nbsp;&lt;/p&gt;
&lt;p&gt;FU failed: Error message for known extended error code from DFU target: The array of supported SoftDevices for the update does not contain the FWID of the current SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change example codes of pca10040 code to pca 10059</title><link>https://devzone.nordicsemi.com/thread/327661?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 15:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0751baa-4aac-435e-9630-9134a7d4399f</guid><dc:creator>Rommel</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did try the same;however the nrf connect applciation asks for selection of the soft device and I am not sure which one to choose. COuld you help me with the same.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change example codes of pca10040 code to pca 10059</title><link>https://devzone.nordicsemi.com/thread/327652?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 14:04:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df2b0048-f6b7-420f-89bc-2a9a3b8f062e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When you are adapting a project created for the nRF52840 DK (pca10056) using the SoftDevice, you only need to change the preprocessor definitions as explained by &lt;a href="https://devzone.nordicsemi.com/members/chris_5f00_dev"&gt;Chris_Dev&lt;/a&gt;. Adapting a pca10056 project will be easier, as both are using nRF52840, so things such as ROM and RAM size will be the same, and the same SoftDevices are supported. Please be aware that if you are adapting a project that does not use the SoftDevice, you&amp;nbsp;must also adjust the linker configuration, in order to make sure there is room for the Master Boot Record (MBR). You can find guides on how to adapt nRF5 SDK projects for the nRF52840 Dongle in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;nRF52840 Dongle Programming Tutorial&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As you are adapting a project from another SoC to nRF52840, you must perform some additional steps in addition to changing the preprocessor settings. To do this, you can follow the guide in&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrf52811_user_guide.html?cp=8_1_5_1_3#ug_52811_project"&gt;Transferring the project to nRF52811 hardware&lt;/a&gt;. This is originally for nRF52811, but the process is similar. Remember to use the correct preprocessor definitions and linker script settings for the nRF52840, and not&amp;nbsp;nRF52811.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change example codes of pca10040 code to pca 10059</title><link>https://devzone.nordicsemi.com/thread/327548?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 08:53:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:316e474d-0f49-4603-8c29-a507982429fa</guid><dc:creator>Chris_Dev</dc:creator><description>&lt;p&gt;Hey Rommel,&lt;/p&gt;
&lt;p&gt;I move a lot between nrf52840 DKs and Dongles (pca10056 and pca10059).&lt;/p&gt;
&lt;p&gt;I would use the pca10056 project and rather convert that to a pca10059 project (that is what I do with all my projects).&lt;/p&gt;
&lt;p&gt;To do this (assuming that you are using Segger embedded studio):&lt;/p&gt;
&lt;p&gt;1. Right click on Project &amp;#39;ble_app_mutlirole_lesc_s140_pca10056&amp;#39;&lt;/p&gt;
&lt;p&gt;2. Select &amp;#39;Common&amp;#39;&lt;/p&gt;
&lt;p&gt;3. Select Preprocessor&lt;/p&gt;
&lt;p&gt;4. Change&amp;nbsp;BOARD_PCA10056 to&amp;nbsp;BOARD_PCA10059&lt;/p&gt;
&lt;p&gt;Below is a screenshot:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-from-2021_2D00_09_2D00_01-10_2D00_52_2D00_43.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>