<?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: mimxrt685 evk SPI transfer data to max7219 LED matrix module in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1224325#M12509</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Durant19,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Do you have the logic analyzer tool on your side? You can check the SPI bus data, whether that is meet your slave module requirement, you mentioned your&amp;nbsp;&amp;nbsp;lr1110, the rx data buffer are all 0, so you need to check the RT SPI_MOSI, whether the sendout data is really 0, or just the SPI slave didn't receive the data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; If you don't have the logic analyzer tool, you also can use the&amp;nbsp;oscilloscope to check the SPI bus data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; You can check your SPI bus, and give me your SPI wave.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; If the SPI bus already has the data, then you need to check the SPI baudrate, and the SPI mode, whether that is meet your slave demand.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any updated information, just let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 03:04:42 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2021-02-02T03:04:42Z</dc:date>
    <item>
      <title>mimxrt685 evk SPI transfer data to max7219 LED matrix module</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1223535#M12502</link>
      <description>&lt;P&gt;Hello i am using the mimxRT685 evk and use spi function to communicate with max7219 and lora lr1110&lt;/P&gt;&lt;P&gt;and i search for the example on sdk &lt;STRONG&gt;spi_polling_b2b_transfer_master&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and modify the tx buffer to command the max7219 and lora module, but seems that its not working&lt;/P&gt;&lt;P&gt;below is my code:&lt;/P&gt;&lt;P&gt;i use &lt;STRONG&gt;SPI_MasterTransferBlocking &lt;/STRONG&gt;function and the transfer is success, but its just not working&lt;/P&gt;&lt;P&gt;and for lr1110, the rx data buffer are all 0, do not have the response data.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;#include "fsl_spi.h"&lt;BR /&gt;#include "board.h"&lt;BR /&gt;#include "fsl_debug_console.h"&lt;/P&gt;&lt;P&gt;#include "pin_mux.h"&lt;BR /&gt;#include "clock_config.h"&lt;BR /&gt;/*******************************************************************************&lt;BR /&gt;* Definitions&lt;BR /&gt;******************************************************************************/&lt;BR /&gt;#define EXAMPLE_SPI_MASTER SPI5&lt;BR /&gt;#define EXAMPLE_SPI_MASTER_IRQ FLEXCOMM5_IRQn&lt;BR /&gt;#define EXAMPLE_SPI_MASTER_CLK_SRC kCLOCK_Flexcomm5&lt;BR /&gt;#define EXAMPLE_SPI_MASTER_CLK_FREQ CLOCK_GetFlexCommClkFreq(5U)&lt;/P&gt;&lt;P&gt;#define EXAMPLE_SPI_SSEL 0&lt;BR /&gt;#define EXAMPLE_SPI_SPOL kSPI_SpolActiveAllLow&lt;/P&gt;&lt;P&gt;/*******************************************************************************&lt;BR /&gt;* Prototypes&lt;BR /&gt;******************************************************************************/&lt;/P&gt;&lt;P&gt;/*******************************************************************************&lt;BR /&gt;* Variables&lt;BR /&gt;******************************************************************************/&lt;BR /&gt;#define BUFFER_SIZE (64)&lt;BR /&gt;static uint8_t srcBuff[8];&lt;BR /&gt;static uint8_t destBuff[8];&lt;BR /&gt;/*******************************************************************************&lt;BR /&gt;* Code&lt;BR /&gt;******************************************************************************/&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;spi_master_config_t userConfig = {0};&lt;BR /&gt;uint32_t srcFreq = 0;&lt;BR /&gt;uint32_t i = 0;&lt;BR /&gt;uint32_t err = 0;&lt;BR /&gt;spi_transfer_t xfer = {0};&lt;/P&gt;&lt;P&gt;CLOCK_AttachClk(kSFRO_to_FLEXCOMM5);&lt;/P&gt;&lt;P&gt;BOARD_InitPins();&lt;BR /&gt;BOARD_BootClockRUN();&lt;BR /&gt;BOARD_InitDebugConsole();&lt;BR /&gt;PRINTF("\n\rMaster Start...\n\r");&lt;BR /&gt;/*&lt;BR /&gt;userConfig.enableLoopback = false;&lt;BR /&gt;userConfig.enableMaster = true;&lt;BR /&gt;userConfig.polarity = kSPI_ClockPolarityActiveHigh;&lt;BR /&gt;userConfig.phase = kSPI_ClockPhaseFirstEdge;&lt;BR /&gt;userConfig.direction = kSPI_MsbFirst;&lt;BR /&gt;userConfig.baudRate_Bps = 500000U;&lt;BR /&gt;*/&lt;BR /&gt;SPI_MasterGetDefaultConfig(&amp;amp;userConfig);&lt;BR /&gt;srcFreq = EXAMPLE_SPI_MASTER_CLK_FREQ;&lt;BR /&gt;userConfig.sselNum = (spi_ssel_t)EXAMPLE_SPI_SSEL;&lt;BR /&gt;userConfig.sselPol = (spi_spol_t)EXAMPLE_SPI_SPOL;&lt;BR /&gt;SPI_MasterInit(EXAMPLE_SPI_MASTER, &amp;amp;userConfig, srcFreq);&lt;/P&gt;&lt;P&gt;srcBuff[0] = 0x11;&lt;BR /&gt;srcBuff[1] = 0x10;&lt;BR /&gt;srcBuff[2] = 0x10;&lt;BR /&gt;srcBuff[3] = 0x11;&lt;BR /&gt;srcBuff[4] = 0x11;&lt;BR /&gt;srcBuff[5] = 0x11;&lt;BR /&gt;srcBuff[6] = 0x11;&lt;BR /&gt;srcBuff[7] = 0x11;&lt;/P&gt;&lt;P&gt;/*Start Transfer*/&lt;BR /&gt;xfer.txData = srcBuff;&lt;BR /&gt;xfer.rxData = destBuff;&lt;BR /&gt;xfer.dataSize = 8;&lt;BR /&gt;xfer.configFlags = kSPI_FrameDelay;&lt;BR /&gt;if(SPI_MasterTransferBlocking(EXAMPLE_SPI_MASTER, &amp;amp;xfer) == kStatus_Success){&lt;BR /&gt;PRINTF("Transfer success!\n");&lt;BR /&gt;}&lt;BR /&gt;else{&lt;BR /&gt;PRINTF("Transfer failed QQ~\n");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PRINTF("%x %x\n\r", srcBuff[0], srcBuff[1]);&lt;BR /&gt;PRINTF("%x %x\n\r", destBuff[0], destBuff[1]);&lt;/P&gt;&lt;P&gt;while (1)&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 07:10:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1223535#M12502</guid>
      <dc:creator>Durant19</dc:creator>
      <dc:date>2021-01-30T07:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: mimxrt685 evk SPI transfer data to max7219 LED matrix module</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1224325#M12509</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Durant19,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Do you have the logic analyzer tool on your side? You can check the SPI bus data, whether that is meet your slave module requirement, you mentioned your&amp;nbsp;&amp;nbsp;lr1110, the rx data buffer are all 0, so you need to check the RT SPI_MOSI, whether the sendout data is really 0, or just the SPI slave didn't receive the data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; If you don't have the logic analyzer tool, you also can use the&amp;nbsp;oscilloscope to check the SPI bus data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; You can check your SPI bus, and give me your SPI wave.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; If the SPI bus already has the data, then you need to check the SPI baudrate, and the SPI mode, whether that is meet your slave demand.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any updated information, just let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 03:04:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1224325#M12509</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-02-02T03:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: mimxrt685 evk SPI transfer data to max7219 LED matrix module</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1225244#M12530</link>
      <description>&lt;P&gt;update another problem, cause i do not have the device you mentioned.&lt;/P&gt;&lt;P&gt;due to the fail communication with lr1110,&amp;nbsp; i decided to use the arduino as slave to debug&lt;/P&gt;&lt;P&gt;&amp;nbsp;i use the sdk spi polling master example to transfer data&lt;/P&gt;&lt;P&gt;and it just still not working.... so i think is the sdk borad's problem not lr1110&lt;/P&gt;&lt;P&gt;i think the spi examples are very hard to read, and the example just tell how to transfer between two nxp, its not a good example....&lt;/P&gt;&lt;P&gt;my arduino spi slave code:&lt;/P&gt;&lt;P&gt;/* SPI Slave Demo&lt;BR /&gt;*&lt;BR /&gt;* SPI pin numbers:&lt;BR /&gt;* SCK 13 // Serial Clock.&lt;BR /&gt;* MISO 12 // Master In Slave Out.&lt;BR /&gt;* MOSI 11 // Master Out Slave In.&lt;BR /&gt;* SS 10 // Slave Select . Arduino SPI pins respond only if SS pulled low by the master&lt;BR /&gt;*&lt;BR /&gt;&lt;BR /&gt;*/&lt;BR /&gt;#include &amp;lt;SPI.h&amp;gt;&lt;BR /&gt;#include&amp;lt;stdint.h&amp;gt;&lt;BR /&gt;#define SPI_SCK 13&lt;BR /&gt;#define SPI_MISO 12&lt;BR /&gt;#define SPI_MOSI 11&lt;BR /&gt;#define SPI_SS 10&lt;/P&gt;&lt;P&gt;uint8_t dataBuff[500];&lt;/P&gt;&lt;P&gt;//Initialize SPI slave.&lt;BR /&gt;void SPI_SlaveInit(void)&lt;BR /&gt;{&lt;BR /&gt;// Initialize SPI pins.&lt;BR /&gt;pinMode(SCK, INPUT);&lt;BR /&gt;pinMode(MOSI, INPUT);&lt;BR /&gt;pinMode(MISO, OUTPUT);&lt;BR /&gt;pinMode(SS, INPUT);&lt;BR /&gt;//make SPI as slave&lt;BR /&gt;&lt;BR /&gt;// Enable SPI as slave.&lt;BR /&gt;SPCR = (1 &amp;lt;&amp;lt; SPE);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//This function returns SPDR Contents&lt;BR /&gt;uint8_t SPI_SlaveReceive(void)&lt;BR /&gt;{&lt;BR /&gt;/* Wait for reception complete */&lt;BR /&gt;while(!(SPSR &amp;amp; (1&amp;lt;&amp;lt;SPIF)));&lt;BR /&gt;/* Return Data Register */&lt;BR /&gt;return SPDR;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//sends one byte of data&lt;BR /&gt;void SPI_SlaveTransmit(char data)&lt;BR /&gt;{&lt;BR /&gt;/* Start transmission */&lt;BR /&gt;SPDR = data;&lt;BR /&gt;/* Wait for transmission complete */&lt;BR /&gt;while(!(SPSR &amp;amp; (1&amp;lt;&amp;lt;SPIF)));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// The setup() function runs right after reset.&lt;BR /&gt;void setup()&lt;BR /&gt;{&lt;BR /&gt;// Initialize serial communication&lt;BR /&gt;Serial.begin(9600);&lt;BR /&gt;// Initialize SPI Slave.&lt;BR /&gt;SPI_SlaveInit();&lt;BR /&gt;Serial.println("Slave Initialized");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// The loop function runs continuously after setup().&lt;BR /&gt;void loop()&lt;BR /&gt;{&lt;BR /&gt;uint32_t i;&lt;BR /&gt;uint8_t dataLen = 0;&lt;BR /&gt;Serial.println("Slave waiting for ss to go low");&lt;BR /&gt;&lt;BR /&gt;while(digitalRead(SS)){&lt;BR /&gt;Serial.println("Waiting SS");&lt;BR /&gt;delay(5000);&lt;BR /&gt;};&lt;BR /&gt;Serial.println("Reciving data...");&lt;BR /&gt;i = 0;&lt;BR /&gt;dataLen = SPI_SlaveReceive();&lt;BR /&gt;for(i = 0 ; i &amp;lt; dataLen ; i++ )&lt;BR /&gt;{&lt;BR /&gt;dataBuff[i] = SPI_SlaveReceive();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Serial.println(String(i,HEX));&lt;BR /&gt;dataBuff[i] = '\0';&lt;BR /&gt;&lt;BR /&gt;Serial.println("Rcvd:");&lt;BR /&gt;Serial.println(dataBuff[0]);&lt;BR /&gt;Serial.println(dataBuff[1]);&lt;BR /&gt;Serial.println(dataBuff[2]);&lt;BR /&gt;Serial.println(dataBuff[3]);&lt;BR /&gt;Serial.print("Length:");&lt;BR /&gt;Serial.println(dataLen);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 06:38:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1225244#M12530</guid>
      <dc:creator>Durant19</dc:creator>
      <dc:date>2021-02-03T06:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: mimxrt685 evk SPI transfer data to max7219 LED matrix module</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1225405#M12541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Durant19,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Do you have&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;oscilloscope&amp;nbsp;? Check the SPI bus, whether it has the data or not?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Please also double check your pins, make sure you connect the correct pins.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Master_board(SPI5) &lt;BR /&gt;Pin Name Board Location &lt;BR /&gt;MISO J28 pin 5 &lt;BR /&gt;MOSI J28 pin 4 &lt;BR /&gt;SCK J28 pin 6 &lt;BR /&gt;PCS0 J28 pin 3 &lt;BR /&gt;GND J28 pin 7&lt;/P&gt;
&lt;P&gt;More details, read the SDK project readme.&lt;/P&gt;
&lt;P&gt;The SDK SPI code has been tested, it works OK.&lt;/P&gt;
&lt;P&gt;That's why I suggest you check the SPI bus in the oscilloscope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 09:40:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1225405#M12541</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-02-03T09:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: mimxrt685 evk SPI transfer data to max7219 LED matrix module</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1231863#M12701</link>
      <description>&lt;P&gt;Hello after the study and use logic analyzer, i found that the problem that lr1110 can not&lt;/P&gt;&lt;P&gt;read the spi transfer might be the logic level voltage, since i use arduino spi can communicate with&lt;/P&gt;&lt;P&gt;LR1110, and the arduino logic voltage is 5v, and on RT685 NXP call it arduino expansion, but the voltage seems to be different compare with arduino.&lt;/P&gt;&lt;P&gt;so is it the only way to use logic level converter to solve this problem? thanks very much&lt;/P&gt;&lt;P&gt;by the way whats the logic level on RT685?, i can not find in the manual.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 06:04:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1231863#M12701</guid>
      <dc:creator>Durant19</dc:creator>
      <dc:date>2021-02-17T06:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: mimxrt685 evk SPI transfer data to max7219 LED matrix module</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1232520#M12730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Durant19&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks for your updated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;So it is the voltage unmatch issues between the RT board and your external SPI modules&amp;nbsp;&lt;SPAN&gt;LR1110.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;So, maybe you need to add the external voltage convert circuit if you still want to use the LR1110.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; You also can check your LR1110, whether that module can support the SPI voltage like the RT685.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 03:31:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/mimxrt685-evk-SPI-transfer-data-to-max7219-LED-matrix-module/m-p/1232520#M12730</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-02-18T03:31:23Z</dc:date>
    </item>
  </channel>
</rss>

