<?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 DEBUG NRF52832 USING MINICOM ON UBUNTU(/dev/ttyACM0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32498/how-to-debug-nrf52832-using-minicom-on-ubuntu-dev-ttyacm0</link><description>hai, i am using sdk-v-12.3.0 for nrf52832-pca10040, 
 I connected the SOC to PC using Daplink.Now,i want to just print &amp;quot;hello world &amp;quot; on the /dev/ttyACM0.could any one please assist me.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Mar 2018 07:34:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32498/how-to-debug-nrf52832-using-minicom-on-ubuntu-dev-ttyacm0" /><item><title>RE: HOW TO DEBUG NRF52832 USING MINICOM ON UBUNTU(/dev/ttyACM0)</title><link>https://devzone.nordicsemi.com/thread/125654?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 07:34:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e79c9afa-4740-4aea-8370-4b26c04941ee</guid><dc:creator>JAGADEESH DADI</dc:creator><description>&lt;p&gt;Finally myself i did R&amp;amp;D and solved the problem.its all about changing the pin numbers in main.c and some configurations related to UART in sdk_config.h.Below was the change in my main.c file&lt;/p&gt;
&lt;p&gt;static void uart_init(void)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t err_code;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const app_uart_comm_params_t comm_params =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .rx_pin_no&amp;nbsp;&amp;nbsp;&amp;nbsp; = 30,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .tx_pin_no&amp;nbsp;&amp;nbsp;&amp;nbsp; = 29,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .rts_pin_no&amp;nbsp;&amp;nbsp; = 2,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .cts_pin_no&amp;nbsp;&amp;nbsp; = 28,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .flow_control = APP_UART_FLOW_CONTROL_DISABLED,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .use_parity&amp;nbsp;&amp;nbsp; = false,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .baud_rate&amp;nbsp;&amp;nbsp;&amp;nbsp; = UART_BAUDRATE_BAUDRATE_Baud115200&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_UART_FIFO_INIT(&amp;amp;comm_params,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_RX_BUF_SIZE,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_TX_BUF_SIZE,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uart_event_handle,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_IRQ_PRIORITY_LOWEST,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; err_code);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;And just use printf(); in order to print string&lt;/p&gt;
&lt;p&gt;printf(&amp;quot;\r\nhello world\r\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;And also make sure that your sdk_config.h file must be like attached file&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5187.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../5187.sdk_5F00_config.h&lt;/a&gt;&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: HOW TO DEBUG NRF52832 USING MINICOM ON UBUNTU(/dev/ttyACM0)</title><link>https://devzone.nordicsemi.com/thread/125352?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 12:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2893a393-8c86-4936-b65a-416cb16e2c4b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;When you mention that you use daplink, do you mean using the nRF52-DK with this firmware instead of the default segger fw?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/53481/6/38471829/64337" target="_blank" rel="noopener noreferrer"&gt;nRF5x-OB-mbed-IF&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you try to use segger&amp;#39;s firmware instead and see if that works?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/52275/13/15779984/88835" target="_blank" rel="noopener noreferrer"&gt;nRF5x-OB-JLink-IF&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW TO DEBUG NRF52832 USING MINICOM ON UBUNTU(/dev/ttyACM0)</title><link>https://devzone.nordicsemi.com/thread/125316?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 09:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec39d2d5-2d53-4fb1-a84c-cc529f0fc5de</guid><dc:creator>JAGADEESH DADI</dc:creator><description>&lt;p&gt;No luck.Its like hell.waste of time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW TO DEBUG NRF52832 USING MINICOM ON UBUNTU(/dev/ttyACM0)</title><link>https://devzone.nordicsemi.com/thread/125272?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 07:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e721869-d26d-42ff-9960-6beaf23a0c7f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The project is setup with the UART pins corresponding to the nRF52-DK. If you are testing with the nRF52-DK, then you can compile and flash as-is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW TO DEBUG NRF52832 USING MINICOM ON UBUNTU(/dev/ttyACM0)</title><link>https://devzone.nordicsemi.com/thread/125257?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 05:23:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27def8ce-5590-4532-a266-93d91e1824e5</guid><dc:creator>JAGADEESH DADI</dc:creator><description>&lt;p&gt;Is it fine if i just compile and flash or i need to modify any configurations related to UART in &amp;quot;main.c&amp;quot; or &amp;quot;Sdk_config.h&amp;quot; files before compilation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW TO DEBUG NRF52832 USING MINICOM ON UBUNTU(/dev/ttyACM0)</title><link>https://devzone.nordicsemi.com/thread/125128?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 10:43:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a636d32-5b3d-430d-bc1d-159fc88bfe6b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;If you are using the nRF52-DK, then you can load the SDK example peripheral/uart, and it shall output &amp;quot;Start:&amp;quot; at the beginning.&lt;/p&gt;
&lt;p&gt;Try the reset the board and see if the string appears again.&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t used minicom before, but make sure that you set the correct baud, 115k2, then open the ttyACMx.&lt;/p&gt;
&lt;p&gt;Putty or screen (&amp;quot;screen /dev/ttyACMx 115200&amp;quot;) can also be used to open the serial port.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW TO DEBUG NRF52832 USING MINICOM ON UBUNTU(/dev/ttyACM0)</title><link>https://devzone.nordicsemi.com/thread/125082?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 05:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7766ea0-57ba-4e9a-a7f1-27f22c54c2f9</guid><dc:creator>JAGADEESH DADI</dc:creator><description>&lt;p&gt;I went with your suggestions,but no luck.could you please post any working UART HEX file and a&amp;nbsp; softdevice&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW TO DEBUG NRF52832 USING MINICOM ON UBUNTU(/dev/ttyACM0)</title><link>https://devzone.nordicsemi.com/thread/125048?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 16:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c439e74-11a6-49d6-9e84-3381df40c0fc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Your user must be in the dialout group in order to access the ttyACM* device:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sudo usermod -a -G dialout &amp;lt;username&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After this, you must reboot.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it still does not work, please check the uart pin out of the project that you&amp;#39;ve flashed onto the device matches the required pin-out for your DAPLink.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>