<?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>nRF52 DFU working on dev kit, not on custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19459/nrf52-dfu-working-on-dev-kit-not-on-custom-board</link><description>I&amp;#39;ve been having a very difficult time debugging this issue. I&amp;#39;ve modified the bootloader_secure example and have it working on the dev kit using the 330 Softdevice. It works great, and I&amp;#39;m able to update and run my own firmware images using the nRF Connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Feb 2017 09:04:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19459/nrf52-dfu-working-on-dev-kit-not-on-custom-board" /><item><title>RE: nRF52 DFU working on dev kit, not on custom board</title><link>https://devzone.nordicsemi.com/thread/75599?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2017 09:04:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84dceb33-a3da-44aa-a199-7afbf7bbb970</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok, let me know if you see the issue on any additional custom boards. I will test running the bootloader with the synthesized LFCLK on the PCA10040 and see if I see the same behaviour.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU working on dev kit, not on custom board</title><link>https://devzone.nordicsemi.com/thread/75600?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 23:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4d1278d-687a-45d3-adc2-e8b2cc15be0a</guid><dc:creator>ejb10293</dc:creator><description>&lt;p&gt;OK I tried DFU on another of my custom boards that I assembled today and it worked fine - I think this was an issue with the board itself, maybe a solder bridge or something that caused this problem. Thanks again for your help.&lt;/p&gt;
&lt;p&gt;That being said, I still think there is something strange going on with the above - the bootloader_secure app might not be able to run on the NRF_CLOCK_LF_SRC_SYNTH setting...it might be worth tracking down this particular issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU working on dev kit, not on custom board</title><link>https://devzone.nordicsemi.com/thread/75598?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 23:11:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a4a18a9-4bb2-45fc-a9e8-0d46897ad18e</guid><dc:creator>ejb10293</dc:creator><description>&lt;p&gt;OK I tried DFU on another of my custom boards that I assembled today and it worked fine - I think this was an issue with the board itself, maybe a solder bridge or something that caused this problem. Thanks again for your help.&lt;/p&gt;
&lt;p&gt;That being said, I still think there is something strange going on with the above - the bootloader_secure app might not be able to run on the NRF_CLOCK_LF_SRC_SYNTH setting...it might be worth tracking down this particular issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU working on dev kit, not on custom board</title><link>https://devzone.nordicsemi.com/thread/75597?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 17:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:526dfad9-1ed9-405c-b330-f2aa0854b298</guid><dc:creator>ejb10293</dc:creator><description>&lt;p&gt;Something is very wrong here... Making just the single change you suggest causes bootloader_secure to fail completely on the dev kit. I&amp;#39;m not able to connect to it at all over nRF Connect, and I get a very strange looping output over RTT. Again, this looks to me like a thrashing issue - even the RTT log messages are being cut off here...&lt;/p&gt;
&lt;p&gt;Here is a copy of the output...&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:IN:INFO:Inside main
:INFOf_dfu_transp:INFO:Inside main
:INFO:In nrf_bootloader_init
:IN:Single: Invalid bank
:INFO:Enter nrf_dfu_app_is_v:INFO:Inside main
:INFO:In nrf_bootloader_init
:INFO:In real nf_dfu_transports_initinue
:INFO:Single: Invalid bank
tinue
:INFO:Single: Invalid bank
:INFO:Enter nrf_:INFO:Inside main
:INFOf_dfu_transports_ini:INFO:Inside main
:INFO:In nrf_bootloader_init
:INFO:In real nrf_dfu_init
:INf_dfu_transports_init
:INFO:num tra:INFO:Inside main
:INFO:In nrf_bootloader_i:INFO:Enter nrf_dfu_continue
:INFO:SingleIn nrf_dfu_transportsu_continue
:INFg nrf_dfu_settings_init
:INFO:Enter nrf_dfu_continue
:INFO:Singleceived an error: 0x0000n valid app check
:INFO:In nrf_dfnside main
:INFO:In nrf_bootloader_init
ransports_initnrf_dfu_init
:INFO:numransports_init
:INFO:num transports::INFO:Inside main
:INFO:In nrf_bootloader_itinue
:INF:INFO:Insidetinue
:INFO:Single: Invalid bank
:INFO:Inside main
f_dftinuenrf_bootloader_init
:INFO:Si:INFO:Insidef_dfu_tr:INFO:Inside main
:INFO:In nrf_bootloader_init
:INf_dftinue
:INFO:Si:INFO:Inside maitinue
:INFO:Single: In:INFO:Inside main
:INFOf_dfu_trtinue
:INFO:Singlef_dfu_transports_init
:INFO:num transpo:INFO:Inside main
:INFO:In nrf_bootloader_init
:INFO:In real nf_dfu_transports_ini:INFO:Inside main
:INFO:In nrf_bootloader_init
:INFO:If_dfu_trtinue
:INFO:Single: In:INFO:Inside main
:INFOf_dfu_trtinue
:INFO:Single: Invalid bank
:INFf_dfu_transports_init
:INFO:num transports: 1
:INFO:Inside main
:f_dftinue
:INFO:Si:INFO:Insidetinue
:INFO:Single: Invalid bank
f_dfu_transports_init
:INFO:num transports: 1
:INFO:Inside main
:f_dftinue
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU working on dev kit, not on custom board</title><link>https://devzone.nordicsemi.com/thread/75596?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 15:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbaaf3c1-8cb5-498e-aaec-678b9813c2db</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I find it wierd that you have any connection issues with the secure dfu example and not the bps. Can you try to use the LFCLK that is synthesized from the HFCLK, i.e. .source = NRF_CLOCK_LF_SRC_SYNTH, and see if that improves the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU working on dev kit, not on custom board</title><link>https://devzone.nordicsemi.com/thread/75595?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2017 21:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e885cfe2-4885-4a1a-a8b4-ea25a326b135</guid><dc:creator>ejb10293</dc:creator><description>&lt;p&gt;I haven&amp;#39;t taken the time to get ble_app_hrs working, but I confirmed that ble_app_bps works on both the dev kit and my custom board with the following change in ble_stack_init to make it use the internal RC oscillator:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_clock_lf_cfg_t clock_lf_cfg = {.source 			= NRF_CLOCK_LF_SRC_RC, \
    				            .rc_ctiv       	        = 16, \
						   .rc_temp_ctiv  	        = 2, \
						   .xtal_accuracy 	        = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I also made the same change as above to the bootloader_secure example, which runs s132. The code worked fine on the dev kit but I saw identical failures as I described above using my custom board (I used the dfu_test_app_hrm_s132 image). Specifically, it takes several tries to get a successful BlueTooth connection on my board, and then the DFU transfer fails with a GATT CONN TIMEOUT right after the app starts uploading the firmware package.&lt;/p&gt;
&lt;p&gt;It seems like there is something about the bootloader_secure code that does not work well with my board. Again, I suspect this may be an issue with processor thrashing...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU working on dev kit, not on custom board</title><link>https://devzone.nordicsemi.com/thread/75593?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2017 13:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90fc7a9f-8550-4e59-adf9-e2ed44b9e2f5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you able to run other examples from the SDK without any issues on the custom board, e.g. ble_app_hrs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU working on dev kit, not on custom board</title><link>https://devzone.nordicsemi.com/thread/75594?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2017 02:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d74146d-5d27-4e29-b419-1fb5eb738ab4</guid><dc:creator>ejb10293</dc:creator><description>&lt;p&gt;I&amp;#39;ll be able to test on duplicate boards in a few days. In the meantime, I tried cutting the traces SB1 and SB2 on the dev board to prevent it from using the external LF crystal - it still worked fine using the internal RC oscillator, so that doesn&amp;#39;t seem to be the issue.&lt;/p&gt;
&lt;p&gt;I was able to get better results (ie - very slow but successful transfer of the firmware package) on my own board by disabling the scheduler module in the firmware - of course, this isn&amp;#39;t really a workable solution, but it suggests to me that the processor may be thrashing for some reason (continuous interrupts?) that cause BlueTooth timeouts... With the scheduler disabled, I was able to more consistently connect to the device over nRF Connect and was able to get the RTT logs through the console (with the scheduler enabled, usually I can&amp;#39;t get any RTT messages at all).&lt;/p&gt;
&lt;p&gt;Is there a good way to debug this issue? When this failure occurs, there&amp;#39;s no error message over the RTT log - it just hangs...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU working on dev kit, not on custom board</title><link>https://devzone.nordicsemi.com/thread/75592?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 15:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b10d4845-e709-435d-aca3-9d79c3213bb5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Do you have several identical custom PCBs? If so, do you see the same issue on the other boards as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>