<?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>Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94134/adding-buttonless-dfu-to-ble-app-using-sdk-15-3-should-i-upgrade-to-sdk-17-first</link><description>Hi, 
 After lots of issues with build and deploy, I eventually have a working version of a BLE App running on a XM122 Radar module. This module have to be packeaged with the XA122 Battery holder and later updated with new software. This means I do not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Dec 2022 09:07:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94134/adding-buttonless-dfu-to-ble-app-using-sdk-15-3-should-i-upgrade-to-sdk-17-first" /><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/399852?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2022 09:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d556628d-54cd-4878-9f8d-98a49874f45b</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks, this worked!&amp;nbsp; I could flash your .hex files and they worked (I could see DFU via BLE), I could also flash my built files with same result.&amp;nbsp; Thanks a lot.&amp;nbsp; I will now start the next step of combing BL+SD+APP and add Buttonless.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/399691?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 13:52:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6d552a5-0195-4dcc-ad14-7b32039b3db0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m sorry for the mistake. I got the same issue when I try to program the 2 hex files I provided separately.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The issue was that if you do --sectorerase on the bootloader hex file. It will erase the MBR because the bootloader store some information in the MBR setting.&amp;nbsp;&lt;br /&gt;So you can either do this:&amp;nbsp;&lt;br /&gt;&lt;span&gt;nrfjprog -f nrf52 --program 8322.s140_nrf52_6.1.1_softdevice.hex --chiperase&amp;nbsp;--verify&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog -f nrf52 --program 2475.secure_bootloader_ble_s140_pca10056_debug.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog -r&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Notice that there is no sectorerase with the bootloader file. It&amp;#39;s fine because with the softdevice programming we already clear the whole chip.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Or you can do mergehex -m file1.hex file2.hex -o output.hex to merge the softdevice and the bootloader.&amp;nbsp;&lt;br /&gt;After that you can flash the output.hex with --chiperase and reset.&amp;nbsp;&lt;br /&gt;You can read more about that &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44768/sdk-15-3-cannot-program-default-bootloader/177444"&gt;here.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/399662?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 12:44:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:791a3dc0-1a10-4f6a-bc24-3dd2d9e0d126</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I changed the 1st Sectorerase to Chiperase, still using your .hex files and added the reset.&amp;nbsp; All messages says success, but still no BLE DFU visible...&lt;/p&gt;
&lt;p&gt;&amp;gt;nrfjprog --version&lt;br /&gt;nrfjprog version: 10.17.3 external&lt;br /&gt;JLinkARM.dll version: 7.66a&lt;/p&gt;
&lt;p&gt;What I also saw is that when Flashed with nrfjproj commands is that only LED5 on the Dev board is lit.&amp;nbsp; When I Flash from the Debugger LED 1, 2 and 5 are all on and all works.&amp;nbsp; When I then reset the device, not even running from debugger all 3 LEDs still on and still works. After nrfjprog Flash only LED5 is on and nothing works.&amp;nbsp; Not sure if that means something?&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/399635?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 12:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e9ab2d6-e915-42ef-a964-c08829631e0b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;Please try:&amp;nbsp;&lt;br /&gt;&lt;span&gt;nrfjprog -f nrf52 --program 8322.s140_nrf52_6.1.1_softdevice.hex --chiperase&amp;nbsp;--verify&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;nrfjprog -f nrf52 --program 2475.secure_bootloader_ble_s140_pca10056_debug.hex --sectorerase --verify&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;then&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog -r&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Make sure you erase the chip when you flash the softdevice so that all the UICR is cleared.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/399598?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 09:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19ba3c4f-911e-410a-8259-69ce28b7f08a</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for the info, I think we are another step closer!&lt;/p&gt;
&lt;p&gt;I managed to apply the changes to the SES project as suggested in the ticket you pointed me too as &amp;quot;&lt;span&gt;c_additional_options=&amp;quot;-fno-ipa-modref&lt;/span&gt;&amp;quot;.&amp;nbsp; Recompiled the&amp;nbsp;solution, ran it in the SES IDE in debug, and all seems to work, I can see the BLE&amp;nbsp;available to DFU to as DfuTarg.&lt;/p&gt;
&lt;p&gt;I tried deploying the same built .hex files with:&lt;/p&gt;
&lt;p&gt;rem Flash Softdevice&lt;br /&gt;nrfjprog -f nrf52 --program s140_nrf52_6.1.1_softdevice.hex --sectorerase --verify&lt;/p&gt;
&lt;p&gt;rem Flash Bootloader&lt;br /&gt;nrfjprog -f nrf52 --program secure_bootloader_ble_s140_pca10056_debug.hex --sectorerase --verify&lt;/p&gt;
&lt;p&gt;But this does not work.&amp;nbsp; I double checked that I have the same Softdevice in SES which I do have.&amp;nbsp; My only conclusion is that my deployment command was faulty.&amp;nbsp; To try and prove this, I then tried to deploy your 2 provided .hex files with the same commands:&lt;/p&gt;
&lt;p&gt;rem Flash Softdevice&lt;br /&gt;nrfjprog -f nrf52 --program 8322.s140_nrf52_6.1.1_softdevice.hex --sectorerase --verify&lt;/p&gt;
&lt;p&gt;rem Flash Bootloader&lt;br /&gt;nrfjprog -f nrf52 --program 2475.secure_bootloader_ble_s140_pca10056_debug.hex --sectorerase --verify&lt;/p&gt;
&lt;p&gt;But also no success.&amp;nbsp; Can you confirm that you can deploy your .hex files with these same commands and it works?&amp;nbsp; What can then be wrong?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/399367?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 10:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fdcef31-6975-4808-b1e7-abf338d19703</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How did you compile the bootloader ? Did you use SES or GCC for compiling ? It&amp;#39;s important that you use the exact version that we recommended for the SDK. You can find the information in the SDK documentation.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The error 9 you received look very similar to&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/85677/sdk-17-1-0-secure-bootloader-runtime-failure-when-compiled-with-current-gcc-11-2-0"&gt; this ticket&lt;/a&gt;. Could you have a look and check if it&amp;#39;s the same issue ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I attached here the hex file I compiled here and it worked on nRF52840 DK v3.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2475.secure_5F00_bootloader_5F00_ble_5F00_s140_5F00_pca10056_5F00_debug.hex"&gt;devzone.nordicsemi.com/.../2475.secure_5F00_bootloader_5F00_ble_5F00_s140_5F00_pca10056_5F00_debug.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8322.s140_5F00_nrf52_5F00_6.1.1_5F00_softdevice.hex"&gt;devzone.nordicsemi.com/.../8322.s140_5F00_nrf52_5F00_6.1.1_5F00_softdevice.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/399187?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 12:37:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd3b6462-06c2-49b3-bd42-ee159db201aa</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;My turn to appoligise for late reply, I was also fortunate to be able to take a break.&lt;/p&gt;
&lt;p&gt;I unsoldered SB47 and tried deploying to the nRF52840.&amp;nbsp; This failed due to a readprotect still being in place.&amp;nbsp; I used &amp;quot;nrfjprog --recover&amp;quot; and that did the trick, I managed to deploy and all seemed successful, but still no luck, I could not see the BLE advertisement.&amp;nbsp; I then redid all steps on the Debug version and ran that from SES.(nRF5_SDK_15.3.0_59ac345\examples\dfu\secure_bootloader\pca10056_ble_debug\ses)&lt;/p&gt;
&lt;p&gt;It seems fine, I stepped through the code but it fails.&amp;nbsp; This line fails:&lt;/p&gt;
&lt;p&gt;ret_val = nrf_bootloader_init(dfu_observer);&lt;/p&gt;
&lt;p&gt;I do not know what the errors mean, can you point me in the right direction please.&amp;nbsp; Here is the SES Debug Terminal output:&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Inside main&lt;br /&gt;&amp;lt;debug&amp;gt; app: In nrf_bootloader_init&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0xFE000.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate&lt;br /&gt;&amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;&amp;lt;info&amp;gt; app: Boot validation failed. No valid app to boot.&lt;br /&gt;&amp;lt;debug&amp;gt; app: DFU mode because app is not valid.&lt;br /&gt;&amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled&lt;br /&gt;&amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user&lt;br /&gt;&amp;lt;debug&amp;gt; app: timer_stop (0x200057D4)&lt;br /&gt;&amp;lt;debug&amp;gt; app: timer_activate (0x200057D4)&lt;br /&gt;&amp;lt;info&amp;gt; app: Entering DFU mode.&lt;br /&gt;&amp;lt;debug&amp;gt; app: Initializing transports (found: 1)&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_ble: Initializing BLE DFU transport&lt;br /&gt;&amp;lt;debug&amp;gt; app: Failed to initialize transport 0, error 9&lt;br /&gt;&amp;lt;error&amp;gt; app: Could not initalize DFU transport: 0x00000009&lt;br /&gt;&amp;lt;error&amp;gt; app: Received an error: 0x00000003!&lt;/p&gt;
&lt;p&gt;I tried stepping in deeper with the deepest being into &amp;quot;ret_val = trans-&amp;gt;init_func(observer);&amp;quot;&lt;/p&gt;
&lt;p&gt;Here it seems as if code and debugger is out of sync.&amp;nbsp; I cannot see it returning the error 9 as reported and stepping through the code it jumps over some lines...&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/398030?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 09:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80683a01-73ea-4094-8ecd-9a269d26a31b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;br /&gt;Sorry for late response. I was on vacation in the last few days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you got any progress with the XB122? I think it&amp;#39;s still the best to get started with the nRF52840DK.&amp;nbsp;Please test the bootloader + softdevice only before moving to the buttonless service.&amp;nbsp;&lt;br /&gt;We need to make sure the bootloader can run on the XB122. If it doesn&amp;#39;t work the buttonless&amp;nbsp;service&amp;nbsp;won&amp;#39;t be able to do anything.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the same firmware work on the DK but not on the module there must be some hardware difference causing the issue. You may need to step into the code and check where the bootloader crash. Please use the _debug version of the bootloader to be able to step in the code.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/397530?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 06:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3889e12b-db9a-41ec-aae0-853c48dc7960</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Yes we were looking at the same, I saw the Crystal to the top right, just out of your image which also had a 32.0 in the number..&amp;nbsp; Thanks for showing the right one.&lt;/p&gt;
&lt;p&gt;I am familiar with the samples, I have built and deployed a few, I managed all on the XM/XB 122.&amp;nbsp; I have even now combined some samples and added own logic to have the functionality I need in my App.&amp;nbsp; I now measure distance with the Radar and transmit that vie BLE Header which I then read from any BLE scanner.&amp;nbsp; I am not an electronic specialist, but have been dabbling and programming various controllers for a while now.&amp;nbsp; I am a programmer, with a lot of aged C and C++ experience that changed to C# over the years.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the long story, but I am past samples now, I need Buttenless DFU working on the XM122, the first steps as you suggest, has been done.&amp;nbsp; We now need to be able update the pacjaged devices in the field, with no Dev board close.&amp;nbsp; The last part I then need to figure out is how to add&amp;nbsp;Settings, so we can just update that and not the whole App, but for now BLE DFU will get us going.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;All tools and samples are already working on the XM/XB122, is deploying on the nRF52840 DK the only next option?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/397472?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 14:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3d8b723-eee6-40c2-b6cb-0ed19c181327</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;br /&gt;I&amp;#39;m not so sure&amp;nbsp;if I&amp;#39;m looking at the same module as you but according to &lt;a href="https://www.mouser.com/pdfDocs/XM122Datasheet.pdf"&gt;this&lt;/a&gt;&amp;nbsp;, it has a 32kHz crystal (X2) :&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669301319323v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669301352704v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what could be wrong here, but if you are not very familiar with both the hardware and and the software it&amp;#39;s not a good idea to jump straight into the bootloader and the buttonless service.&amp;nbsp;&lt;br /&gt;I would suggest to start with the nRF52840DK and get familiar with the examples we have (start with blinky for example to blink LED, then to BLE application, then to the bootloader application). Don&amp;#39;t worry about bricking it,&amp;nbsp; it&amp;#39;s very hard to brick the DK. If you flash something non-functional you can just simply erase it and flash something else.&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t forget that you can debug an application if it doesn&amp;#39;t work.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/397452?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 13:43:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97554ad6-e26f-4736-a5f5-293778f1de54</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I bought the nRF52840 to be able to factory reset the XM/XB122 as in one of my early deployments I managed to &amp;quot;brick&amp;quot; it.&amp;nbsp; I soldered the SB47 closed on the nRF52840 spesifically to not be able to flash to the&amp;nbsp;nRF52840 and brick that too by accident and to not have power issues while testing..&lt;/p&gt;
&lt;p&gt;I could not find the 32kHz crystal you talk about in the XM122 documentation, but did find a&amp;nbsp;&lt;span&gt;FA-20H 32.0000MF20X-K3 in the XM122 schematics&amp;nbsp;which is a 32 MHz crystal, was your kHz a typo?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My questions:&lt;/p&gt;
&lt;p&gt;1) Should the crystal be ok and no further software changes needed?&lt;/p&gt;
&lt;p&gt;2) Do I really need to test with nRF52840 DK alone, is there not a different way to trouble shoot?&lt;/p&gt;
&lt;p&gt;3) If I do this and I flash a non working version,&amp;nbsp;will I be able to recover the nRF52840 without having to buy more hardware?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;
&lt;p&gt;PS. I am not trying to ignore your advice, just weary of breaking my only fixing tool...;-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/397234?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 15:20:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bde547d-e7c8-4b89-88c1-1cec3799975c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Could you please test using nRF52840DK ?&amp;nbsp;&lt;br /&gt;Please test DFU with the nRF52840DK first before you move to the XB122.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t have 32kHz crystal on the XB122 you may need to configure the bootloader to user RC instead of the crystal.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It&amp;#39;s correct that you just need to flash the softdevice and then flash the bootloader to test the bootloader. It should advertiser as &amp;quot;DFUTarg&amp;quot; and then you can use nRF Connect app on the phone to connect and do DFU&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/397230?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 15:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86104508-068e-476a-9c67-d4668245be12</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the quick reply!&lt;/p&gt;
&lt;p&gt;I tried compiling the&amp;nbsp;secure_bootloader_ble_s140_pca10056_debug SES project without any mods.&amp;nbsp; Does not compile, complains about&amp;nbsp;&lt;/p&gt;
&lt;p&gt;__vfprintf.h: No such file or directory&lt;/p&gt;
&lt;p&gt;in&amp;nbsp;SEGGER_RTT_Syscalls_SES.c&lt;/p&gt;
&lt;p&gt;I am using SES version:&lt;/p&gt;
&lt;p&gt;SEGGER Embedded Studio for ARM&lt;br /&gt;Release 6.34a Build 2022083102.51023&lt;br /&gt;Windows x64&lt;/p&gt;
&lt;p&gt;I managed to apply &amp;quot;fix&amp;quot; as in&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/87810/compiling-issue-with-segger-embedded-studio-v6-30"&gt;Compiling issue with SEGGER EMBEDDED STUDIO V6.30&lt;/a&gt;&amp;nbsp;,this basically ignores most of what is in&amp;nbsp;&lt;span&gt;SEGGER_RTT_Syscalls_SES.c with a #ifdef&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That seemed to work and got me to the error you said would happen, for that I applied the +0x1000 -0x1000 in the flash_placement.xml as described in your mentioned &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/73878/segger-5-42-dfu-link-error-section-uicr_bootloader_start_address-vma-0000000000000ff8-0000000000000ffb-overlaps-section-reserved_flash-vma-0000000000000000-00000000000f7fff/326674"&gt;patch&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now compiles, thanks!&amp;nbsp; I repeated above on release version and it also works, now on to the next step.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Step C1: nrfutil pkg generate --hw-version 52 --application-version 1 --application acc_bluetooth_beacon.hex --sd-req 0xB6 --key-file ..\private.key app_dfu_ble_dist.zip&amp;nbsp; //No errors&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Step D1 connected to XB122 through nRF52840DK:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; nrfjprog -f nrf52 --program s140_nrf52_6.1.1_softdevice.hex --sectorerase --verify //No errors&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Step D2 connected to XB122 through nRF52840DK: &lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog -f nrf52 --program secure_bootloader_ble_s140_pca10056.hex --sectorerase --verify&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After this, try to connect to DFU any App to XB122 after disconnecting from nRF52840, but do not see any BLE device to DFU to...neither could I see it with a BLE Scanner.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are my commands to Flash Softdevice and Bootloader correct, you did not give samples?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Where do I start looking, there were no errors in the process?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Andreas&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/397120?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 10:23:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e870281-6b74-4499-be50-03d5f5fbd356</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are using the nRF52840 the hardware CC310 cryptocell is used and you don&amp;#39;t need to compile uECC or Oberon as they are software backend. My blog was based on NRF52832 which doesn&amp;#39;t have hardware crypto.&amp;nbsp;&lt;br /&gt;The example should compile out of the box for nRF52840.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to compile&amp;nbsp;\examples\dfu\secure_bootloader\pca10056_ble_debug\ses with no modification ?&amp;nbsp;&lt;br /&gt;You may need to apply&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/73878/segger-5-42-dfu-link-error-section-uicr_bootloader_start_address-vma-0000000000000ff8-0000000000000ffb-overlaps-section-reserved_flash-vma-0000000000000000-00000000000f7fff/326674"&gt; this patch&amp;nbsp;&lt;/a&gt;&amp;nbsp;if you use newer version of SES.&amp;nbsp;&lt;/p&gt;
[quote user="AndreasLiebenberg"]Reading this I assume you were using Keil to write the blog[/quote]
&lt;p&gt;Yes you were right. It was Keil configuration I was referring to. If you use SES it&amp;#39;s&amp;nbsp;&lt;span&gt;FLASH_START and&amp;nbsp;FLASH_SIZE you need to change. However, you should not use the configuration for blinky example to use on the bootloader.&amp;nbsp;&lt;br /&gt;The bootloader has a different start address compare to normal application:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5707.pastedimage1669198965528v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="AndreasLiebenberg"]6) Can I mix a Debug App hex with the Release Bootloader as you suggest we use to start with?[/quote]
&lt;p&gt;Yes, the debug variant of the bootloader only reduce the requirement of version control and can use the default key. It has nothing to do with debugging option of the&amp;nbsp;compiler.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/397092?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 09:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a78c9fd2-d19f-40f9-a621-79423030d371</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Thanks Hung,&lt;/p&gt;
&lt;p&gt;I took your advise and rather went to your blog that I have not previously seen.&amp;nbsp; I scanned it and it also looked like a good option, so I dove in.&lt;/p&gt;
&lt;p&gt;First part went smooth, I had all the tools and decided to go for the Oberon crypto lib.&lt;/p&gt;
&lt;p&gt;On the project changes, you suggested to change as follows&lt;/p&gt;
&lt;p&gt;NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED to 0&amp;nbsp; //This was already 0&lt;/p&gt;
&lt;p&gt;NRF_CRYPTO_BACKEND_NRF_SW_ENABLED to 0&amp;nbsp;&amp;nbsp;&lt;span&gt;//This was already 0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;NRF_CRYPTO_BACKEND_OBERON_ENABLED to 1 //I made this change&lt;/p&gt;
&lt;p&gt;Then it did not want to compile,&amp;nbsp;I had to disable a few more settings in the sdk_config.h that shipped with the 15.3 SDK:&lt;/p&gt;
&lt;p&gt;NRF_CRYPTO_BACKEND_CC310_BL_ENABLED 0 //This was 1&lt;/p&gt;
&lt;p&gt;NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED 0&amp;nbsp;&lt;span&gt;//This was 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This made the source compile, great start!&amp;nbsp; Note: there was no&amp;nbsp;micro_ecc_lib_nrf52.lib to remove from the segger project in :&amp;nbsp;nRF5_SDK_15.3.0_59ac345\examples\dfu\secure_bootloader\pca10056_ble\ses&amp;nbsp;&amp;nbsp;(Chose this project for nRF52840DK board to be used which uses the S140 Softdevice)&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp; I hope this is all correct thus far as it seems to work?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then I went on to try and build, but first needed to change the FLASH targets/sizes as suggested due to&amp;nbsp;&lt;span&gt;Oberon&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I could not find the settings your blog refers to, &amp;quot;For example for the nRF52840 project you change IROM1 start from 0x78000 to 0x77000 and IROM1 size from 0x6000 to 0x7000. This meant your bootloader now +4kB larger. This is the draw back of using Oberon library instead of uEcc&amp;quot; so I started to search and found this resource&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;Adjustment of RAM and Flash memory&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Reading this I assume you were using Keil to write the blog.&amp;nbsp; I tried following their SES instructions but not successful and need help please.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried setting the&amp;nbsp;Section Placement Macros and picked the values as they suggested for Blinkey with softdevice:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FLASH_PH_START=0x0&lt;br /&gt;FLASH_PH_SIZE=0x100000&lt;br /&gt;RAM_PH_START=0x20000000&lt;br /&gt;RAM_PH_SIZE=0x40000&lt;br /&gt;FLASH_START=0x26000&lt;br /&gt;FLASH_SIZE=0xda000&lt;br /&gt;RAM_START=0x200022B0&lt;br /&gt;RAM_SIZE=0x3dd50&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Tried compiling but get same 4 linker errors as without the new settings (which was empty to start with, both in project and solution)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;section .uicr_bootloader_start_address VMA [0000000000000ff8,0000000000000ffb] overlaps section .reserved_flash VMA [0000000000000000,00000000000f7fff]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;section .mbr_params_page VMA [00000000000fe000,00000000000fefff] overlaps section .text VMA [00000000000f83bc,00000000000feb57]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;section .bootloader_settings_page VMA [00000000000ff000,00000000000fffff] overlaps section .rodata VMA [00000000000febc4,00000000000ff103]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It seems like the setting is ignored in generating the linker file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) Where does it get the current settings from?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3) Where should I set them (probably same as 3 but just confirming)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4) Are they the correct settings I am trying to use?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5) If not, where/how do I find the correct settings for this project?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have a working .hex for the App so need this step to continue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;6) Can I mix a Debug App hex with the Release Bootloader as you suggest we use to start with?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Your help is appreciated!&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;p&gt;&lt;span&gt;Cheers&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Andreas&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding buttonless DFU to BLE App using SDK 15.3.  Should I upgrade to SDK 17 first?</title><link>https://devzone.nordicsemi.com/thread/396891?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 12:11:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a61773d2-03e9-4208-8b09-24db3986eb48</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. I&amp;#39;m not very familiar with the novelbit tutorial so it&amp;#39;s hard for me to give an advice. However, my suggestion is to get familiar with the bootloader and make sure you can use it to do DFU without problem before you move to implement buttonless service in the application. I would suggest to have a look at my blog &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In the blog I give an instruction on how to test the bootloader and have some discussion on how the buttonless service works. Please see Appendix 3.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;It&amp;#39;s always good to have your application running on latest SDK. However I don&amp;#39;t see much point of upgrading to SDK v17.1 just for the bootloader and buttonless DFU. As far as I know the mechanism doesn&amp;#39;t change much.&lt;/p&gt;
&lt;p&gt;My suggestion is to follow my blog, study (and test) the ble_app_buttonless_dfu and implement the same to your application. You can follow the Novelbit blog after you are familiar with the bootloader and the ble_app_buttonless_dfu example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>