<?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>Unexpected system reset(may caused with spi and twi conflict)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5962/unexpected-system-reset-may-caused-with-spi-and-twi-conflict</link><description>Hi, Guys, 
 I have occured a wired thing. I use NRF51822 with softdevice S130 to do a BLE project. I use both spi and twi to get information from sensor(I use spi0 and twi1, I know that the spi0 and twi0 share the same base address). However, after power</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Jan 2016 23:29:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5962/unexpected-system-reset-may-caused-with-spi-and-twi-conflict" /><item><title>RE: Unexpected system reset(may caused with spi and twi conflict)</title><link>https://devzone.nordicsemi.com/thread/20782?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 23:29:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:532ec81e-a748-4de9-b991-ae12656a3939</guid><dc:creator>cnchen</dc:creator><description>&lt;p&gt;Hi nimalhuang,
This is also a very good suggestion and I do see sometimes the lack of memory space would cause such unwanted system reset.
Though its not my case, still appreciate for the quick reply!
Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexpected system reset(may caused with spi and twi conflict)</title><link>https://devzone.nordicsemi.com/thread/20785?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 23:27:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08f2dfc7-8e3e-4977-8ba5-8884615e3a8f</guid><dc:creator>cnchen</dc:creator><description>&lt;p&gt;Hi Wojtek,
Thanks for the reply!
I instrumented debugging tool to my program to investigate the code and realized that actually I forgot to properly initialize SPI master module.
After correct initialization, both SPI and TWI are running perfectly now!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexpected system reset(may caused with spi and twi conflict)</title><link>https://devzone.nordicsemi.com/thread/20781?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 10:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f83ae1c-7335-4aac-8c5f-d69fd0a35b7c</guid><dc:creator>nimalhuang</dc:creator><description>&lt;p&gt;Hi, cnchen,&lt;/p&gt;
&lt;p&gt;I figured out the issue. The reset issue is not caused by TWI0 and SPI1 incompatible. But due to flash storage shortage. The code size of our system is a little big. So it reach the boundary of the total 256kb flash memory. After optimize the code and decrease the code size the system works fine. I know this is really a specific case for me. I am not sure if you have the same root cause. But might be a way of solution. Just for your information. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexpected system reset(may caused with spi and twi conflict)</title><link>https://devzone.nordicsemi.com/thread/20784?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 10:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7be15c62-06f9-4fff-af1b-0068105b2c30</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;could you set breakpoint in hardfault (or in your error handler that causes reset) and check call stack? you will see which function causes this problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexpected system reset(may caused with spi and twi conflict)</title><link>https://devzone.nordicsemi.com/thread/20783?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 10:31:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aae11e3-3db3-4c62-a090-bc72f3115cad</guid><dc:creator>cnchen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m encountering exactly the same issue where TWI0 and SPI1 seem to be incompatible with each other.&lt;/p&gt;
&lt;p&gt;The attempt of using both hardware modules above always triggers an unexpected system reset.&lt;/p&gt;
&lt;p&gt;Did you figure out the root cause or the workaround yet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexpected system reset(may caused with spi and twi conflict)</title><link>https://devzone.nordicsemi.com/thread/20780?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2015 03:12:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a45eecae-492e-47ee-b25e-5c63b9946e12</guid><dc:creator>nimalhuang</dc:creator><description>&lt;p&gt;yeah, I know, but when I disable one of these, that&amp;#39;s worked, really wired? Do you have some suggestion?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexpected system reset(may caused with spi and twi conflict)</title><link>https://devzone.nordicsemi.com/thread/20779?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2015 02:52:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb13ed87-3062-43b4-8ff2-2fbaf03b02bc</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;SPI0 and TWI1 can most definitely co-exist. I use that combination. Whatever your problem is, that&amp;#39;s not it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>