<?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 DK is On but Not Advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70890/nrf52-dk-is-on-but-not-advertising</link><description>Hello, I was successful in using Arduino headers/ libraries to program my nRF52 DK, but now I am attempting to recreate the project in Segger V5.34 for MacOS for potential mass production. I am using the ble_app_template example from the nRF52 SDK 17</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Jan 2021 07:55:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70890/nrf52-dk-is-on-but-not-advertising" /><item><title>RE: nrf52 DK is On but Not Advertising</title><link>https://devzone.nordicsemi.com/thread/291912?ContentTypeID=1</link><pubDate>Fri, 29 Jan 2021 07:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4a7fd80-2684-495b-9e86-3d5ffd765a9d</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;NRF_LOG_BACKEND_RTT_ENABLED should be defined to 1 in the sdk_config if you intend to use the debug terminal ( which uses RTT ), please revert this change.&lt;br /&gt;&lt;br /&gt;Could you answer the other questions in my previous comment as well?&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together,&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DK is On but Not Advertising</title><link>https://devzone.nordicsemi.com/thread/291897?ContentTypeID=1</link><pubDate>Fri, 29 Jan 2021 04:32:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:447d74d5-2cf6-46a8-bd86-f96118f1ad82</guid><dc:creator>jasonterance</dc:creator><description>&lt;p&gt;I tried&amp;nbsp;changing&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;NRF_LOG_BACKEND_RTT_ENABLED&lt;br /&gt; &lt;/pre&gt;
&lt;p&gt;to 0 but nothing changes. There&amp;#39;s still nothing in the debug terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DK is On but Not Advertising</title><link>https://devzone.nordicsemi.com/thread/291680?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2021 07:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75c786cd-4372-4cc7-b4ed-12efc760acec</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Jason,&lt;/p&gt;
[quote user="jasonterance"]I defined DEBUG in the preprocessor defines, but there is still no output in the logger.[/quote]
&lt;p&gt;Just to confirm, are you not seeing any output to your logger backend? Not even &amp;#39;&lt;span&gt;Template example started.&lt;/span&gt;&lt;span&gt;&amp;#39;?&lt;br /&gt;Could you go ahead and add a NRF_LOG_INFO line with some text right after your call to the&amp;nbsp;&lt;em&gt;log_init&lt;/em&gt; function, to see if this is displayed in the logger output?&lt;/span&gt;&lt;/p&gt;
[quote user="jasonterance"].Just to make sure, where should I see NRF_LOG_INFO(&amp;quot;&amp;quot;) ; functions? Do they output to the&amp;nbsp;debug terminal?[/quote]
&lt;p&gt;This depends on which logger backend you have enabled &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_nrf_log.html"&gt;for the nrf_log module&lt;/a&gt;. The module may output its logs to either UART, RTT, CLI, or FLASH - the default behavior of the example repository you linked in your initial ticket uses the RTT backend, which means that you should be able to see the loggers output either in the&amp;nbsp;&lt;em&gt;debug terminal&amp;nbsp;&lt;/em&gt;or using the&amp;nbsp;&lt;em&gt;RTT Viewer&amp;nbsp;&lt;/em&gt;application by Segger. Have you changed from the default backend, or do you still have it configured to use the RTT backend in your sdk_config file?&lt;/p&gt;
[quote user="jasonterance"]Also, I tried to toggle LED 4 with&amp;nbsp;nrf_gpio_pin_toggle(LED_4); at the end of main but nothing happens, so it seems unresponsive or stuck.[/quote]
&lt;p&gt;Yes, this likely means that the application encounters an error during its initialization or startup, and thus never gets to the toggling, since the default error handling is to reset the application.&lt;br /&gt;If we can manage to get your logger module up an running we will immediately be told which function it is that returns the error, so I think we should focus on getting that up and running first.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DK is On but Not Advertising</title><link>https://devzone.nordicsemi.com/thread/291603?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2021 19:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5266b4f3-3162-4a6b-a34c-28e0c48379e4</guid><dc:creator>jasonterance</dc:creator><description>&lt;p&gt;Hey Karl, I defined DEBUG in the preprocessor defines, but there is still no output in the logger.Just to make sure, where should I see NRF_LOG_INFO(&amp;quot;&amp;quot;) ; functions? Do they output to the&amp;nbsp;debug terminal? Also, I tried to toggle LED 4 with&amp;nbsp;nrf_gpio_pin_toggle(LED_4); at the end of main but nothing happens, so it seems unresponsive or stuck.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Jason&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DK is On but Not Advertising</title><link>https://devzone.nordicsemi.com/thread/291182?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2021 08:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03f52134-feb7-47a6-b244-326dfa637044</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello jasonterance,&lt;/p&gt;
[quote user=""]Thank you for all the examples, by the way. They&amp;#39;re very helpful. Thanks in advance![/quote]
&lt;p&gt;No problem at all, I am happy to hear that you have found the examples very helpful!&lt;/p&gt;
[quote user=""]However, when I build and run everything, nothing is advertised.[/quote]
&lt;p&gt;Could you elaborate on this a bit further? Are you seeing anything output to your logger backend when you run the program?&lt;br /&gt;Does the device reset at any point, or does it seem unresponsive / stuck when you run your program?&lt;br /&gt;Could you also verify for me that you have defined DEBUG in your preprocessor defines, like shown in the included image?&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/02308.enabling_5F00_debug_5F00_SES.PNG" /&gt;&lt;br /&gt;This will produce a detailed error message to the logger output in the case that an error code != NRF_SUCCESS is passed to an APP_ERROR_CHECK, instead of just resetting the device right away(which is the default error handling).&lt;br /&gt;&lt;br /&gt;I suspect that something might have gone wrong during your services declaration, and that the device thus never gets passed that part in your code. If this is the case you should see an output to your logger backend when this occurs.&lt;/p&gt;
[quote user=""]I have already flashed the S132 SoftDevice (At least, I&amp;#39;m pretty sure)[/quote]
&lt;p&gt;The SDK examples for SES are all configured to flash the SoftDevice as well, so I too would think that this is covered since you are using the BLE template example as your foundation.&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>