<?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>TWI driver reading out of bounds memory. &amp;quot;Can&amp;#39;t compute CFA for this frame.&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16349/twi-driver-reading-out-of-bounds-memory-can-t-compute-cfa-for-this-frame</link><description>On a custom board using the nRF51822, with SDK 11.0.0, SD s130 and gcc, I&amp;#39;m seeing the following stack trace when doing some TWI operations to program an accelerometer: 
 (gdb) bt full
#0 0x0002d29e in nrf_twi_event_clear (p_twi=&amp;lt;error reading variable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 17 Sep 2016 11:51:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16349/twi-driver-reading-out-of-bounds-memory-can-t-compute-cfa-for-this-frame" /><item><title>RE: TWI driver reading out of bounds memory. "Can't compute CFA for this frame."</title><link>https://devzone.nordicsemi.com/thread/62507?ContentTypeID=1</link><pubDate>Sat, 17 Sep 2016 11:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bb0905b-76bc-4757-bfae-e12fcb49c250</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;@Einar Thorsrud I can&amp;#39;t reproduce this sorry, it&amp;#39;s happened only once so far. But yes, I do use -g3 in my CFLAGS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI driver reading out of bounds memory. "Can't compute CFA for this frame."</title><link>https://devzone.nordicsemi.com/thread/62506?ContentTypeID=1</link><pubDate>Sat, 17 Sep 2016 11:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d6c22a6-1fc0-49f1-bb40-01574ef1b32c</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;@RK OK, I&amp;#39;m confused about StackTop vs. StackLimit, then. I was looking at __StackLimit (0x20007800). Which is __StackTop less the size of .stack_dummy. Why do I have a stack dummy and what is it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI driver reading out of bounds memory. "Can't compute CFA for this frame."</title><link>https://devzone.nordicsemi.com/thread/62505?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 13:20:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13b0d11a-c213-49c6-a663-6615707798b8</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;in what way is 0x20007dda out of bounds? Your stack top is 0x20008000 and it&amp;#39;s of size 0x800 so it runs from 0x20007800 to 0x20008000 which makes 0x20007dda just 1/3 the way down from the top of the stack. Looking in the standard gcc_startup_nrf51.S it shows the first entry in the vector table is __StackTop, so that&amp;#39;s the start of your stack.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI driver reading out of bounds memory. "Can't compute CFA for this frame."</title><link>https://devzone.nordicsemi.com/thread/62504?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 12:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94e14653-20c6-4086-8f4d-fca409154822</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Do you see the same out of bounds address if you check &lt;code&gt;p_twi&lt;/code&gt; in the beginning of &lt;code&gt;twi_transfer()&lt;/code&gt; in nrf_drv_twi.c? Also, regarding the &amp;quot;Can&amp;#39;t compute CFA for this frame.&amp;quot;: Have you compiling with &lt;code&gt;-g3&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>