<?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>nRF9160 - send and receive user data bytes through SWD interface?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78683/nrf9160---send-and-receive-user-data-bytes-through-swd-interface</link><description>Hi. 
 As far as I know the SWD interface can be used to download/upload firmware and make debug, I would like to know if SWD also can make the function of sending and/or receiving user application data bytes, in my case this would be used to &amp;quot;configure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Aug 2021 11:05:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78683/nrf9160---send-and-receive-user-data-bytes-through-swd-interface" /><item><title>RE: nRF9160 - send and receive user data bytes through SWD interface?</title><link>https://devzone.nordicsemi.com/thread/325462?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 11:05:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcb4df96-58d1-4089-aaef-5ab1a9fb2507</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The SWD interface can&amp;#39;t be used to communicate directly with the application, but&amp;nbsp;you can use the SWD interface to write to the memory of the nRF9160. Then it should be possible to reserve a small memory region in flash where you can write this configuration data, and then the application can read out the data later on when it is running.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that this will not work if you have enabled the APPROTECT debug port protection, which you might want to enable in order to make it impossible for someone else to read out the memory content over the SWD interface.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If this configuration phase happens during production it should be possible to enable APPROTECT after you have written the configuration data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Setting up a UART interface is also an option, either with or without flow control (4 or 2 pins).&amp;nbsp;&lt;br /&gt;A nice bonus of having a UART interface is that you can also use it to output serial logging information, in case you need to debug some software or hardware issue on your board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>