<?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>NRF_BREAKPOINT_COND error due to filesystem page can&amp;#39;t be garbage collected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41223/nrf_breakpoint_cond-error-due-to-filesystem-page-can-t-be-garbage-collected</link><description>My development enviorment: SDK 15.0.0 nrf52810 Example: examples\ble_peripheral\ble_app_template\pca10040 e SES IDE 
 I am running above mentioned example without any changes. On runtime, I am getting NRF_BREAKPOINT_COND. On debugging I found out it&amp;#39;s</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Dec 2018 12:46:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41223/nrf_breakpoint_cond-error-due-to-filesystem-page-can-t-be-garbage-collected" /><item><title>RE: NRF_BREAKPOINT_COND error due to filesystem page can't be garbage collected</title><link>https://devzone.nordicsemi.com/thread/160377?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 12:46:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b6e0c21-be58-426a-95eb-90b024a0a8d4</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The most important thing is that the different elements you flash don&amp;#39;t occupy eachothers space (The application must no be placed on the SoftDevice or on the Bootloader and vice versa).&lt;/p&gt;
&lt;p&gt;The following figure shows the default memory layout for nRF52 devices, where nRF52832 has a flash size of 512 kB and nRF52840 has a flash size of 1024 kB:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-8a2c2e2347014c3cb59b1f9f92ff067a/pastedimage1544012945749v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can check which values you should use by doing the following in your project:&lt;/p&gt;
&lt;p&gt;In SDK config, set the following definitions:&lt;/p&gt;
&lt;p&gt;#define NRF_SDH_BLE_LOG_ENABLED 1&lt;/p&gt;
&lt;p&gt;#define NRF_SDH_BLE_LOG_LEVEL 4&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_BACKEND_RTT_ENABLED 1&lt;/p&gt;
&lt;p&gt;Build a &lt;strong&gt;Debug&lt;/strong&gt; configuration of your project.&lt;/p&gt;
&lt;p&gt;In my example here, I adjusted the RAM_START to low and this is the output I get in the debug terminal:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.
&amp;lt;warning&amp;gt; nrf_sdh_ble: Change the RAM start location from 0x20002110 to 0x200022B0.
&amp;lt;warning&amp;gt; nrf_sdh_ble: Maximum RAM size for application is 0x3DD50.
&amp;lt;error&amp;gt; nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.
&amp;lt;error&amp;gt; app: ERROR 4 [NRF_ERROR_NO_MEM] at C:\NordicSemi\nRF5_SDK_15.2.0_clean\examples\ble_peripheral\ble_app_blinky\main.c:476
PC at: 0x0002D96B
&amp;lt;error&amp;gt; app: End of error report
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you see, this message tells me if I need to adjust my settings, so I do that and my project runs without any errors.&lt;/p&gt;
&lt;p&gt;I can also do the same for the FLASH.&lt;/p&gt;
&lt;p&gt;Here, I adjusted the FLASH_START from 0x26000 to 0x25000, which is in the SoftDevice, and i got the following error message in SES:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-8a2c2e2347014c3cb59b1f9f92ff067a/pastedimage1544013558124v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Because the Application overlaps the SoftDevice now. If i was unsure on where to put the FLASH_START address, and lets say I now set it to 0x30000, the Application will not start.&lt;/p&gt;
&lt;p&gt;This is because the SoftDevice I use expects the Application to start at 0x26000 (for this particular SoftDevice). This can be found in the SoftDevice release notes.&lt;/p&gt;
&lt;p&gt;So, to conclude:&lt;/p&gt;
&lt;p&gt;The start address for flash is found in the SoftDevice release notes for each SoftDevice, and the Application must start at this address. RAM can be adjusted using the method mentioned above.&lt;/p&gt;
&lt;p&gt;Hope this helps you.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_BREAKPOINT_COND error due to filesystem page can't be garbage collected</title><link>https://devzone.nordicsemi.com/thread/160343?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 10:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4cc1772-452f-414f-9720-efd2743669b5</guid><dc:creator>harii</dc:creator><description>&lt;p&gt;Your&amp;nbsp;suggestion worked for me.&lt;/p&gt;
&lt;p&gt;Is there is any documentation explaning about values selection for &amp;quot;section placement macro&amp;quot;? So I can make change as per my reqirements.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_BREAKPOINT_COND error due to filesystem page can't be garbage collected</title><link>https://devzone.nordicsemi.com/thread/160319?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 08:48:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73f72293-21d8-433e-8ab5-11c6c11c50ed</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I suspect that there might be some memory on your chip which is not erased prior to you programming the chip.&lt;/p&gt;
&lt;p&gt;Could you do a &lt;strong&gt;nrfjprog -e, &lt;/strong&gt;before you program the device?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>