<?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 Re: MQX SPI timing / CS issue in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-timing-CS-issue/m-p/309066#M9937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a data point.&amp;nbsp; I've been trying to get the MQX 4.1 DSPI driver working with DMA as I convert a project from MQX 3.8.1 to MQX 4.1 on a Kinetis K70.&amp;nbsp; I'm seeing huge latency between CS and SCLK on both sides of the transaction.&amp;nbsp; In this case I'm not using the CS callback -- I'm letting the driver handle the CS.&amp;nbsp; The actual data transfer is about the same but the total transaction time is very large with the MQX 4.1 driver compared to the driver in MQX 3.8.1.&amp;nbsp; Look at the chip select line in the screen shot below. 81.65us.&amp;nbsp; For comparison, the total transaction time for MQX 3.8.1's SPI driver is about 37us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MQX_4_1_DSPI_wDMA.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43751i26256BB678855D7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="MQX_4_1_DSPI_wDMA.png" alt="MQX_4_1_DSPI_wDMA.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 16:43:35 GMT</pubDate>
    <dc:creator>pbanta</dc:creator>
    <dc:date>2014-05-14T16:43:35Z</dc:date>
    <item>
      <title>MQX SPI timing / CS issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-timing-CS-issue/m-p/309063#M9934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;This question also relates to &lt;A href="https://community.nxp.com/thread/321529"&gt;reduce read/write time in SPI driver on MQX 4.0.2&lt;/A&gt; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;We are using MQX on the Cortex M4 of a Vybrid processor, for time sensitive operations on a very fast control loop application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;For that, we need fast execution of SPI driver for both send and receive functions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Doing tests with newer MQX versions, 4.0.2, we noticed the SPI driver takes a long time to run, specially when the Chip Select by hardware is selected, as I would believe the driver depends on the OS scheduler to give it the control periodically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;This seems like a known limitation/feature, the issue is better described on the other post commented above, is this a correct assumption?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;What we mean is, was the MQX SPI driver designed to support very fast transfers as fast as 1 - 2us (for 2 bytes data only)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Due to that, we are trying to use the Chip Select manually, so the idea is to directly control the IO, and use the SPI driver just for data transfer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;The problem is: on this version of MQX 4.0.2, it seems the driver does not allow us to do that, the transfer is never completed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;While, on older versions of MQX, like the 4.0.1, the exact same code worked fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;The QUESTIONS then are: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;1) Why manually setting the CS does not work for newer MQX versions? (although there were no changes on documentation).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;2) Do you see any other strategy as a faster option for even faster SPI send/receive functions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;The implementation was:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;1) High Level application:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;--------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;/* Open the SPI driver */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;spiFD = fopen("spi0:0", NULL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;--------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;We use "spi0:0" as we dont want to use hardware chipselect. The CS is being controlled by GPIO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; * ===&amp;nbsp; FUNCTION&amp;nbsp; ======================================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name:&amp;nbsp; adcRw&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; *&amp;nbsp; Description: write/read data to adc module by spi driver&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; * =====================================================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;uint_16 adcRw(&amp;nbsp; uint_16 data )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; SPI_READ_WRITE_STRUCT&amp;nbsp; rw;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; uint_8 uiChannel;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; uint_16&amp;nbsp;&amp;nbsp; result=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;/* Test simultaneous write and read */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;memset (send_buffer, 0, sizeof (send_buffer));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;send_buffer[0] = (uint_8)((data&amp;amp;0xFF00)&amp;gt;&amp;gt;8);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;send_buffer[1] = (uint_8)(data&amp;amp;0xFF);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;rw.BUFFER_LENGTH = 2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;rw.WRITE_BUFFER = (char_ptr)send_buffer;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;if (SPI_OK == ioctl (spiFD, IO_IOCTL_SPI_READ_WRITE, &amp;amp;rw))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;//TRACE ("ad OK");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;} else {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;TRACE ("ad ERROR");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;//fflush (spiFD);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;ioctl (spiFD, IO_IOCTL_FLUSH_OUTPUT, 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;bufferAD[uiChannel] = ((((uint_16)rw.READ_BUFFER[0])&amp;lt;&amp;lt;8)&amp;amp;0x0FFF)|((uint_16)rw.READ_BUFFER[1]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;//TRACE("v:%d",result);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;return(result);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;2) BSP lower level modifications:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;- On pcm052_m4.h fiel, enabled PTB18 and 19 as GPIOs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: lime; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;-----------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="background-color: lime; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;#define BSP_ADC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (LWGPIO_PORT_B | LWGPIO_PIN8)&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: lime; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;#define BSP_DAC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (LWGPIO_PORT_B | LWGPIO_PIN9)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: lime; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: lime; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;#define BSP_ADC_MUX_GPIO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (LWGPIO_MUX_B8_GPIO)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: lime; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;#define BSP_DAC_MUX_GPIO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (LWGPIO_MUX_B9_GPIO)&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="background-color: lime; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: lime; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;- Removed those pins functions as CS1 and CS0 on fileinit_gpio.c &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;---------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;_mqx_int _bsp_dspi_io_init&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_32 dev_num&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (dev_num)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 0:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_RGPIO(40) =&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_IBE(1) | &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_OBE(1) | &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_PUE(1) | &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_PKE(1) | &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_PUS(2) | &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_DSE(7) | &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_SPEED(3) | &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_MUX_MODE(1); // PTB18.CS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;SPAN style="background-color: #e06666;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #e06666;"&gt;IOMUXC_RGPIO(41) =&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_IBE(1) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_OBE(1) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_PUE(1) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_PKE(1) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_PUS(2) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_DSE(7) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_SPEED(3) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="background-color: #e06666; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IOMUXC_SW_MUX_CTL_PAD_PAD_MUX_MODE(1); */// PTB19.CS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;---------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Then, compiled the BSP again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Bruno&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #282828; font-family: 'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 15:11:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-timing-CS-issue/m-p/309063#M9934</guid>
      <dc:creator>bfac</dc:creator>
      <dc:date>2014-04-02T15:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: MQX SPI timing / CS issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-timing-CS-issue/m-p/309064#M9935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;I think you have found issues with MQX4.0.2 and also MQX4.1 SPI driver.&amp;nbsp; I plan to investigate this further after FTF (April 8-11th) (i.e. start looking at week of April 14th).&lt;/P&gt;&lt;P&gt;I did a test recently with MQX4.1 and it defaulted to using DMA SPI driver for Kinetis.&amp;nbsp; I'm assuming that would be the case for Vybrid too but you may want to try MQX4.1 (&lt;A href="http://www.freescale.com/mqx"&gt;http://www.freescale.com/mqx&lt;/A&gt;) .&lt;/P&gt;&lt;P&gt;bits of PUSHR should contain the CTARx and SPI CS (other options too) to use and the lower 16-bit value containing the data to write.&lt;/P&gt;&lt;P&gt;If anyone beats me to looking into this....Thanks!&amp;nbsp; Otherwise I will report back after my efforts.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 15:46:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-timing-CS-issue/m-p/309064#M9935</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-04-02T15:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: MQX SPI timing / CS issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-timing-CS-issue/m-p/309065#M9936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="VybridSPI.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44307i7CC0F2EC5B428DFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="VybridSPI.JPG.jpg" alt="VybridSPI.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Related to your 2nd question: for reference I get 446ns (41.5MHz SCK) for a 16bits transfer using bare-metal drivers (SPI1 + eDMA) with CS controlled directly from the drivers (see attached screenshot). TFT 320x240 is completely filled up in 34.12ms.&lt;/P&gt;&lt;P&gt;Same performances for A5 &amp;amp; M4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 15:55:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-timing-CS-issue/m-p/309065#M9936</guid>
      <dc:creator>pato3</dc:creator>
      <dc:date>2014-04-18T15:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: MQX SPI timing / CS issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-timing-CS-issue/m-p/309066#M9937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a data point.&amp;nbsp; I've been trying to get the MQX 4.1 DSPI driver working with DMA as I convert a project from MQX 3.8.1 to MQX 4.1 on a Kinetis K70.&amp;nbsp; I'm seeing huge latency between CS and SCLK on both sides of the transaction.&amp;nbsp; In this case I'm not using the CS callback -- I'm letting the driver handle the CS.&amp;nbsp; The actual data transfer is about the same but the total transaction time is very large with the MQX 4.1 driver compared to the driver in MQX 3.8.1.&amp;nbsp; Look at the chip select line in the screen shot below. 81.65us.&amp;nbsp; For comparison, the total transaction time for MQX 3.8.1's SPI driver is about 37us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MQX_4_1_DSPI_wDMA.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43751i26256BB678855D7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="MQX_4_1_DSPI_wDMA.png" alt="MQX_4_1_DSPI_wDMA.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 16:43:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-SPI-timing-CS-issue/m-p/309066#M9937</guid>
      <dc:creator>pbanta</dc:creator>
      <dc:date>2014-05-14T16:43:35Z</dc:date>
    </item>
  </channel>
</rss>

