<?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>How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80607/how-to-enable-ncs-printf-statements-on-ses-in-debug-terminal</link><description>Hello, I am using sample hello_world app in SES, in the main file of which there are two print statements as: During flashing and debugging on the board, execution enters the above lines, but I see no statements on SES debug terminal.! Kindly inform on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Nov 2021 13:08:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80607/how-to-enable-ncs-printf-statements-on-ses-in-debug-terminal" /><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/338794?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 13:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bd6cc06-a3b3-46e8-939c-4c8760c66235</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, so what board file are you using, and where do P0.06 and P0.08 go on the BL653 board (which are the default pins used by the UART). If you set the RTT console as in the peripheral UART you should be able to&amp;nbsp;connect to RTT in the nRF terminal by selecting the board name instead of the COM port. I don&amp;#39;t know what pins the BL653 uses for UART communication. You might have to make some changes in the board file (UART pins) to see UART data out on your terminal.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/338481?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 07:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:933c0227-13f4-4ef1-a954-8ebbcbb20ab5</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Also, my .conf file:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/conf_5F00_file.txt"&gt;devzone.nordicsemi.com/.../conf_5F00_file.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/338480?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 07:22:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9d8ae35-54ca-436e-92a1-213e86ec2947</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the info.&lt;br /&gt;&lt;br /&gt;Coming back to my original issue:&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/80607/how-to-enable-ncs-printf-statements-on-ses-in-debug-terminal/334467#334467"]I assume you use the nRFConnect extension pack for VS code, correct? If you also instal the nRF Terminal extension you get a serial terminal called NRF TERMINAL in the Terminal panel. You can connect to your device over serial port (UART) or RTT.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How can i get BL653 prints on NRF TERMINAL of VSCode.?&lt;/p&gt;
&lt;p&gt;Have attached the conf files for your reference, I am using a simple hello_world sample project.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1537.prj.conf"&gt;devzone.nordicsemi.com/.../1537.prj.conf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/338476?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 06:59:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74bedbc7-4cce-4610-82b9-e879088a4a8d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;From this prj.conf file (the peripheral_uart prj.conf) the RTT is used as a backend to print log messages, as the UART is used as a service and to print communication from the device it&amp;#39;s connected to over BLE.&lt;/p&gt;
&lt;p&gt;Please try downloading and using SEGGERs RTT viewer and use that while the device is connected to a debugging device. Using the UART backend to print won&amp;#39;t work I&amp;#39;m afraid as that UART instance is taken by the application. I would also recommend using printk instead of printf as the CONFIG_LOG_PRINTK=y routes printk() to the log module. You can set it to =n to use the CONSOLE backend instead (see configs UART_CONSOLE and RTT_CONSOLE, and thus printf).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/338286?ContentTypeID=1</link><pubDate>Wed, 10 Nov 2021 06:17:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3dae469-c717-41c6-8eda-57e2e6d32a12</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3730.prj.conf"&gt;devzone.nordicsemi.com/.../3730.prj.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;PFA the prj.conf file for BL653 peripheral_uart project, I added printf( ) inside the main function of&amp;nbsp;&lt;span&gt;BL653 peripheral_uart project and I wasn&amp;#39;t able to see the printf&amp;#39;s on the terminal.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you kindly guide.?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/337394?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 07:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc097c73-c200-40c6-870b-9ed2ba708f0c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, do you know what pins the BL653 uses for UART communication over terminal? Since it is not the nRF52833 DK from Nordic I can&amp;#39;t&amp;nbsp; guarantee that it uses the same pins for UART communication with the computer. I would suggest taking a look at the prj.conf file from the peripheral_uart sample projects located at&amp;nbsp;&lt;strong&gt;...\ncs\v1.7.0\nrf\samples\bluetooth\peripheral_uart&amp;nbsp;&lt;/strong&gt;where a few vital configs are set to make sure prints are being printed to the UART console, and enabling the UART driver, etc.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/337253?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 11:56:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5bb37e3-5182-454d-b7f1-6b3213b54916</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am using the BL653 dev kit for nRF52833, I am on debug mode in my screenshots so you see my CPU paused.&lt;br /&gt;My prj.conf file says : &amp;quot;# nothing here&amp;quot;.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/337232?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 10:19:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ee79253-27c8-46a6-8a7c-dbe559f64342</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Can you show me the prj.conf file of your application, so I can make sure that UART is enabled correctly? Also, your screenshot shows that the debugger has the application paused, but I assume you don&amp;#39;t see anything if you press F5 to start the CPU either? And just to be sure, can you confirm whether you&amp;#39;re working on an nRF52833 Development Kit (PCA10100) or not?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/337175?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 06:07:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8703bf39-e803-42ca-b219-7b1d296c0db9</guid><dc:creator>Ubaid_M</dc:creator><description>[quote userid="75734" url="~/f/nordic-q-a/80607/how-to-enable-ncs-printf-statements-on-ses-in-debug-terminal/336772#336772"]Set the baud rate to 115200, no parity, 8 data bits, 1 stop bit.[/quote]
&lt;p&gt;Hello Simon,&lt;br /&gt;&lt;br /&gt;I did exactly that, yet all of my printfs, printks and couts are not visible on NRF Terminal&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635919309814v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me just sequentially post pics for the configuration I am doing:&lt;br /&gt;1.&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635919374778v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635919395708v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635919417231v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635919439064v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635919460526v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;6.&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635919485569v7.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;7.&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635919526837v8.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And no prints.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kindly help me out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/336772?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 07:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92fe5941-b53e-4642-853d-c953c11296b6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please note that you should press the &lt;strong&gt;VCOM3 &amp;gt;&lt;/strong&gt; button in the CONNECTED DEVICES tab in the bottom left. Set the baud rate to 115200, no parity, 8 data bits, 1 stop bit. Flow control should be enabled.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/336597?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 07:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:952c0e16-ddbf-4762-87f5-a9297a9629c2</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hi &lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Even after enabling COM port, i cannot see the printfs&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635492636001v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you help me on how to setup the COM3 port as in below:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635492723509v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;After baud rate it asks me parity and stuff.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/334762?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 07:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:950ff1fc-6180-434d-9d2b-9e14370ff5af</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Great, in the nRFConnect extension, at the bottom left there is a tab of connected devices where you can see your connected DK for instance. You need to choose the COM port you want to see in the NRF terminal in order for anything to show up there.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/VCOM.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/334470?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 06:19:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53164201-ea1c-48d1-b563-452ea2b546a1</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hi &lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;I do have the nRF Terminal installed&lt;/p&gt;
&lt;p&gt;But yet I do not see any&amp;nbsp; printf&amp;#39;s or printk&amp;#39;s on the terminal.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1634537870116v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/334467?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 06:08:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce42e1a4-c22e-46c1-acc3-cbedb404cafd</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I assume you use the nRFConnect extension pack for VS code, correct? If you also instal the nRF Terminal extension you get a serial terminal called NRF TERMINAL in the Terminal panel. You can connect to your device over serial port (UART) or RTT.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/334099?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 10:21:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e795fb5d-dc1d-43c9-a390-58ca725da32f</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;Thanks for the info, kindly guide me how I can get printf and printk statements to be visible on VSCode..?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable nCS printf statements on SES in debug terminal</title><link>https://devzone.nordicsemi.com/thread/334048?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 07:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ece2fab-9960-44ad-8379-91327b561f4a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I assume this is the &lt;strong&gt;NCS_version\zephyr\samples\hello_world&amp;nbsp;&lt;/strong&gt;you&amp;#39;re referring to?&lt;/p&gt;
&lt;p&gt;I think this is because the Hello World message is printed over the UART backend instead of the RTT backend (which the SEGGER debugger uses). You can try setting the CONFIG_LOG_BACKEND_RTT to 1. See more on that in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_logging.html"&gt;logging user guide here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>