<?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>nRF52832 (SPI master function) only detects accelerometer KX224 (SPI slave) when JTAG debugger is connected; but SPI bus oscillogram is perfect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34384/nrf52832-spi-master-function-only-detects-accelerometer-kx224-spi-slave-when-jtag-debugger-is-connected-but-spi-bus-oscillogram-is-perfect</link><description>Hello together, 
 I have a strange problem and don&amp;#39;t know how to proceed... 
 At my customer-specific electronic a Kionix KX224 is placed next to the BLE module which contains the nRF52832. When I connect my jTracePro Debugger everything works fine. But</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 May 2018 10:19:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34384/nrf52832-spi-master-function-only-detects-accelerometer-kx224-spi-slave-when-jtag-debugger-is-connected-but-spi-bus-oscillogram-is-perfect" /><item><title>RE: nRF52832 (SPI master function) only detects accelerometer KX224 (SPI slave) when JTAG debugger is connected; but SPI bus oscillogram is perfect</title><link>https://devzone.nordicsemi.com/thread/132709?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 10:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:817a36f0-2999-43c5-9cc7-9544126aaa96</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Not really,&amp;nbsp;what happens if you&amp;nbsp;physically disconnect the Kionix and wrap MOSI-&amp;gt;MISO instead. That should basically loop-back all data.&lt;/p&gt;
&lt;p&gt;Having a debugger connected may affect timing and prevent low power modes, you may achieve the same by removing sleep and add some delays after power up for most part. I can&amp;#39;t see any obvious problems here, other than try and fail some until you find the problematic behavior.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 (SPI master function) only detects accelerometer KX224 (SPI slave) when JTAG debugger is connected; but SPI bus oscillogram is perfect</title><link>https://devzone.nordicsemi.com/thread/132465?ContentTypeID=1</link><pubDate>Fri, 18 May 2018 08:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1268adad-4cdd-45db-bec1-440a2253fff2</guid><dc:creator>matthk</dc:creator><description>&lt;p&gt;No more ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 (SPI master function) only detects accelerometer KX224 (SPI slave) when JTAG debugger is connected; but SPI bus oscillogram is perfect</title><link>https://devzone.nordicsemi.com/thread/132412?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 12:48:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2518c99a-b337-46b8-826f-2748909814d0</guid><dc:creator>matthk</dc:creator><description>&lt;p&gt;Ups - I forgot the EasyDMA which is enabled for TWI1 and SPI0 in my project...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 (SPI master function) only detects accelerometer KX224 (SPI slave) when JTAG debugger is connected; but SPI bus oscillogram is perfect</title><link>https://devzone.nordicsemi.com/thread/132408?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 12:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fec7a2e-f974-41a0-84e1-ecb644ff01c4</guid><dc:creator>matthk</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;as I have not already activated DMA and furthermore I use SDK13.0.0 I suppose that this is not the problem; should I anyway add:&lt;/p&gt;
&lt;p&gt;CFLAGS += -DNRF52_PAN_109 and&lt;/p&gt;
&lt;p&gt;ASMFLAGS += -DNRF52_PAN_109&lt;/p&gt;
&lt;p&gt;to my makefile?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have tested now 3 electronics; all show the same behavior.&lt;/p&gt;
&lt;p&gt;I have additionally tested the behavior if I start with connected JTAG debugger; then let run and disconnect&amp;nbsp; while running - this works! So it seems that a starting condition is different when a JTAG debugger is connected.&lt;/p&gt;
&lt;p&gt;Do you have another idea why the nRF52832 doesn&amp;#39;t want to read-in the data at MISO pin?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Matthias&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 (SPI master function) only detects accelerometer KX224 (SPI slave) when JTAG debugger is connected; but SPI bus oscillogram is perfect</title><link>https://devzone.nordicsemi.com/thread/132384?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 06:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13206a17-93b5-4b9f-94e7-8915e1bc8507</guid><dc:creator>matthk</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;thanks - I will check that. But please note that it&amp;#39;s not the KX224 - this one works perfect and the oscillogram shows a perfect response - it&amp;#39;s the nRF52832 which doesn&amp;#39;t want to read the data transmitted by SPI (at MISO) when the debugger is connected. But the /CS, CLK and MOSI are generated perfectly from the nRF...&lt;/p&gt;
&lt;p&gt;I will also double-check with another electronics of the same type to be sure that it&amp;#39;s not just a partly damaged nRF...&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Matthias&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 (SPI master function) only detects accelerometer KX224 (SPI slave) when JTAG debugger is connected; but SPI bus oscillogram is perfect</title><link>https://devzone.nordicsemi.com/thread/132344?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 18:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1a9d6fb-425d-4bad-adec-dcfb866ab96d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suggest you add UART to output debug information to try to find what is stopping the Kionix KX224 to work as intended.&lt;/p&gt;
&lt;p&gt;You may also want to check out these two Errata which may have an impact here:&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev1.errata/anomaly_832_108.html?cp=2_1_1_1_1_33"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev1.errata/anomaly_832_108.html?cp=2_1_1_1_1_33&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev1.errata/anomaly_832_109.html?cp=2_1_1_1_1_34"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev1.errata/anomaly_832_109.html?cp=2_1_1_1_1_34&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>