<?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>Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38184/sending-custom-ble-characteristic-to-sd-card</link><description>I have developed my own custom BLE service. I need to send BLE characteristic to an SD card. I have implemented the FATFS example and it works. 
 Now I&amp;#39;m trying to merge my custom BLE application with FATFS. However, I&amp;#39;ve not been able to link a BLE characteristic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Sep 2018 09:29:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38184/sending-custom-ble-characteristic-to-sd-card" /><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/148972?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 09:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b4817ac-3db6-4f32-ae6d-221ed48f2d02</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you test with an older version of Segger Embedded Studio? I doubt that this should make any difference, but SDK 15.0.0 is tested with &lt;a href="https://www.segger.com/downloads/embedded-studio/Setup_EmbeddedStudio_ARM_v334_win_x64.exe"&gt;SES v3.34&lt;/a&gt;.&amp;nbsp;If this does not work, I&amp;#39;m afraid I do not have any other ideas than trying the application with different hardware. It&amp;#39;s very hard to debug this when&amp;nbsp;your code is&amp;nbsp;working on my board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/148813?ContentTypeID=1</link><pubDate>Fri, 14 Sep 2018 12:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95b12bf8-751b-44b6-b154-ade37949b7f6</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;&lt;span&gt;This &lt;a href="https://github.com/bjornspockeli/custom_ble_service_example"&gt;tutorial&lt;/a&gt;&amp;nbsp;is what I had followed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;STEP 6:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;Whenever a characteristic is written to, a BLE_GATTS_EVT_WRITE event will be propagated to the application and dispatched to the functions in ble_evt_dispatch(). So this means that we need to add another case to our ble_cus_on_ble_evt switch-case statement, namely BLE_GATTS_EVT_WRITE&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;we get the Write event we have to get hold of the Write event parameters that are passed with the event and we have to verify that the the handle that is written to matches the Custom Value Characteristic handle&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/148730?ContentTypeID=1</link><pubDate>Fri, 14 Sep 2018 07:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63ba8550-9db2-4d87-869b-53bf06741188</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;That line was showing because my nRF Connect was set to perform bonding on connection. This should not be necessary for writing the characteristics (I have tested without bonding, and I&amp;#39;m still able to see the flag getting set).&lt;/p&gt;
&lt;p&gt;What did you use to write the characteristics?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/148198?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 12:32:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5602b11a-6326-4c90-bd18-76b0570cd81d</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;So the expected log (&amp;lt;info&amp;gt; app: Connection secured: role: 1, conn_handle: 0x0, procedure: 0) is from the peer manager event handler pm_evt_handler().&lt;/p&gt;
&lt;p&gt;This log is missing in my RTT output whereas it appears in yours.&lt;/p&gt;
&lt;p&gt;I have nRF2DK v1.1.1. I haven&amp;#39;t made any modifications, just used jumper wires to connect to the SD card holder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/148188?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 12:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3fb1f3a-6852-450f-b940-ab2da43198d1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you add any log messages in peer_manager_init? There is no log messages in the code you uploaded. I also tested to add log messages to&amp;nbsp;&lt;span&gt;peer_manager_init, and they are printed as expected. Which &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/compatibility_matrix/ic_rev_comp_with_dev_hw.html?cp=2_1_3_3"&gt;version of the nRF52 DK&lt;/a&gt; are you using? Have you made any modifications to the board?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/148107?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 23:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac3ec54e-9f89-44ba-b586-b52da7a6c5a0</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;So I disabled fatfs_init function, and I still don&amp;#39;t see logs from peer_manager. That means the issue isn&amp;#39;t related to the SD card?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/148053?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 13:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:967627c9-3cd4-4f4f-a547-bc63eff70d3b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;That should be easy to test. Try to comment out anything related to fatfs/SD card and see if you get the logs immediately from peer_manager. You can disable deferred logging, but this will cause the application to spend significantly longer time processing the logs. You should limit/avoid using logs in interrupt context when logger is configured in non-deferred mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/148048?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 13:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3ed66df-d627-4fb9-bb03-5825527d4d07</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;At the moment, I do not have extra hardware.&lt;/p&gt;
&lt;p&gt;Since the log output is missing from the&amp;nbsp;&lt;span&gt;peer_manager_init() function, I was guessing it might have something to do with BLE side of things rather than the SD card/socket side?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And also since I set the NRF_LOG_DEFERRED to 0, that should disable deferred mode?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147966?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 09:22:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:327edcd3-8f53-435b-a360-3c849149669e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;In that case, I think this must be caused by HW issues, either with your board or with SD card (socket board). It&amp;#39;s working fine on my board. If you do not get the outputs from NRF_LOG, this could indicate that the application is stuck somewhere (the logger is configured in deferred mode, meaning that the logs is not output before idle_state_handler is called at end of main - when all other code execution is complete and the IC is ready to enter sleep mode).&lt;/p&gt;
&lt;p&gt;Do you have another board and/or SD card/socket that you can test with?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147911?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 02:36:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb7c622b-8d38-4af2-acb4-b8efff0efa07</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;UPDATE: I got the nRF LOG to appear, I had to set NRF_LOG_DEFERRED to 0 in sdk_config file.&lt;/p&gt;
&lt;p&gt;Here is the screenshot from RTT terminal now:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ses_5F00_debug3.PNG" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As you can see, the following line is missing as compare to the output from your RTT terminal : &amp;quot;&amp;lt;info&amp;gt; app: Connection secured: role: 1, conn_handle: 0x0, procedure: 0&amp;quot; which is the log output from peer_manager_init() function.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What might be happening?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147847?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 16:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7c78726-7244-4b4f-9c05-acac9230744f</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;I downloaded a new copy of SDK 15.0, unzipped&amp;nbsp;it, copied the example I uploaded in this thread to example folder in the new SDK, ran it, and I&amp;#39;m getting the same result.&lt;/p&gt;
&lt;p&gt;The program doesn&amp;#39;t&amp;nbsp;seem to enter the if(flag) condition in my case.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t think of ideas of what might be going wrong. Any other red flags you may think off?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147834?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 14:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47bd3616-e322-4802-a8d1-52ce5cda1042</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Yes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147832?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 14:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcab9fe9-1975-425d-b7c2-7a71c765f4e8</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;I apologise, it is SDK 15.0 , I was looking at the latest download available on the website. So I should retry with SDK 15.0 right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147831?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 14:12:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30e682ad-ded8-46ac-9fc2-fd38eafa0778</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The project does not compile with SDK 15.1, are you sure you did not use SDK 15.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147829?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 14:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80f9fc39-27d5-4b79-b76f-ffb61e381f61</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;Just to confirm, I&amp;#39;m working with the latest SDK v15.1&amp;nbsp;&lt;br /&gt;I shall download it again and try&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147827?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 13:56:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aad51dbb-6108-47db-9783-6e7d0d55f88a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you sure you have not made any other changes to the SDK? Can you please try with a fresh unzipped SDK and the example you uploaded in this thread?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147694?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 03:30:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb907b20-b062-46d0-8239-d5c937296223</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;Just another observation, when I remove flag&amp;nbsp;condition from main(and dont&amp;nbsp;set flag in from on_cus_evt()), I can write to the SD card.&lt;/p&gt;
&lt;p&gt;And even when I set the flag in services_init() it works and use flag condition in main(), it works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like setting the flag in the function for handling custom BLE events is not working as it should.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147644?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 14:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18b1624d-08f5-4b20-a580-476f7f086944</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;For some reason I still cant get the RTT logs to appear in the debug terminal, so I added a printf statement in on_connect() to show that BLE connection has been established.&lt;/p&gt;
&lt;p&gt;I paused execution after connecting and writing&amp;nbsp;0x01 to the characteristics.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ses_5F00_debug2.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147635?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 14:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6873d70-c821-4ac7-8efb-0fc9901108ee</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;In your image there is no output in the terminal indicating that you have connected. I meant that you should pause the execution after connecting and write 0x01 to the characteristics, to see if the application is stuck somewhere. Please also include the screenshot of the whole SES workspace, including the assembly view shown when debugging (this can give further indications on where the application is when you pause execution).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147630?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 14:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b074e5dd-493c-4d7f-a28d-cab51e25712c</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;When I pause, after writing the to the characteristic from the phone, the application indicates to the if(flag) statement in main.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ses_5F00_debug1.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147620?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 14:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3d10784-738e-4c49-914a-101d2d160a59</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;On what line/instruction did the application stay at when you paused the execution? You cannot continue execution when the softdevice have been enabled. This will cause a hardfault, as the softdevice have not been able to handle timing critical events during the time the CPU was halted by the debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147617?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 13:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0c12f53-7689-4126-8259-004040954b3c</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;I am testing&amp;nbsp;it on a nRF52 DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I ran a debug session, connected on the phone, wrote 0x01 to the characteristics, saw the printf&amp;nbsp;statements, paused execution, ran it again, and then saw RTT logs, with a fatal error terminating execution.&lt;/p&gt;
&lt;p&gt;Here is the screenshot of the debug console:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/SES-debug.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147533?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 09:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40e5e054-3a40-48b2-9f14-754d1f4c50c2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I connected the SD card socket board to the nRF51 DK, then I connected to the board from nRF Connect on the phone, write 0x01 to the characteristics. I see from the RTT output that the file is written. I remove the SD card from socket and put it in SD Card reader of computer to verify that the string is written.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which board are you testing this on? You should try to pause the execution when debugging to see if you are stuck somewhere waiting for the SD card write, etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147427?ContentTypeID=1</link><pubDate>Wed, 05 Sep 2018 15:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49c2a06f-df4a-4063-8038-9d6a0386787b</guid><dc:creator>RO</dc:creator><description>&lt;p&gt;So when I run the FATFS example project, it writes the SD card, with the same hardware connections. I can see &amp;quot;SD card example&amp;quot; in NORDIC.TXT. But when I switch to the custom BLE service project, I don&amp;#39;t see the new string written to the file.&lt;/p&gt;
&lt;p&gt;Sorry for being naive,&amp;nbsp; did you actually wire up hardware to an SD card reader and open the NORDIC.TXT file in the SD card?&lt;/p&gt;
&lt;p&gt;Also, without the UART initialization and retarget module, I see the other printf&amp;nbsp;lines from main and the event handler. I just dont&amp;nbsp;see printf lines from fatfs_write.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending custom BLE characteristic to SD card</title><link>https://devzone.nordicsemi.com/thread/147424?ContentTypeID=1</link><pubDate>Wed, 05 Sep 2018 15:26:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:040c0e7c-87ab-49c6-9158-e2b9881f1d85</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Sounds like you have not connected the SD card correctly, or there is some issue with the initialization. I checked the content of the card, and do see the string &amp;quot;&amp;nbsp;SD card example from BLE&amp;quot; in file NORDIC.TXT.&lt;/p&gt;
&lt;p&gt;RTT is working in your example, but you might not be able to use RTT Viewer when debugging. You should be able to see the RTT output in console window of SES when debugging.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see any &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__app__uart.html?cp=4_0_1_6_11_57"&gt;UART initialization&lt;/a&gt; in your application, neither have you included/enabled the module retarget.c, which &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__retarget.html?cp=4_0_1_6_11_66"&gt;retargets the STDIO functions&lt;/a&gt;&amp;nbsp;(i.e., forwards printf data to UART). You will not be able to use printf without this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>