<?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>Cannot reveive bytes when using spi transaction manager</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22448/cannot-reveive-bytes-when-using-spi-transaction-manager</link><description>I&amp;#39;m trying sending and receiving data with spi transaction manager library (nrf_spi_mngr). 
 The problem is that I cannot receive bytes from SPI device as end_callback doesn&amp;#39;t work while begin_callback works. 
 There is no problem using SPI driver </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Mar 2018 06:52:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22448/cannot-reveive-bytes-when-using-spi-transaction-manager" /><item><title>RE: Cannot reveive bytes when using spi transaction manager</title><link>https://devzone.nordicsemi.com/thread/124063?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 06:52:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08a02714-e472-45d5-8f15-727b6cf87bb1</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, while(1) is enough.&lt;/p&gt;
&lt;p&gt;Yes I have defined&amp;nbsp;&lt;span&gt;m_nrf_spi_mngr using macro: NRF_SPI_MNGR_DEF.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot reveive bytes when using spi transaction manager</title><link>https://devzone.nordicsemi.com/thread/124059?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 05:06:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f3f2227-a7de-45cb-a412-e71f68ffdb9b</guid><dc:creator>Ree Wang</dc:creator><description>&lt;p&gt;Hi Jakub,&lt;/p&gt;
&lt;p&gt;Did you define m_nrf_spi_mngr?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does it&amp;nbsp;look like below after add while(1)?&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main(void)
{
   APP_ERROR_CHECK(spi1_master_init());
   flash_s25fl_read_info();&lt;br /&gt;   while(1);
}&lt;br /&gt;&lt;br /&gt;Thanks&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot reveive bytes when using spi transaction manager</title><link>https://devzone.nordicsemi.com/thread/88269?ContentTypeID=1</link><pubDate>Wed, 31 May 2017 14:35:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5c8b76f-fdd0-44c2-90ab-cf9675eae985</guid><dc:creator>Takashi</dc:creator><description>&lt;p&gt;Thank you for your quick answer. It works well completely as you answers.
I noticed that it doesn&amp;#39;t work when I use  spi1_master_init() and flash_s25fl_read_info() in different C source file separately.  main function refers to both of the header files. It seems to cause fatal error before passing end_callback. I don&amp;#39;t understand that...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot reveive bytes when using spi transaction manager</title><link>https://devzone.nordicsemi.com/thread/88268?ContentTypeID=1</link><pubDate>Wed, 31 May 2017 06:37:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:407be7db-9064-45fa-bfc9-b0c363c77cef</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,
Do you have possibility to use debugger or maybe to toggle LED during end_callback?
I have compiled your source code with 2 breakpoints: one in begin_callback and one in end_callback. I can say that both callbacks were executed.&lt;/p&gt;
&lt;p&gt;btw. in your source you are missing definition of m_nrf_spi1_mngr.&lt;/p&gt;
&lt;p&gt;update: But at the end I was in hardfault. Let me investigate that.&lt;/p&gt;
&lt;p&gt;update2: Ok everything is fine. Please add while(1); in main loop after your function calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>