<?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>regarding spi communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73304/regarding-spi-communication</link><description>hello, 
 i am using nrf52840 in our customised board and trying to interface it with GDEW0213Z16 2.13 inch display which uses spi communication i have added the necessary api&amp;quot;s and changed the pin configuration according to my board but while running</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Mar 2021 13:40:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73304/regarding-spi-communication" /><item><title>RE: regarding spi communication</title><link>https://devzone.nordicsemi.com/thread/302391?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 13:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ace99daf-d1e1-40cb-941c-a63ec5b75ea0</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;clearly it hasn&amp;#39;t worked - because the ASSERT tells you that it is &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt; &lt;/em&gt;initialised.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding spi communication</title><link>https://devzone.nordicsemi.com/thread/302387?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 13:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb9a94ca-f031-407c-8e33-9cf3b2d8a703</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;ya that function call is epd init() in my case and i have intialised it in my main&lt;/p&gt;
&lt;p&gt;thanks and regards&amp;nbsp;&lt;/p&gt;
&lt;p&gt;manikandan v&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding spi communication</title><link>https://devzone.nordicsemi.com/thread/302382?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 13:27:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a49c4bae-1340-49fa-9ae4-26683d9ade34</guid><dc:creator>awneil</dc:creator><description>[quote userid="94222" url="~/f/nordic-q-a/73304/regarding-spi-communication/302357#302357"]what should i enable for spi communication??[/quote]
&lt;p&gt;Those are just compile-time definitions to include SPI support in your code.&lt;/p&gt;
&lt;p&gt;You need to actually initialise the SPI hardware at run time.&lt;/p&gt;
&lt;p&gt;Take a look at the SDK documentation &amp;amp; examples - there will be a function call to initialise the SPI hardware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding spi communication</title><link>https://devzone.nordicsemi.com/thread/302357?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 12:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:004923a8-d2cf-4fa6-838d-dcdbc10d14cb</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;thanks for your reply&lt;/p&gt;
&lt;p&gt;[00:00:00.000,000] &amp;lt;error&amp;gt; app: ASSERTION FAILED at C:\folder\nRF5_SDK_15.0.0_a53641a\modules\nrfx\drivers\src\nrfx_spim.c:548&lt;/p&gt;
&lt;p&gt;this is the error i am getting while debugging&lt;/p&gt;
&lt;p&gt;in sdk for spi i have enabled the following things&lt;/p&gt;
&lt;p&gt;NRFX_SPI_ENABLED 1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;NRFX_SPI0_ENABLED 1&lt;/p&gt;
&lt;p&gt;SPI_ENABLED 1&lt;/p&gt;
&lt;p&gt;NRFX_SPIM_ENABLED 1&lt;/p&gt;
&lt;p&gt;NRFX_SPIM0_ENABLED 1&lt;/p&gt;
&lt;p&gt;SPI0_ENABLED 1&lt;/p&gt;
&lt;p&gt;other than this what should i enable for spi communication??can you help me with this&lt;/p&gt;
&lt;p&gt;thanks and regards&lt;/p&gt;
&lt;p&gt;manikandan v&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding spi communication</title><link>https://devzone.nordicsemi.com/thread/302309?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 08:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fef3709-f5e8-428a-9f89-84f899cf0116</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The use of ASSERT is a standard programming practice - nothing specific to nRF52 or Nordic:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.google.com/search?q=assert+c+programming" rel="noopener noreferrer" target="_blank"&gt;https://www.google.com/search?q=assert+c+programming&lt;/a&gt;&lt;/p&gt;
[quote userid="94222" url="~/f/nordic-q-a/73304/regarding-spi-communication/302288#302288"]first assert itself it is failing[/quote]
&lt;p&gt;So this:&lt;/p&gt;
[quote userid="94222" url="~/f/nordic-q-a/73304/regarding-spi-communication"]NRFX_ASSERT(p_cb-&amp;gt;state != NRFX_DRV_STATE_UNINITIALIZED);&lt;br /&gt;[/quote]
&lt;p&gt;This ASSERT will fail wen the state &lt;em&gt;&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;is&lt;/span&gt;&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;&lt;span&gt;NRFX_DRV_STATE_UNINITIALIZED&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So you haven&amp;#39;t initialised the SPI.&lt;/p&gt;
&lt;p&gt;You need to initialise the SPI before you use it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding spi communication</title><link>https://devzone.nordicsemi.com/thread/302288?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 07:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:325d164d-8c24-44da-b470-521e181f04b7</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;in first assert itself it is failing and i cant find the reason can you do any help regarding this?&lt;/p&gt;
&lt;p&gt;thanks and regards&lt;/p&gt;
&lt;p&gt;manikandan v&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding spi communication</title><link>https://devzone.nordicsemi.com/thread/302287?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 07:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48267f35-294d-4565-9e89-c2d381d9f5de</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;As an addition to what @awneil already has suggested;&lt;br /&gt;Do you have logging enabled from your device?&lt;br /&gt;If so, please add DEBUG to your preprocessor defines, so that you may see a more detailed error message upon hitting the breakpoint error.&lt;br /&gt;It should look like in the included image:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7888.enabling_5F00_debug_5F00_SES.PNG" /&gt;&lt;br /&gt;&lt;br /&gt;The asserts you&amp;#39;ve added in your ticket all just check that the SPI peripheral is initialized, and that the data the function is being called with is valid. So, if you&amp;#39;re triggering these asserts you either have not initialized the SPI peripheral successfully, or you are trying to call the function with invalid parameters.&lt;br /&gt;&lt;br /&gt;In any case we should know more about what is happening either when you define DEBUG and see your logger output, or use the debugger to step through your code like suggested by Awneil.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding spi communication</title><link>https://devzone.nordicsemi.com/thread/302241?ContentTypeID=1</link><pubDate>Sat, 27 Mar 2021 10:33:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ad9e91c-3994-4a3b-a0f8-d2e1750a1066</guid><dc:creator>awneil</dc:creator><description>[quote userid="94222" url="~/f/nordic-q-a/73304/regarding-spi-communication"]i am nrfbreak point error in this section[/quote]
&lt;p&gt;So where, exactly, is that happening?&lt;/p&gt;
&lt;p&gt;Presumably, one of those ASSERTs?&lt;/p&gt;
&lt;p&gt;So step through it in the debugger to see which one is failing, and why.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8231._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>