<?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 get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22155/how-to-get-more-output-to-pc-nrf52832</link><description>I use ESB sample code ,change to do 8k sample rate ADC(10bit) and transport by ESB ,but overflow when output receive data to PC use uart at UARTE_BAUDRATE_BAUDRATE_Baud1M.
All my data is about 16KB/s,Is there somthing wrong ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 27 May 2017 01:41:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22155/how-to-get-more-output-to-pc-nrf52832" /><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87092?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 01:41:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cf117ff-d25a-4821-bdc7-c140b279a2c5</guid><dc:creator>suker</dc:creator><description>&lt;p&gt;thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87091?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 15:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97b8adab-980f-49a3-b062-71a8df5a1be1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You can just simply replace NRF_SERIAL_MODE_IRQ with NRF_SERIAL_MODE_DMA in NRF_SERIAL_CONFIG_DEF then you will have DMA mode.
You should try to increase the SERIAL_BUFF_TX_SIZE and SERIAL_FIFO_TX_SIZE, that would also help.
I can achieve quite good result by increasing them, upto 966kbps with 1Mbps baud rate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87090?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 03:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd0050ad-b842-48f1-9eca-5e9f6691feb1</guid><dc:creator>suker</dc:creator><description>&lt;p&gt;is there have example for EasyDMA for UART. I realy need it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87089?ContentTypeID=1</link><pubDate>Thu, 25 May 2017 09:54:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb96589d-21e3-4f79-b36f-0f6cda81255f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Suker:
I assume above is the result when you run my test ? At least at 460800 it&amp;#39;s more than 20kB/s ?
Please be aware that the example sending UART packet without using EasyDMA. I spot that it would take extra time between each byte. If you use EasyDMA you should achieve better through put.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87088?ContentTypeID=1</link><pubDate>Thu, 25 May 2017 09:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec5474af-798e-4ba6-bca7-d09afd67afcf</guid><dc:creator>suker</dc:creator><description>&lt;p&gt;921600 0.5SEC    460800 0.8SEC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87087?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 07:22:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1955e7a9-c58b-4c21-a738-725a06b38cd8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s SDK v13.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87085?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 05:08:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51baa581-52e3-4d99-8723-ad4bb5408db3</guid><dc:creator>suker</dc:creator><description>&lt;p&gt;which Version of SDK are you used , I used nRF5_SDK_12.2.0_f012efa , but  do not have  peripheral\serial .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87086?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 13:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f11c337a-a714-40cf-b601-9cd8359af27b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t see any problem to achieve it. How do you test. The attached image in my answer above showing the time it take to send 20kB, it was about 30kB/s at 460800 bps (seems that the Segger chip doesn&amp;#39;t support above 460800bps).&lt;/p&gt;
&lt;p&gt;I also attached the test file. Replace the main.c with main.c in peripheral\serial to test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87084?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 01:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe7fbaec-de63-4b17-abe6-d92ab96d634e</guid><dc:creator>suker</dc:creator><description>&lt;p&gt;I mean that I want to get output on uart at 16KB/S. I change baudrate to 1Mbps/460800bps, uart output overflow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87083?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 12:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65b87a7e-a10b-4920-8299-6db645e315bd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;If you have a logic analyzer, please check if there is actually data clocked out from the nRF5 to the cp2102&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87082?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 12:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d81fbd4-6b9a-4b21-a3cd-4273b14aef2d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I mean how do you test and find that it doesn&amp;#39;t support 1Mbps ? You mean you receive nothing on PC when changing baudrate to 1Mbps/460800bps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87081?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 11:34:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:371e30b5-3df0-432b-8c0f-e1a7410f9d1b</guid><dc:creator>suker</dc:creator><description>&lt;p&gt;1,I donot change uart code except baudrate
2,Yes,I test no flow control and RTS/CTS,The result is the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87080?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 07:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68f20907-989e-4a31-9b54-9369e502a3b2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you describe how you tested ? Have you used hardware flow control ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87079?ContentTypeID=1</link><pubDate>Sat, 20 May 2017 08:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48a47e21-caef-4655-80ae-27f72a2a9673</guid><dc:creator>suker</dc:creator><description>&lt;p&gt;yes I test 460800, uart_to_usb chip cp2102, uart output overflow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87078?ContentTypeID=1</link><pubDate>Fri, 19 May 2017 10:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b94b1361-825c-4d45-932f-cb4bf2a662f7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I mean to do a throughput test. You send dummy data to UART and check how long would it take. Please try with 460800baud to check if it was the PC doesn&amp;#39;t support 1Mbps or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87077?ContentTypeID=1</link><pubDate>Fri, 19 May 2017 06:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50753b85-e957-421e-a64d-df9ada036fe3</guid><dc:creator>suker</dc:creator><description>&lt;p&gt;1,I  use nrf52832.&lt;/p&gt;
&lt;p&gt;2,do you add more args on log system? I add a function nrf_log_frontend_std_8,but nothing output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get more output to PC (nrf52832)</title><link>https://devzone.nordicsemi.com/thread/87076?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 13:18:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3421ffd-1bc6-43dd-be6b-6a484112d385</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Suker,&lt;/p&gt;
&lt;p&gt;Please state which chip you are using?&lt;/p&gt;
&lt;p&gt;Could you try to test through put on UART only (print dummy data to PC, skip the ESB and ADC part). There are some UART driver on PC that actually doesn&amp;#39;t support 1Mbps.&lt;/p&gt;
&lt;p&gt;Have you tried to test with 460800baud ?&lt;/p&gt;
&lt;p&gt;Sending 20kB:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/serial.JPG" alt="serial.JPG" /&gt;]&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3146.main.c"&gt;main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3247.main.c"&gt;main.c with EasyDMA and bigger buffer&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>