<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ECSPI demo stop working in MCUXpresso Software Development Kit in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-demo-stop-working-in-MCUXpresso-Software-Development-Kit/m-p/1077188#M158124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using M4 core's ESCPI in i.max8mq and I want to start with the follow example code:&lt;/P&gt;&lt;P&gt;boards\evkmimx8mq\rtos_examples\freertos_ecspi\ecspi_loopback&lt;/P&gt;&lt;P&gt;boards\evkmimx8mq\driver_examples\ecspi\ecspi_loopback&lt;/P&gt;&lt;P&gt;Both of the 2 demos just run a&amp;nbsp;&lt;SPAN&gt;single&amp;nbsp;&lt;/SPAN&gt;test on SPI then hung up CPU, just send 64 bytes and get the data back from internal&amp;nbsp; loop. But the application scenario is to run SPI periodically. So I add a while(1) loop in the demo code, just like the following code segment. &lt;STRONG&gt;But the weird thing is the code stoped after several senonds. &lt;/STRONG&gt;If I add the init function before transfer function the code can run all the time. Both the demo for RTOS and non-ROTS has the same issue.&amp;nbsp; Does it nessary to&amp;nbsp;initialise SPI before every signle transfer?&lt;/P&gt;&lt;PRE class="" style="color: #333333 !important; background-color: #ffffff !important; border-top: none; border-bottom: none; border-left: 1px solid #dce0e6; border-right: none; padding: 10px;"&gt;&lt;CODE style="color: inherit; background-color: transparent;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN class="" style="color: #445588; font-weight: bold;"&gt;void&lt;/SPAN&gt; &lt;SPAN class="" style="color: #990000; font-weight: bold;"&gt;ecspi_task&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #445588; font-weight: bold;"&gt;void&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;*&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;pvParameters&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;{
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #445588; font-weight: bold;"&gt;uint8_t&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #333333;"&gt;status_t&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;status&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #333333;"&gt;ecspi_rtos_handle_t&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;master_rtos_handle&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_MasterGetDefaultConfig&lt;/SPAN&gt;(&lt;SPAN class="" style="font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;masterConfig&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #333333;"&gt;masterConfig&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;baudRate_Bps&lt;/SPAN&gt;   &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_TRANSFER_BAUDRATE&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #333333;"&gt;masterConfig&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;enableLoopback&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0086b3;"&gt;false&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="font-weight: bold;"&gt;for&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #009999;"&gt;0&lt;/SPAN&gt;; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_TRANSFER_SIZE&lt;/SPAN&gt;; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;++&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;    {&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
       &lt;SPAN class="" style="color: #333333;"&gt;masterTxData&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;] &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    }&lt;/SPAN&gt;&lt;SPAN class=""&gt;    
&lt;SPAN class="" style="font-weight: bold;"&gt;while&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #009999;"&gt;1&lt;/SPAN&gt;){&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;    &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;    
&lt;SPAN class="" style="font-weight: bold;"&gt;if&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;status&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;kStatus_Success&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;        {&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
           &lt;SPAN class="" style="color: #333333;"&gt;PRINTF&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #dd1144;"&gt;"ECSPI meets error during initialization. &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;\r\n&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;            &lt;SPAN class="" style="color: #333333;"&gt;vTaskSuspend&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #0086b3;"&gt;NULL&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;       }
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #333333;"&gt;masterXfer&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;txData&lt;/SPAN&gt;   &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;masterTxData&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #333333;"&gt;masterXfer&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;rxData&lt;/SPAN&gt;   &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;masterRxData&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #333333;"&gt;masterXfer&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;dataSize&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_TRANSFER_SIZE&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #333333;"&gt;masterXfer&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;channel&lt;/SPAN&gt;  &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_MASTER_TRANSFER_CHANNEL&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #999988;"&gt;/*Start master transfer*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
       &lt;SPAN class="" style="color: #333333;"&gt;status&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_RTOS_Transfer&lt;/SPAN&gt;(&lt;SPAN class="" style="font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;master_rtos_handle&lt;/SPAN&gt;, &lt;SPAN class="" style="font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;masterXfer&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="font-weight: bold;"&gt;if&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;status&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;kStatus_Success&lt;/SPAN&gt;)
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        {&lt;/SPAN&gt;&lt;SPAN class=""&gt;            
&lt;SPAN class="" style="color: #333333;"&gt;PRINTF&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #dd1144;"&gt;"ECSPI transfer completed with error. &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;\r\n\r\n&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;            &lt;SPAN class="" style="color: #333333;"&gt;vTaskSuspend&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #0086b3;"&gt;NULL&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
       }&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #999988;"&gt;/* Compare Tx and Rx data. */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
       &lt;SPAN class="" style="font-weight: bold;"&gt;for&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #009999;"&gt;0&lt;/SPAN&gt;; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_TRANSFER_SIZE&lt;/SPAN&gt;; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;++&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
       {&lt;/SPAN&gt;&lt;SPAN class=""&gt;            &lt;SPAN class="" style="font-weight: bold;"&gt;if&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;masterTxData&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;] &lt;SPAN class="" style="font-weight: bold;"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;masterRxData&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;])&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
           {&lt;/SPAN&gt;&lt;SPAN class=""&gt;                &lt;SPAN class="" style="font-weight: bold;"&gt;break&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;           
 }&lt;/SPAN&gt;&lt;SPAN class=""&gt;        
}&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;        
&lt;SPAN class="" style="font-weight: bold;"&gt;if&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;ECSPI_TRANSFER_SIZE&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;==&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;  
      {&lt;/SPAN&gt;&lt;SPAN class=""&gt;            
&lt;SPAN class="" style="color: #333333;"&gt;PRINTF&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #dd1144;"&gt;"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;\r\n&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;FreeRTOS ECSPI loopback test pass!"&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN class=""&gt;    
    }&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="font-weight: bold;"&gt;else&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;    
    {&lt;/SPAN&gt;&lt;SPAN class=""&gt;            &lt;SPAN class="" style="color: #333333;"&gt;PRINTF&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #dd1144;"&gt;"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;\r\n&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;FreeRTOS ECSPI loopback test fail!"&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN class=""&gt;     
   }&lt;/SPAN&gt;&lt;SPAN class=""&gt;    }&lt;/SPAN&gt;&lt;SPAN class=""&gt;  
  &lt;SPAN class="" style="color: #333333;"&gt;vTaskSuspend&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #0086b3;"&gt;NULL&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Aug 2020 14:29:25 GMT</pubDate>
    <dc:creator>wenfu</dc:creator>
    <dc:date>2020-08-09T14:29:25Z</dc:date>
    <item>
      <title>ECSPI demo stop working in MCUXpresso Software Development Kit</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-demo-stop-working-in-MCUXpresso-Software-Development-Kit/m-p/1077188#M158124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using M4 core's ESCPI in i.max8mq and I want to start with the follow example code:&lt;/P&gt;&lt;P&gt;boards\evkmimx8mq\rtos_examples\freertos_ecspi\ecspi_loopback&lt;/P&gt;&lt;P&gt;boards\evkmimx8mq\driver_examples\ecspi\ecspi_loopback&lt;/P&gt;&lt;P&gt;Both of the 2 demos just run a&amp;nbsp;&lt;SPAN&gt;single&amp;nbsp;&lt;/SPAN&gt;test on SPI then hung up CPU, just send 64 bytes and get the data back from internal&amp;nbsp; loop. But the application scenario is to run SPI periodically. So I add a while(1) loop in the demo code, just like the following code segment. &lt;STRONG&gt;But the weird thing is the code stoped after several senonds. &lt;/STRONG&gt;If I add the init function before transfer function the code can run all the time. Both the demo for RTOS and non-ROTS has the same issue.&amp;nbsp; Does it nessary to&amp;nbsp;initialise SPI before every signle transfer?&lt;/P&gt;&lt;PRE class="" style="color: #333333 !important; background-color: #ffffff !important; border-top: none; border-bottom: none; border-left: 1px solid #dce0e6; border-right: none; padding: 10px;"&gt;&lt;CODE style="color: inherit; background-color: transparent;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN class="" style="color: #445588; font-weight: bold;"&gt;void&lt;/SPAN&gt; &lt;SPAN class="" style="color: #990000; font-weight: bold;"&gt;ecspi_task&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #445588; font-weight: bold;"&gt;void&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;*&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;pvParameters&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;{
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #445588; font-weight: bold;"&gt;uint8_t&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #333333;"&gt;status_t&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;status&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #333333;"&gt;ecspi_rtos_handle_t&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;master_rtos_handle&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_MasterGetDefaultConfig&lt;/SPAN&gt;(&lt;SPAN class="" style="font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;masterConfig&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #333333;"&gt;masterConfig&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;baudRate_Bps&lt;/SPAN&gt;   &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_TRANSFER_BAUDRATE&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="color: #333333;"&gt;masterConfig&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;enableLoopback&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0086b3;"&gt;false&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;SPAN class="" style="font-weight: bold;"&gt;for&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #009999;"&gt;0&lt;/SPAN&gt;; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_TRANSFER_SIZE&lt;/SPAN&gt;; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;++&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;    {&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
       &lt;SPAN class="" style="color: #333333;"&gt;masterTxData&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;] &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;    }&lt;/SPAN&gt;&lt;SPAN class=""&gt;    
&lt;SPAN class="" style="font-weight: bold;"&gt;while&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #009999;"&gt;1&lt;/SPAN&gt;){&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;    &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;    
&lt;SPAN class="" style="font-weight: bold;"&gt;if&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;status&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;kStatus_Success&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;        {&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
           &lt;SPAN class="" style="color: #333333;"&gt;PRINTF&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #dd1144;"&gt;"ECSPI meets error during initialization. &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;\r\n&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;            &lt;SPAN class="" style="color: #333333;"&gt;vTaskSuspend&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #0086b3;"&gt;NULL&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;       }
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #333333;"&gt;masterXfer&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;txData&lt;/SPAN&gt;   &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;masterTxData&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #333333;"&gt;masterXfer&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;rxData&lt;/SPAN&gt;   &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;masterRxData&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #333333;"&gt;masterXfer&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;dataSize&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_TRANSFER_SIZE&lt;/SPAN&gt;;
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #333333;"&gt;masterXfer&lt;/SPAN&gt;.&lt;SPAN class="" style="color: #333333;"&gt;channel&lt;/SPAN&gt;  &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_MASTER_TRANSFER_CHANNEL&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #999988;"&gt;/*Start master transfer*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
       &lt;SPAN class="" style="color: #333333;"&gt;status&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_RTOS_Transfer&lt;/SPAN&gt;(&lt;SPAN class="" style="font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;master_rtos_handle&lt;/SPAN&gt;, &lt;SPAN class="" style="font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333;"&gt;masterXfer&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="font-weight: bold;"&gt;if&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;status&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;kStatus_Success&lt;/SPAN&gt;)
&lt;/SPAN&gt;&lt;SPAN class=""&gt;        {&lt;/SPAN&gt;&lt;SPAN class=""&gt;            
&lt;SPAN class="" style="color: #333333;"&gt;PRINTF&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #dd1144;"&gt;"ECSPI transfer completed with error. &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;\r\n\r\n&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;            &lt;SPAN class="" style="color: #333333;"&gt;vTaskSuspend&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #0086b3;"&gt;NULL&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
       }&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="color: #999988;"&gt;/* Compare Tx and Rx data. */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
       &lt;SPAN class="" style="font-weight: bold;"&gt;for&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #009999;"&gt;0&lt;/SPAN&gt;; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ECSPI_TRANSFER_SIZE&lt;/SPAN&gt;; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;++&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
       {&lt;/SPAN&gt;&lt;SPAN class=""&gt;            &lt;SPAN class="" style="font-weight: bold;"&gt;if&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;masterTxData&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;] &lt;SPAN class="" style="font-weight: bold;"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;masterRxData&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;])&lt;/SPAN&gt;&lt;SPAN class=""&gt; 
           {&lt;/SPAN&gt;&lt;SPAN class=""&gt;                &lt;SPAN class="" style="font-weight: bold;"&gt;break&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;           
 }&lt;/SPAN&gt;&lt;SPAN class=""&gt;        
}&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;        
&lt;SPAN class="" style="font-weight: bold;"&gt;if&lt;/SPAN&gt; (&lt;SPAN class="" style="color: #333333;"&gt;ECSPI_TRANSFER_SIZE&lt;/SPAN&gt; &lt;SPAN class="" style="font-weight: bold;"&gt;==&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;i&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;  
      {&lt;/SPAN&gt;&lt;SPAN class=""&gt;            
&lt;SPAN class="" style="color: #333333;"&gt;PRINTF&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #dd1144;"&gt;"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;\r\n&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;FreeRTOS ECSPI loopback test pass!"&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN class=""&gt;    
    }&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;SPAN class="" style="font-weight: bold;"&gt;else&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;    
    {&lt;/SPAN&gt;&lt;SPAN class=""&gt;            &lt;SPAN class="" style="color: #333333;"&gt;PRINTF&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #dd1144;"&gt;"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;\r\n&lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;FreeRTOS ECSPI loopback test fail!"&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;SPAN class=""&gt;     
   }&lt;/SPAN&gt;&lt;SPAN class=""&gt;    }&lt;/SPAN&gt;&lt;SPAN class=""&gt;  
  &lt;SPAN class="" style="color: #333333;"&gt;vTaskSuspend&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #0086b3;"&gt;NULL&lt;/SPAN&gt;);
&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2020 14:29:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-demo-stop-working-in-MCUXpresso-Software-Development-Kit/m-p/1077188#M158124</guid>
      <dc:creator>wenfu</dc:creator>
      <dc:date>2020-08-09T14:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI demo stop working in MCUXpresso Software Development Kit</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-demo-stop-working-in-MCUXpresso-Software-Development-Kit/m-p/1077189#M158125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Wen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is&amp;nbsp;ECSPI_Deinit() function in ecspi_loopback.c, one can check if&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is called somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 03:41:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-demo-stop-working-in-MCUXpresso-Software-Development-Kit/m-p/1077189#M158125</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-08-10T03:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI demo stop working in MCUXpresso Software Development Kit</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-demo-stop-working-in-MCUXpresso-Software-Development-Kit/m-p/1077190#M158126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure there's no place to call&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ECSPI_Deinit(). I just add a while(1) in the demo code, no more code was added. You guys can&amp;nbsp;&lt;SPAN style="font-size: 11.0pt;"&gt;replicate it easilly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B.R.&lt;/P&gt;&lt;P&gt;Wen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 03:28:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-demo-stop-working-in-MCUXpresso-Software-Development-Kit/m-p/1077190#M158126</guid>
      <dc:creator>wenfu</dc:creator>
      <dc:date>2020-08-11T03:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI demo stop working in MCUXpresso Software Development Kit</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-demo-stop-working-in-MCUXpresso-Software-Development-Kit/m-p/1400214#M185901</link>
      <description>&lt;P&gt;Hi Wen&lt;/P&gt;&lt;P&gt;Could you solve your problem?&lt;/P&gt;&lt;P&gt;I have similar issues and I am intrested if there is a solution.&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 10:07:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-demo-stop-working-in-MCUXpresso-Software-Development-Kit/m-p/1400214#M185901</guid>
      <dc:creator>MBaer</dc:creator>
      <dc:date>2022-01-17T10:07:17Z</dc:date>
    </item>
  </channel>
</rss>

