<?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>I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21809/i-took-all-these-steps-and-there-is-no-advertising</link><description>Using Segger , only the BLE template is advertising,All other BLE apps such as BLE_UART, will flash the leds very fast but will not show on any Apple device on the Bluetooth. 
 SDK13 : 
 I did : 
 
 imported the example 
 replaced thumb_ crt0.s with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 May 2017 17:54:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21809/i-took-all-these-steps-and-there-is-no-advertising" /><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85670?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 17:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0fe75c4-569d-41fb-8bfe-bd45aeb532df</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;btw, here is how to memory map looks like: &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/mem_usage/mem_resource_map_usage.html?cp=2_3_0_0_13_0"&gt;infocenter.nordicsemi.com/.../mem_resource_map_usage.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85669?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 17:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:557c476d-99e4-437c-9bc9-6fe3e9764bd0</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;When you have allocated too little RAM for the SoftDevice, the print looks like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;SDH:WARNING:RAM start should be
adjusted to 0x200025f8.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So then you just adjust your SRAM_START to that value.
Make sure that you have &lt;code&gt;#define NRF_LOG_ENABLED 1&lt;/code&gt; and &lt;code&gt;#define NRF_LOG_BACKEND_SERIAL_USES_UART 1&lt;/code&gt; in &lt;code&gt;sdk_config.h&lt;/code&gt;. And then you can use &lt;a href="https://www.compuphase.com/software_termite.htm"&gt;Termite terminal&lt;/a&gt;, or another terminal software to see what is getting printed over the UART.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85676?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 17:20:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44f34863-e99a-4dcd-be5d-38add258e995</guid><dc:creator>Jan Tore Guggedal</dc:creator><description>&lt;p&gt;No problem, happy to help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85675?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 17:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2df89fb-2bf1-40b9-aafa-07243d1fe453</guid><dc:creator>Lola</dc:creator><description>&lt;p&gt;Thank you ! Jan you did so much for me and also Daniel, you guys are great ! I am spending days on this and it&amp;#39;s the hardest thing I&amp;#39;v done as an engineer. THANK YOU !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85674?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 17:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:620a4ae6-6b8d-467a-93a8-173a697215b0</guid><dc:creator>Jan Tore Guggedal</dc:creator><description>&lt;p&gt;The addresses that you set are for the application. The SoftDevice will use the addresses up till those addresses.
You can check my updated answer on how you can get the required SRAM start address in Segger Embedded Studio if you change things in the application. Also see the post I linked to where Bjørn explains how this works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85668?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 17:05:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20bd92ca-ad6e-481b-bab9-0d0875baabf9</guid><dc:creator>Lola</dc:creator><description>&lt;p&gt;So how can you calculate according to his answer the size if inside your code you change things that affect it? if I add 10 services, then it has to be larger, how would i know ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85673?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 17:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d3b9068-4e24-463d-98b1-0f0f31dd2eb7</guid><dc:creator>Lola</dc:creator><description>&lt;p&gt;Ok SO they are not related, the flash always start in the same spot( why not 0 ? ) and the SRAM will start according to the size of soft device . is that correct ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85672?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 16:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42c6d716-e99a-4242-a6bb-cddc94713401</guid><dc:creator>Lola</dc:creator><description>&lt;p&gt;Hi, first thank you so much, second, I don&amp;#39;t get this, how is SRAM related to flash ?  how is this thing works  I learned that flash is quite different from RAM :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85667?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 16:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90b1c3bc-2a90-4da5-b9fb-965ad48c59b2</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;As Jan Tore mentioned, it depends on how you configure the softdevice. How many services and characteristic you add,etc . If you allocate too little RAM to the SoftDevice, the softdevice will print the amount it needs. See Bjorn&amp;#39;s answer Jan Tore Linked to :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85666?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 16:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f7ce9b5-6bb0-4056-a9b5-58dc2044056a</guid><dc:creator>Lola</dc:creator><description>&lt;p&gt;Please post it as an answer so everyone can benefit, its important for new users . thank you for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85665?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 16:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c4d7f86-e0e6-4750-9dc9-52469dfefae9</guid><dc:creator>Lola</dc:creator><description>&lt;p&gt;WOW !!!!!! IT WORKED!  Please, please help me understand this. how is this soft device works? what it does? where its located? when do we need it ? is there an option that there will be space between them? I am not sure I understand what I am doing at all and there is no short explanation other then going over 1000 pages of sdk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85671?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 16:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d8750af-b98b-45ce-bc15-a27b9b8b5dbf</guid><dc:creator>Jan Tore Guggedal</dc:creator><description>&lt;p&gt;Hi, Lola&lt;/p&gt;
&lt;p&gt;I think the problem here is step 6 in your list. The &lt;code&gt;SRAM_START&lt;/code&gt; address needs to be set high enough for the SoftDevice to get the amount of memory it requires. For the UART example in SDK 13 and SoftDevice S132 v4.0.2, it should be set to (at least) &lt;code&gt;SRAM_START=0x200025f8&lt;/code&gt;.
You can find this address in the linker script &lt;code&gt;ble_app_uart_gcc_nrf52.ld&lt;/code&gt; in &lt;code&gt;ble_app_uart/PCA10040/s132/armgcc/&lt;/code&gt;. The same goes for other examples that uses the SoftDevice. The amount of memory the SoftDevice needs depends on the BLE configurations in each example, and will therefore vary.&lt;/p&gt;
&lt;p&gt;For a more detailed answer, check &lt;a href="https://devzone.nordicsemi.com/question/133466/sdk-130-s132-ram-size/"&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When using Segger Embedded Studio, you can open the debugger and if the SRAM address is set too low, an error message will be printed in the Debug terminal. This will state what the SRAM start address should be set to. Remember first to set the DEBUG flag in the preprocessor definitions to make the device stop on hard fault instead of resetting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I took all these steps and there is no advertising</title><link>https://devzone.nordicsemi.com/thread/85664?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 16:47:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd5ca63f-2fed-4987-af1a-eff878702aa6</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;The ble_app_uart example uses more ram than the template project, so you will need to increase the SRAM_START value to &lt;code&gt;SRAM_START=0x200025F8&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You can see how much RAM the examples uses by looking at the linker-script file for gcc.Its located in the folder &lt;code&gt;ble_app_uart\pca10040\s132\armgcc&lt;/code&gt;, open the file &lt;code&gt;ble_app_uart_gcc_nrf52.ld&lt;/code&gt; in a editor, here you can see that &lt;code&gt;RAM (rwx) : ORIGIN = 0x200025f8, LENGTH = 0xda08&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>