<?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>Implementing SWD over a Type A to C USB cable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29891/implementing-swd-over-a-type-a-to-c-usb-cable</link><description>Hi, 
 I want to implement SWD (and potentially UART lines) over a type A to C USB cable to talk to the NRF52832 on our board. 
 Currently, we only want to sink power only with no USB data. We also don&amp;#39;t need to pass USB spec, as we are just using the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 13 Jan 2019 23:39:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29891/implementing-swd-over-a-type-a-to-c-usb-cable" /><item><title>RE: Implementing SWD over a Type A to C USB cable</title><link>https://devzone.nordicsemi.com/thread/165329?ContentTypeID=1</link><pubDate>Sun, 13 Jan 2019 23:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf06799-0bd6-415d-8c8f-fa8f6f296c23</guid><dc:creator>S&amp;#248;ren</dc:creator><description>&lt;p&gt;Just a side node. To void a switch interface the cable connection could act as a switch. That would, in my opinion make a smoother user experience, if only one switch is needed. Compared to opening the shell and pushing some tiny button. One scenario would be, to switch between beacon mode and slave/master mode, set on a timer. To program the nrf52 a SWD to USB-C (DAM) converter would come in handy. From what i gather, the CC1 and CC2 pins must be pulled up with resistor values depending og the case. The only downside, as of now, is the cost. But then again, the project will be futuristic and open. To use the cable-switch approach is likely a smart choice, if the chip is running on a rechargeable power source. Just saying.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing SWD over a Type A to C USB cable</title><link>https://devzone.nordicsemi.com/thread/165311?ContentTypeID=1</link><pubDate>Sun, 13 Jan 2019 08:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4319d1f-8296-4ecf-b763-d20d618b3400</guid><dc:creator>S&amp;#248;ren</dc:creator><description>&lt;h3&gt;Which pins to choose for Debug Accessory Mode? Any SWD standard?&lt;/h3&gt;
&lt;p&gt;The external device test system signals to the target system to enter debug accessory mode via CC1 and CC2 both being pulled down with an Rn resistor value or pulled up as Rp resistor value from the test plug (Rp and Rn specified in Type-C spec).&lt;/p&gt;
&lt;p&gt;After entering debug accessory mode, optional orientation detection via the CC1 and CC2 is done via setting CC1 as a pullup of Rd resistance and CC2 pulled to ground via Ra resistance (From the test system type-c plug). While optional, orientation detection is required if you want usb power delivery communication to be functional.&lt;/p&gt;
&lt;p&gt;In this mode, all digital circuits are disconnected from the connector, and 14 underlined pins can be used to expose debug related signals (e.g. JTAG interface). USB IF requires for certification that security and privacy consideration and precaution has been taken and that the user has actually requested that debug test mode be performed.&lt;/p&gt;
&lt;table class="wikitable"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;TX1+&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;TX1&amp;minus;&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;V&lt;sub&gt;BUS&lt;/sub&gt;&lt;/td&gt;
&lt;td&gt;CC1&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;D+&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;D&amp;minus;&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;SBU1&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;V&lt;sub&gt;BUS&lt;/sub&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;RX2&amp;minus;&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;RX2+&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;RX1+&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;RX1&amp;minus;&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;V&lt;sub&gt;BUS&lt;/sub&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;SBU2&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;D&amp;minus;&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;D+&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;CC2&lt;/td&gt;
&lt;td&gt;V&lt;sub&gt;BUS&lt;/sub&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;TX2&amp;minus;&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;&lt;u&gt;TX2+&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;If you don&amp;#39;t care about power delivery communication, but still requires flippability of the type-c cable, your test plug will need to be arrange as below. With CC1 and CC2 both being pulled down with an Rn resistor value or pulled up as Rp resistor value from the test plug.&lt;/p&gt;
&lt;table class="wikitable"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS1&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS2&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;V&lt;sub&gt;BUS&lt;/sub&gt;&lt;/td&gt;
&lt;td&gt;CC1&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS6&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS7&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS5&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;V&lt;sub&gt;BUS&lt;/sub&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS4&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS3&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS3&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS4&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;V&lt;sub&gt;BUS&lt;/sub&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS5&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS7&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS6&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;CC2&lt;/td&gt;
&lt;td&gt;V&lt;sub&gt;BUS&lt;/sub&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS2&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;b&gt;TS1&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;This mirroring of test signals will provide you with 7 test signals for your usage instead of 14, but with the benefit of minimising extra parts count for orientation detection.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/USB-C"&gt;en.wikipedia.org/.../USB-C&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing SWD over a Type A to C USB cable</title><link>https://devzone.nordicsemi.com/thread/118887?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 09:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b40b7b4-6ebd-4864-8736-9ced7b440de3</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I think I might have misunderstood your initial post. You can use any of the lines in the plug for any purposes you wish, as long as you meet the connector electrical specification. But if anybody accidentally plugs your type A connector into a computer you might destroy the computer and/or the board - We cannot speculate about this or make any guarantees if you proceed to break the standard.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing SWD over a Type A to C USB cable</title><link>https://devzone.nordicsemi.com/thread/118886?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 17:47:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b7d160-ffc7-4ac9-a473-9d423e73c515</guid><dc:creator>Josh</dc:creator><description>&lt;p&gt;Hi Martin,
Yes, I understand that there are no UART lines or SWD dedicated lines in USB cables, I was wondering if I could re-purpose the SS lines for SWD if I am not using SS data. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing SWD over a Type A to C USB cable</title><link>https://devzone.nordicsemi.com/thread/118885?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 11:19:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7718dc65-dd67-4caa-977c-28a4f73f17ac</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I might still be misunderstanding your intentions, but&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;There are no UART lines in USB cables. If you want to communicate with an nRF52832 through USB you will have to use some sort of USB to UART converter.&lt;/li&gt;
&lt;li&gt;There are no SWD lines in USB cables. To use SWD you will need some sort of MCU to convert USB to SWD.&lt;/li&gt;
&lt;li&gt;The USB Vbus voltage is 5V. You cannot power an nRF52832 device with 5V without a voltage converter regulating the voltage down to &amp;lt; 3.6V.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In case you are not aware the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/about.html?cp=2_0_0_1#concept_ebh_qjg_bt"&gt;nRF52840&lt;/a&gt; has USB and can be powered from Vbus.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing SWD over a Type A to C USB cable</title><link>https://devzone.nordicsemi.com/thread/118884?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 17:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7ece994-36da-4ae5-ad3a-ea0fe5ebac67</guid><dc:creator>Josh</dc:creator><description>&lt;p&gt;We will connect to a debugger for debugging purposes, but we want to be able to be plug into a computer directly and still charge for end-user.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing SWD over a Type A to C USB cable</title><link>https://devzone.nordicsemi.com/thread/118883?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 12:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:089624f8-b142-4e0e-a0c8-b1c11087e1c2</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Are you planning to blug the A side of the cable into a computer and connect the pins on the C side directly to the nRF52 with nothing in between?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>