<?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>Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85873/application-suddenly-stopped-building</link><description>I&amp;#39;m having an extremely annoying problem. I have an application that uses Nordic NUS service. 
 (1) I created it from the peripheral UART example for NRF52-DK, and adapted it for use with NRF52805 (removed non-exiting buttons and LEDS) 
 (2) It was compiling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Mar 2022 13:22:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85873/application-suddenly-stopped-building" /><item><title>RE: Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/thread/358876?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 13:22:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48185194-c199-4ad6-a2e4-0191df8e4ca3</guid><dc:creator>matangk</dc:creator><description>&lt;p&gt;(1) Thanks, I will keep that in mind.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --eraseall&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So.. the simple &amp;quot;Erase and flash&amp;quot; option doesn&amp;#39;t completely delete the flash?&lt;/p&gt;
&lt;p&gt;(2) To complete the picture - I tried to program my&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;standalone&amp;nbsp;&lt;strong&gt;NRF52805&lt;/strong&gt; with my&amp;nbsp;&lt;strong&gt;OLD PC&lt;/strong&gt;. I started with programming the peripheral_uart sample which still kept hanging on bt_enable.&lt;/p&gt;
&lt;p&gt;(3) I then programmed the peripheral_lbs (led-button service). This worked. I was able to connect to the module via my phone and run the app.&lt;/p&gt;
&lt;p&gt;(4) Afterwards, I reprogrammed the NRF52805 module with the&amp;nbsp;&lt;strong&gt;same&lt;/strong&gt; peripheral_uart app. This time it was working fine!&lt;/p&gt;
&lt;p&gt;(5) Afterwards, all my&amp;nbsp;&lt;strong&gt;previously failing apps&lt;/strong&gt;&amp;nbsp;started to work.&lt;/p&gt;
&lt;p&gt;(6) I hope this doesn&amp;#39;t happen again. It was very time consuming, but I appreciate the assistance and advice.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/thread/358854?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 12:41:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffe727ef-7721-4b62-a82b-06a728959c20</guid><dc:creator>Sigurd</dc:creator><description>[quote user="matangk"]Is it possible that there is some non-volatile area that got corrupted and writing the btl app fixed it??[/quote]
&lt;p&gt;Difficult to say for sure, but that might be the explanation. If you run into this again in the future, try to do a full erase of the flash:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --eraseall&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/thread/358721?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 15:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9016845e-4824-490c-b788-ac7a805683e1</guid><dc:creator>matangk</dc:creator><description>&lt;p&gt;Well. I just had a very confusing half hour. I looked for another sample with BT that might compile on nrf52805. I found the peripheral button-led. I built it for nrf52dk_nrf52805, ant programmed the DK.&lt;/p&gt;
&lt;p&gt;This is on my old PC where nothing was working before. Voilla. The btl sample app works.&lt;/p&gt;
&lt;p&gt;&amp;quot;Huh&amp;quot; - I thought and now again tried to build a fresh sample of peripheral uart, on sdk 1.9.1. I programmed my NRF52-DK AND IT WORKS.&lt;/p&gt;
&lt;p&gt;HOW CAN THAT BE?? I didn&amp;#39;t do anything different.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not only that, now ALL THE FAILED SAMPLES now work fine.&lt;/p&gt;
&lt;p&gt;Is it possible that there is some non-volatile area that got corrupted and writing the btl app fixed it??&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll be happy to know what&amp;#39;s going on as two work days were just put into this.&lt;span style="font-family:inherit;text-align:center;"&gt;T&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;text-align:center;"&gt;hanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/thread/358670?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 13:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8284ed86-d5af-43d1-8196-120c8340d237</guid><dc:creator>Sigurd</dc:creator><description>[quote user="matangk"] Did you use my code snippet [/quote]
&lt;p&gt;No. But I just tested your code(main.c), it advertised, I was able to connect. But I got a error when I tried sending data from the phone to the nRF52 with your code.&lt;/p&gt;
&lt;p&gt;Do you have LF crystal on this module? If not, try setting&lt;/p&gt;
&lt;div&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/div&gt;
&lt;p&gt;I will check out the sample you attached.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/thread/358541?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 07:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5156d5d5-a36f-4cbe-a045-0b63a9124f82</guid><dc:creator>matangk</dc:creator><description>&lt;p&gt;&lt;span&gt;Update (3), 17/3 9:00:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After having the nrf52805 module programming and advertizing the NUS last night I went ahead this morning to program it with my&amp;nbsp;&lt;strong&gt;OLD PC&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(1) My module, programmed by the &lt;strong&gt;OLD PC&amp;nbsp;&lt;/strong&gt;with the exact same code as in the&amp;nbsp;&lt;strong&gt;NEW PC&lt;/strong&gt;&amp;nbsp; hangs on bt_enable&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(2) What&amp;#39;s worse - I took it to the&amp;nbsp;&lt;strong&gt;NEW PC&lt;/strong&gt; and programmed it again with the code that was working, and now the module, programmed by the&amp;nbsp;&lt;strong&gt;NEW PC&amp;nbsp;&lt;/strong&gt;won&amp;#39;t advertise the NUS. (in debugger hangs on bt_enable)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(3) On the&amp;nbsp;&lt;strong&gt;NEW PC&lt;/strong&gt;, my NRF52-DK programs fine when the app is built with nrf52dk_nrf52832 and I can run the peripheral uart app fine&amp;nbsp;&lt;strong&gt;with proj_minimal configuration&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(4) Another application,&amp;nbsp;&lt;strong&gt;WITHOUT BT&lt;/strong&gt;, builds on my &lt;strong&gt;OLD PC&amp;nbsp;&lt;/strong&gt;and runs fine with &lt;strong&gt;nrf52dk_nrf52805&lt;/strong&gt; build&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;I&amp;#39;m very, very confused.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When retracing my steps all I can come up with are a few things:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(a) I was dabbing with those two following options&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH&lt;/span&gt;&lt;span&gt;=y/n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC=y/n&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;Back and forth out of hardware considerations. I&amp;#39;m wondering if programming with my&amp;nbsp;&lt;strong&gt;OLD PC&lt;/strong&gt; could have put the chips in some lockdown state or caused something to burn (my module and the 52dk are equipped with inductors for the DCDC converter).&amp;nbsp;&lt;strong&gt;This doesn&amp;#39;t explain how the same app works with nrf52832 config, though.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(b) When looking into &lt;strong&gt;nrf52dk_nrf52805_defconfig&amp;nbsp;&lt;/strong&gt;I see the following line there:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Bluetooth not enabled by default on nRF52805 due to RAM limitations when
# running the default set of kernel tests.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;is there anything special I should do to enable BT?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This is a complete nightmare. I suspect having several SDK versions (I have 1.8.0, 1.9.0, 1.9.1 on my&amp;nbsp;&lt;strong&gt;OLD PC&lt;/strong&gt;) is a bad idea. but this issue needs to be solved. I&amp;#39;m attaching the culprit app here.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks ahead, any help will be welcome.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_uart_5F00_191_5F00_52805.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_uart_5F00_191_5F00_52805.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/thread/358506?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 21:08:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ac907b0-3b54-4348-982d-b0f7baa8af46</guid><dc:creator>matangk</dc:creator><description>&lt;p&gt;&lt;span&gt;Update (2), 16/3 22:00:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Well, in continue to my fails to emulate NRF52805 on my NRF52-DK, I went ahead and programmed an actual NRF52805 - and it works.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m quite baffled with what&amp;#39;s going on and would like some help:&lt;/p&gt;
&lt;p&gt;1. my nrf52-DK programs with a minimal and stripped down BT-NUS example, as an nrf52832&lt;/p&gt;
&lt;p&gt;2. when I build it for nrf52805 and burn it on my nrf52-dk the bt_enable seems to hang&lt;/p&gt;
&lt;p&gt;3. when I actually burn this on an nrf52805 module - bt_enable seems to work and my program runs. I can connect to the NUS from my phone.&lt;/p&gt;
&lt;p&gt;4. Mind, this is on a newly installed NRF-SDK on a new PC.&lt;/p&gt;
&lt;p&gt;What&amp;#39;s going on?&lt;/p&gt;
&lt;p&gt;There must be something that I&amp;#39;m missing. I refuse to think that with these symptoms I somehow damaged my NRF52-DK&lt;/p&gt;
&lt;p&gt;Thanks ahead&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/thread/358501?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 20:07:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7ab04ae-0e5a-45ea-be21-df6cc35f837d</guid><dc:creator>matangk</dc:creator><description>&lt;p style="text-align:left;"&gt;Update (1), 16/3 21:00:&lt;/p&gt;
&lt;p style="text-align:left;"&gt;I tested this again on a new PC. Installed nrf connect desktop from scratch and sdk 1.9.1. I import the sample project and remove the relevant code. The blue NUS never starts and I cannot see it with my Android phone.&lt;/p&gt;
&lt;p style="text-align:left;"&gt;I must be missing something.&lt;/p&gt;
&lt;p style="text-align:left;"&gt;Can you please share your project that runs fine?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/thread/358490?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 16:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e7e8ee-cf46-45df-98cf-c3cd3ba6765c</guid><dc:creator>matangk</dc:creator><description>&lt;p&gt;Interesting. Did you use my code snippet without the extra 52832 hardware? If not, can you please upload the project? What am I doing wrong. I tried with the same sdk, no success. Could my dk have gotten damaged? It shouldn&amp;#39;t I think&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/thread/358467?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 14:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d31f19da-a9f6-4968-b96b-55cf03ce53df</guid><dc:creator>Sigurd</dc:creator><description>[quote user="matangk"]This issue should be super simple to recreate if you have an NRF52-dk next to you.[/quote]
&lt;p&gt;I tested the sample using SDK v1.9.1.&lt;/p&gt;
&lt;p&gt;Used &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-VS-Code"&gt;nRF Connect for VS Code&lt;/a&gt;&amp;nbsp;with this configuration&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647442067716v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And the sample worked fine here. Was able to connect and send some data using the NUS service&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/thread/358368?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 10:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c25dc568-93ef-4688-8bb9-4afce9cd7763</guid><dc:creator>matangk</dc:creator><description>&lt;p&gt;Yes, of course. Otherwise SRAM overflows.&lt;/p&gt;
&lt;p&gt;This issue should be super simple to recreate if you have an NRF52-dk next to you.&lt;/p&gt;
&lt;p&gt;One thing that upset me is that NRF52805 used to be listed in the supported devices. Now it&amp;#39;s listed under &amp;quot;Nordic devices&amp;quot;. The NRF52810 though is still listed as supported, and I&amp;#39;m having the same issues with emulating it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application suddenly stopped building</title><link>https://devzone.nordicsemi.com/thread/358364?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 10:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8538e3b-d89e-48b1-9420-45ee562d6840</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you build the sample using the&amp;nbsp;&lt;a title="prj_minimal.conf" href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/peripheral_uart/prj_minimal.conf"&gt;prj_minimal.conf&lt;/a&gt;&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/samples/bluetooth/peripheral_uart/README.html#minimal-sample-variant"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/samples/bluetooth/peripheral_uart/README.html#minimal-sample-variant&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>