<?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>* buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80116/buffer-overflow-detected-on-zephyre-icm20948</link><description>I am using nrf5340 and icm20948 for our development. i had initialized things as shown in code attached. 
 this work fine for me. but when i am uncommenting rc |= inv_icm20948_enable_sensor(&amp;amp;icm_device, idd_sensortype_conversion(INV_SENSOR_TYPE_MAGNETOMETER</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Oct 2021 06:46:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80116/buffer-overflow-detected-on-zephyre-icm20948" /><item><title>RE: * buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/thread/332051?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 06:46:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e79a59c-3e58-4421-9f81-9829a7f7f06b</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;If it was set to 0, that is probably not the issue, no. But can you try 32768, just to completely rule it out?&lt;/p&gt;
&lt;p&gt;Do you get the twim error if you do not comment in the magnetometer, but enable log?&lt;/p&gt;
&lt;p&gt;Can you use a debugger to find out exactly which function causes the twim error and the buffer overflow?&lt;/p&gt;
&lt;p&gt;I assume the image size is not something you can change, but if it is, can you try reducing it significantly?&lt;/p&gt;
&lt;p&gt;If none of that works, can you show me the code for the sensor_setup and enable_sensor functions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: * buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/thread/332014?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 18:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2de429b7-5438-4c81-85a8-cbbe8b936917</guid><dc:creator>maxxware</dc:creator><description>&lt;p&gt;It was 0 i set it to 1024 but still same issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: * buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/thread/331944?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 13:16:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f563ad98-5fee-4579-99d8-8fe83a04299a</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Can you try increasing&amp;nbsp;CONFIG_HEAP_MEM_POOL_SIZE?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: * buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/thread/331916?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 12:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa8576cd-c110-4466-a5ec-3ec34f39b6f8</guid><dc:creator>maxxware</dc:creator><description>&lt;p&gt;We have custom board&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: * buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/thread/331906?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 11:40:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:174e7d88-a1b2-4f13-90e4-f038c7185068</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;If you are using our DK or our board files,&amp;nbsp;can you try using different pins for i2c2? Not pin 32 or 33.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: * buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/thread/331884?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 10:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9162dfe-6711-43a6-9a03-4c383b7a6127</guid><dc:creator>maxxware</dc:creator><description>&lt;p&gt;1.5.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: * buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/thread/331883?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 10:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad2f28de-add8-435f-ae88-f465de3ca987</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Which NCS version are you on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: * buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/thread/331870?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 09:31:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:751fee86-d9b8-4352-97f3-dce8858048c8</guid><dc:creator>maxxware</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8037.prj.conf"&gt;devzone.nordicsemi.com/.../8037.prj.conf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3323.nrf5340dk_5F00_nrf5340_5F00_cpuapp.overlay"&gt;devzone.nordicsemi.com/.../3323.nrf5340dk_5F00_nrf5340_5F00_cpuapp.overlay&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: * buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/thread/331829?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 06:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1abd007-4f1f-4e81-af85-d446847c341b</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;You are getting an &amp;quot;address not acknowledged&amp;quot; error from nrfx_twim.&lt;/p&gt;
&lt;p&gt;Can I see the overlay and prj.conf files?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: * buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/thread/331779?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 16:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9ce7a23-b2af-4990-ab59-f8717de77106</guid><dc:creator>maxxware</dc:creator><description>&lt;p&gt;whoami = ea &lt;br /&gt;dmp image size = 14304&lt;br /&gt;compass detected&lt;br /&gt;RAW gyro data 2 -5 16&lt;br /&gt;* buffer overflow detected *&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;when i enable log&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[00:00:02.279,266] [1;31m&amp;lt;err&amp;gt; i2c_nrfx_twim: Error 195952641 occurred for message 0[0m&lt;br /&gt;[00:00:02.279,449] [1;31m&amp;lt;err&amp;gt; i2c_nrfx_twim: Error 195952641 occurred for message 0[0m&lt;br /&gt;Scanning done&lt;br /&gt;whoami = ea &lt;br /&gt;dmp image size = 14304&lt;br /&gt;* buffer overflow detected *&lt;br /&gt;compass detected&lt;br /&gt;RAW gyro data -1 -13 22&lt;br /&gt;[00:00:07.068,511] [1;31m&amp;lt;err&amp;gt; os: r0/a1: 0x00000003 r1/a2: 0xe000ed00 r2/a3: 0x00000001[0m&lt;br /&gt;[00:00:07.068,511] [1;31m&amp;lt;err&amp;gt; os: r3/a4: 0x20000ebe r12/ip: 0x0000000a r14/lr: 0x00014a85[0m&lt;br /&gt;[00:00:07.068,542] [1;31m&amp;lt;err&amp;gt; os: xpsr: 0x69000000[0m&lt;br /&gt;[00:00:07.068,542] [1;31m&amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x000082b8[0m&lt;br /&gt;[00:00:07.068,542] [1;31m&amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0[0m&lt;br /&gt;[00:00:07.068,542] [1;31m&amp;lt;err&amp;gt; os: Current thread: 0x20000950 (unknown)[0m&lt;br /&gt;[00:00:07.278,228] [1;31m&amp;lt;err&amp;gt; os: Halting system[0m&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: * buffer overflow detected * . on zephyre icm20948</title><link>https://devzone.nordicsemi.com/thread/331725?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 12:57:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7740f7b-b489-458b-b66d-3e087f392ddd</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you show me the log when this error occurs? Were there any warnings when you compiled the project?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>