<?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 data to NRF52 over PCA10040/SWO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79180/sending-data-to-nrf52-over-pca10040-swo</link><description>Hello, 
 I have the following setup: 
 
 a computer connected to a PCA10040 over USB 
 a PCA10040 connected to a NRF52832 over SWO (SWD IO, SWD CLK, SWO, RESET). 
 
 I would like to send data from the computer to the NRF52832 using this setup (ie. nothing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Sep 2021 08:45:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79180/sending-data-to-nrf52-over-pca10040-swo" /><item><title>RE: Sending data to NRF52 over PCA10040/SWO</title><link>https://devzone.nordicsemi.com/thread/328524?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 08:45:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8c630bc-6a6a-4931-8fef-24aa5af39a43</guid><dc:creator>John Waters</dc:creator><description>&lt;p&gt;What I mentioned works (JLinkExe + netcat). &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If someone has a better idea in one command, I&amp;#39;ll take it.&lt;/p&gt;
&lt;p&gt;Anyway, thank you very much for your help Jonathan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data to NRF52 over PCA10040/SWO</title><link>https://devzone.nordicsemi.com/thread/328523?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 08:41:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dc66f89-533a-486c-b0e2-deb19bd66c15</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi, I have not tested this but i belive it should be possible. You will have to start a rtt-session regardless so i believe something along the lines of : start a JLink&amp;nbsp;instance then echo in to localhoste.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Good luck!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data to NRF52 over PCA10040/SWO</title><link>https://devzone.nordicsemi.com/thread/328506?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 07:37:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2deada70-b97a-4fff-83eb-a81a2c32833b</guid><dc:creator>John Waters</dc:creator><description>&lt;p&gt;What I can do is start JLinkExe, and in parallel use netcat on localhost &lt;span&gt;19021&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;$ JLinkExe ... &amp;amp;&lt;/p&gt;
&lt;p&gt;$ echo &amp;quot;cmd1\ncmd2&amp;quot; | netcat localhost 19021&lt;/p&gt;
&lt;p&gt;I wish I could do both with one program. Something like:&lt;/p&gt;
&lt;p&gt;echo &amp;quot;cmd1\ncmd2&amp;quot; | rtt_sender&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data to NRF52 over PCA10040/SWO</title><link>https://devzone.nordicsemi.com/thread/328325?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 08:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84b90717-f199-40cc-8253-79bc380b5a8d</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi John,&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t have a proper answer here for the last question, my best bet&amp;nbsp;would be to have a script running that uses the terminal to do the things you want.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data to NRF52 over PCA10040/SWO</title><link>https://devzone.nordicsemi.com/thread/328182?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 12:04:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55ebf810-0dc8-4030-a7ae-f722ca298505</guid><dc:creator>John Waters</dc:creator><description>&lt;p&gt;Thank you so much. I can indeed send and receive data using the functions in SEGGER_RTT.h.&lt;/p&gt;
&lt;p&gt;Last question. I would like to send data automatically. Is there a way to do it using Command Line only?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data to NRF52 over PCA10040/SWO</title><link>https://devzone.nordicsemi.com/thread/327922?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 09:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3a30eb8-d92f-4370-abf7-ecee280f384b</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;If SWDIO and SWDCLK is the only two options then RTT what you need to use.&lt;br /&gt;&lt;br /&gt;Any pins that is a &lt;span&gt;general purpose IO could be used for communication.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data to NRF52 over PCA10040/SWO</title><link>https://devzone.nordicsemi.com/thread/327837?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 14:24:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02c61f79-0638-4710-b2e9-d24e52f822e7</guid><dc:creator>John Waters</dc:creator><description>&lt;p&gt;Thank you very much for your answer.&lt;/p&gt;
&lt;p&gt;It seems the information I gave above is incorrect.&lt;/p&gt;
&lt;p&gt;The pins we use are VDD [A7], SWDIO [G1], SWDCLK [F1] and ground (on BGA), and they&amp;#39;re connected to the PCA10040.&lt;/p&gt;
&lt;p&gt;Is something doable with this setup only? (since flashing and getting RTT logs is possible, I assumed sending data also was, and it seems JLinkRTTViewer can send data). That would be very convenient for our product.&lt;/p&gt;
&lt;p&gt;If not, to be sure, are you suggesting we should add pins 21/H2 and 24/H1 to have a UART connection?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending data to NRF52 over PCA10040/SWO</title><link>https://devzone.nordicsemi.com/thread/327818?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 13:35:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0597161b-a3e5-4254-b86e-8090cc9ae71d</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You have a custom board and the only pins you have access to is (if it is a QFN packager) pin 21, pin 24, pin 25 and pin 26 ?&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1630589605752v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Then you can use serial communication like&amp;nbsp;UART on pin 21 and 24, they are general purpose IO.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>