<?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>SPI data on scope doesn&amp;#39;t match data passed to nrf_spim_tx_buffer_set</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103037/spi-data-on-scope-doesn-t-match-data-passed-to-nrf_spim_tx_buffer_set</link><description>The SPI data on the scope appears to be random and doesn&amp;#39;t match the data passed to nrf_spim_tx_buffer. After a power cycle, the SPI data changes and is never 0xAA. 
 
 const u_int8_t *request_ptr; 
 u_int8_t request_value = 0xAA; 
 request_ptr = &amp;amp;request_value;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Aug 2023 19:41:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103037/spi-data-on-scope-doesn-t-match-data-passed-to-nrf_spim_tx_buffer_set" /><item><title>RE: SPI data on scope doesn't match data passed to nrf_spim_tx_buffer_set</title><link>https://devzone.nordicsemi.com/thread/442640?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 19:41:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bb4e281-6036-40d5-8bc4-9566e8005e51</guid><dc:creator>vang2</dc:creator><description>&lt;p&gt;Issue has been resolved.&amp;nbsp; There were multiple SPI transactions happening in parallel along with this.&amp;nbsp; Plus, had to remove the const request pointer and&amp;nbsp;passed&amp;nbsp;a static request value instead.&amp;nbsp; Constants are stored in flash and the DMA only works with descriptors in RAM.&amp;nbsp; Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI data on scope doesn't match data passed to nrf_spim_tx_buffer_set</title><link>https://devzone.nordicsemi.com/thread/442569?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 12:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5804d89d-5118-43dc-99bb-ac53b629e00c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;If you run the &lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/tree/master/nrfx/samples/src/nrfx_spim/non_blocking"&gt;nrfx spim sample&lt;/a&gt;, what do you see on your scope?&lt;/p&gt;
&lt;p&gt;Do you see the same data that is configured in the project code?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>