<?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>SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45955/swo-signal-inversion-bug</link><description>OK - so I just started with these chips, and have been asked to find out why SWO debug signal is getting corrupted. 
 At fairly random intervals the signal passive state inverts from 0 to 1, which corrupts the next few lines of debug output until the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 May 2019 08:09:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45955/swo-signal-inversion-bug" /><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/184779?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 08:09:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b517f2cb-6635-471d-aba5-47d6b2eabf91</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;After much headscratching - another support site gave me this answer&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;&lt;strong&gt;When (Cortex M-series) target enters true low power mode (in the absence of debug connection) due to a sleep event and there is data in the ITM/TPIU that has not been flushed, then the data stream gets mangled with garbage due to what appears to be clock gating/changes when core transitions to sleep.&lt;/strong&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After I disabled the sd_app_evt_wait() call in our project the SWO is 100% reliable as a uart output.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With the debugger connected, the core does not transition to sleep so SWO functions correctly even with the call to sd_app_event_wait()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As far as I can tell, there are no flags to say when the last character has been flushed from the FIFO, so we cannot hold off the call to sleep until all the characters have been sent.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Moving on...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/184768?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 07:41:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7d510f0-7e27-4be4-970a-e033fa9e9506</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Nick.&lt;/p&gt;
&lt;p&gt;Is it possible to send a project that replicates this?&lt;/p&gt;
&lt;p&gt;Are you sure that the signal is inverted, and that it isn&amp;#39;t the frequency that is off? Have you tried to scope the signal?&lt;/p&gt;
&lt;p&gt;I would still recommend that you try out the UART with only the TX pin, if this is for debugging/logging features only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/184676?ContentTypeID=1</link><pubDate>Wed, 01 May 2019 08:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aca33cd-77a5-41c7-af7c-5ba7b36df369</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;Thanks Bill,&lt;/p&gt;
&lt;p&gt;I had managed to access that - would have been nice if Nordic pointed to it.&amp;nbsp; I have now got a handle on most of how the SWO is supposed to be setup, although there are a couple of registers that are not well explained even in the ARM documentation.&lt;/p&gt;
&lt;p&gt;e.g. DWT control, and &amp;quot;Formatter and Flush Control&amp;quot;&lt;/p&gt;
&lt;p&gt;But no amount of tinkering has yet figured out why this works with the debugger connected (i.e. immediately after programming) but corrupts after power-cycling the target.&amp;nbsp; If we ever get to the bottom of this I&amp;#39;ll put it up on this board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/184541?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 11:50:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0348a0a1-0856-4f59-b40a-5057ac5d0af3</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;More information - there is a possibility that the TPIU gets corrupted when the core goes to low power mode.&lt;/p&gt;
&lt;p&gt;Is there a way to configure the SDK so that sd_app_evt_wait does not go to low-power modes, for debugging purposes?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/184390?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 16:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96afc84b-94f8-4113-97e6-d651fb312d0a</guid><dc:creator>wpaul</dc:creator><description>&lt;p&gt;[quote userid="78841" url="~/f/nordic-q-a/45955/swo-signal-inversion-bug/181253"][/quote]&lt;/p&gt;
&lt;p&gt;but...&lt;/p&gt;
&lt;p&gt;the section on the ITM states this...&amp;quot;&lt;span&gt;Other registers are described in the&amp;nbsp;&lt;/span&gt;&lt;cite&gt;&lt;span&gt;ARM&lt;sup&gt;&amp;reg;&lt;/sup&gt;&lt;/span&gt;v7-M Architectural Reference Manual&lt;/cite&gt;&lt;span&gt;.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And that document is &amp;quot;only available to registered ARM customers&amp;quot;...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just FYI, that manual seems to be available for download here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://static.docs.arm.com/ddi0403/eb/DDI0403E_B_armv7m_arm.pdf"&gt;https://static.docs.arm.com/ddi0403/eb/DDI0403E_B_armv7m_arm.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t know if this helps with your problem though.&lt;/p&gt;
&lt;p&gt;-Bill&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/184348?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 13:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be5f25fa-a14f-455c-a5a6-52f46ec7485e</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;it turns out that this problem only occurs after we power-cycle the product.&amp;nbsp; If we look at the logging immediately after programming and while the debugger is still connected, the problem does not manifest.&lt;/p&gt;
&lt;p&gt;I have found other support cases around the Cortex that seem to have the same issue.&amp;nbsp; The only thing that is different in configuration seems to be that the CoreDebug DHCSR C_DebugEn bit is set by the debugger during programming, but is cleared on a power cycle.&amp;nbsp; Because that bit is only acessible to the DAP, there is no easy way to set and clear it manually, to check what effect it has on the SWO channel.&lt;/p&gt;
&lt;p&gt;Hopefully this information will help you to dig a little deeper into the problem?&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/182982?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 06:38:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b5f30b7-32f6-493e-9bca-e35744f5ab94</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am sorry for the late reply. We have had public holiday in Nordic from Thursday until yesterday.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I believe I understand. But you do not have a programming chip on the device, right? Do you use a debugger to monitor this SWO pin? You can set the UART pin to whatever pin you like, so I don&amp;#39;t really see this limitation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you have a project file that I can run on a DK that can replicate this issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/182562?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 10:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b48b8a8f-803d-4417-9210-4240e9d67309</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for the information about how to use the UART.&lt;/p&gt;
&lt;p&gt;Unfortunately that is not what we are trying to fix...on our hardware, the SWO pin is available on a connector, the UART pin is not.&lt;/p&gt;
&lt;p&gt;To recap,&lt;/p&gt;
&lt;p&gt;We have an implementation that uses the SWO in NRZ node (0xE00400F0 = 2)&lt;/p&gt;
&lt;p&gt;with a pre-scalar (0xE0040010 = 556) which generates a baud rate of 57600 (0.01% error) from the 32MHz TPIU sysclock.&lt;/p&gt;
&lt;p&gt;This works, we can connect a terminal to the SWO pin and &amp;quot;see&amp;quot; the internal log messages.&amp;nbsp; But it is unreliable - every so often the data is corrupted because the SWO inverts its passive state.&lt;/p&gt;
&lt;p&gt;What I am trying to discover is why the SWO does not behave reliably in this configuration.&lt;/p&gt;
&lt;p&gt;I hope that is clear now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/182294?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 08:38:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64ce611a-541b-4343-9f69-40fd996b4b55</guid><dc:creator>Edvin</dc:creator><description>[quote user="NickT"]I don&amp;#39;t believe RTT is available without Segger...but I may be wrong[/quote]
&lt;p&gt;&amp;nbsp;That is correct. It doesn&amp;#39;t look like it supports 57600Hz, if you look in the nrf52_bitfields.h on line 1228-1233.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="NickT"]The previous engineer added the SWO_init code to the product to get a &amp;quot;uart&amp;quot; data stream available for application monitoring, even when there is no debugger connected.[/quote]
&lt;p&gt;&amp;nbsp;This should still be possible. You can use the UART to output data even if you only have 1 pin. You can use this as TX and not initialize the RX pin.&lt;/p&gt;
&lt;p&gt;If you look at the ble_app_uart example from the SDK, in the uart_init() function, try to comment out the pins that aren&amp;#39;t used:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void uart_init(void)
{
    uint32_t                     err_code;
    app_uart_comm_params_t const comm_params =
    {
        //.rx_pin_no    = RX_PIN_NUMBER,
        .tx_pin_no    = TX_PIN_NUMBER,
        //.rts_pin_no   = RTS_PIN_NUMBER,
        //.cts_pin_no   = CTS_PIN_NUMBER,
        .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
        .use_parity   = false,
#if defined (UART_PRESENT)
        .baud_rate    = NRF_UART_BAUDRATE_115200
#else
        .baud_rate    = NRF_UARTE_BAUDRATE_115200
#endif
    };

    APP_UART_FIFO_INIT(&amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                       APP_IRQ_PRIORITY_LOWEST,
                       err_code);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I tested this and it throws a framing error in the UART event handler. Remember to comment out this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case APP_UART_COMMUNICATION_ERROR:
            //APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It is just tellling you that you have a framing error on the RX, which is not initialized, so that shouldn&amp;#39;t be a concern.&lt;/p&gt;
&lt;p&gt;Using the UART, you can also set the baudrate you desire:&lt;/p&gt;
&lt;p&gt;.baud_rate&amp;nbsp; &amp;nbsp; = NRF_UART_BAUDRATE_57600&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/181807?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 09:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1178ec0-d7be-4fd6-bdb7-961fb3004abe</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;Edvin,&lt;/p&gt;
&lt;p&gt;The previous engineer added the SWO_init code to the product to get a &amp;quot;uart&amp;quot; data stream available for application monitoring, even when there is no debugger connected.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t believe RTT is available without Segger...but I may be wrong&lt;/p&gt;
&lt;p&gt;Rick&amp;#39;s code seems to assume that SWO can be run at 4MHz, not 57600, but that might be a simple matter of setting the pre-scalar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/181690?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 15:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b94f14b-2e44-4148-9e92-3d3d07fd381f</guid><dc:creator>Edvin</dc:creator><description>[quote user="NickT"]it is used for runtime logging[/quote]
&lt;p&gt;&amp;nbsp;In the finished application, or for debugging? Have you considered using the RTT backend for the logger?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you try Rick Chung&amp;#39;s implementation (step 1-4) in the post that you linked to? Does that behave the same way as your implementation? (flipping the signal?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/181262?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 08:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3745cc7-a40e-4f8e-aa9a-ec472cc3c12e</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Yes - the project uses pin 18 as SWO.&amp;nbsp; it is used for runtime logging, and there is no room on board for a uart connection.&lt;/p&gt;
&lt;p&gt;Also, I found a CMSIS function ITM_Sendchar in core_cm4.h that does 8-bit writes to ITM-&amp;gt;PORT[].u8 , so I am less worried about that now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/181253?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 08:36:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0611c3de-cc70-4539-a533-07f8e2b7be19</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I am finding some of the information for the ITM in the ARM infocenter.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.arm.com/help/index.jsp"&gt;http://infocenter.arm.com/help/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but...&lt;/p&gt;
&lt;p&gt;the section on the ITM states this...&amp;quot;&lt;span&gt;Other registers are described in the&amp;nbsp;&lt;/span&gt;&lt;cite&gt;&lt;span&gt;ARM&lt;sup&gt;&amp;reg;&lt;/sup&gt;&lt;/span&gt;v7-M Architectural Reference Manual&lt;/cite&gt;&lt;span&gt;.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And that document is &amp;quot;only available to registered ARM customers&amp;quot;...&lt;/p&gt;
&lt;p&gt;Which perhaps explains why I cannot find out what the code is supposed to do. :roll:&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/181229?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 07:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d95adb97-bd5c-4e95-b1c6-79cb48e9fed4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Oh. Sorry. I didn&amp;#39;t test the link. From the link address, it looks like it is here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fclock.html&amp;amp;cp=2_1_0_18_2_9&amp;amp;anchor=register.TRACECONFIG"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fclock.html&amp;amp;cp=2_1_0_18_2_9&amp;amp;anchor=register.TRACECONFIG&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have not tested, but it looks like the SWO pin, if you use serial, and not parallel, is P0.18. Is that the one you are using?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpin.html&amp;amp;cp=2_1_0_3&amp;amp;anchor=pin_assign"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpin.html&amp;amp;cp=2_1_0_3&amp;amp;anchor=pin_assign&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are you sure SWO is what you really are looking at using? It is typically a debugging tool (If you have a debugger that is connected to that pin).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe what you really want to is to enable logging? UART?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/181098?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 13:56:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab9b218e-f4ec-4a27-913c-b586dcba1491</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for the prompt response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am picking up on a GCC project which is in pre-production, so don&amp;#39;t want to muck about with the code until I am sure. Not sure if this debugging software came from an appnote/example, or if it was invented locally.&lt;/p&gt;
&lt;p&gt;The link from that previous thread&amp;nbsp;throws a 404 error&amp;nbsp;&lt;a title="404" href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.0%2Fclock.html&amp;amp;anchor=register.TRACECONFIG" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;&amp;nbsp;.&amp;nbsp; If&amp;nbsp;the documentation exists, can you give me a pointer to the reference manual with register definitions for ITM please?&lt;/p&gt;
&lt;p&gt;The bit flip appears on the pin of the Laird BL652 SA01, I don&amp;#39;t think that has segger OB.&lt;/p&gt;
&lt;p&gt;Also, I noticed that the implementation uses&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;ITM&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;PORT&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;0U&lt;/span&gt;&lt;span&gt;].&lt;/span&gt;&lt;span&gt;u8&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;currentChar&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;And it occurred to me that ITM writes might be 32 bit only, (there is a hint of that in the&amp;nbsp;Arm Docs [CoreSight Components Technical Reference Manual 12.2.2] so maybe the uart mode leaves a bit dangling in the upper byte of the lower word?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;If you can confirm if it is safe to use 8-bit writes to ITM-&amp;gt;port it would at least eliminate one possible cause of error.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWO signal inversion bug</title><link>https://devzone.nordicsemi.com/thread/181061?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 12:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72a95321-8ebd-4876-81f0-55759f6fd947</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes, we had some problems with the Doclib&amp;#39;s nRF52832 section. But all HW related information on infocenter is still the same, so that part isn&amp;#39;t really outdated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tested your implementation, but I did try the one you linked to (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27855/using-swo-with-nrf52-redux/109762#109762" rel="noopener noreferrer" target="_blank"&gt;this one&lt;/a&gt;) a couple of times earlier, and that worked. Do you get the same error with that implementation?&lt;/p&gt;
&lt;p&gt;Where do you measure that the bit is flipping? Do you measure the pin from the nRF, or from the On Board (OB) Segger chip?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>