<?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_transceive raise error: Instruction Access Violation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83125/nrf52832-spi_transceive-raise-error-instruction-access-violation</link><description>Hi Nordic, 
 when I run a spi sample, get a error as below: 
 
 the source code: 
 
 prj.conf:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jan 2022 12:18:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83125/nrf52832-spi_transceive-raise-error-instruction-access-violation" /><item><title>RE: nrf52832 spi_transceive raise error: Instruction Access Violation</title><link>https://devzone.nordicsemi.com/thread/345652?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 12:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0ac6e14-371c-4f37-aad8-35c1b323e690</guid><dc:creator>scottwan</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am sorry the issue is raised by line&amp;nbsp;&amp;nbsp;#40, the variable &amp;#39;tx_buffer&amp;#39; is not initiate correctly.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi_transceive raise error: Instruction Access Violation</title><link>https://devzone.nordicsemi.com/thread/345564?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 06:45:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a800e19-7813-48ee-a7ad-d5671bb30f72</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Can you please post your full log?&lt;/p&gt;
&lt;p&gt;Have you enabled SPI_2 in DTS?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi_transceive raise error: Instruction Access Violation</title><link>https://devzone.nordicsemi.com/thread/345558?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 02:55:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0ae8c1f-dd07-427b-997b-d6b72344726e</guid><dc:creator>scottwan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_MAIN_STACK_SIZE=4096 does NOT work. same error as before.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi_transceive raise error: Instruction Access Violation</title><link>https://devzone.nordicsemi.com/thread/345071?ContentTypeID=1</link><pubDate>Mon, 27 Dec 2021 08:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1e885b4-91cd-40e2-8df5-35b1f3213c07</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Based on the MPU fault log, it might indicate that the stack size for the main thread is too low.&lt;/p&gt;
&lt;p&gt;Could you try adjusting this via CONFIG_MAIN_STACK_SIZE=4096 and see if this helps?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>