The SDK exmple flexio_spi_s32k148 base on RTM4.0.1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The SDK exmple flexio_spi_s32k148 base on RTM4.0.1

211 Views
SONGTAOSI
Contributor I

The chip I use is S32K148, and the SDK  is RTM4.0.1 version. in the exmple of flexio_spi_s32k148 i found that  the transfer and receiver are both spi1,in another words,spi1 not master but slaver.Is this a bug? This is my first puzzle.

SONGTAOSI_0-1700206992373.png

Now i change slaver as spi2,as the instruction of flexio_spi_s32k148.

FLEXIO_SPI_DRV_SlaveInit(INST_FLEXIO_SPI1, &flexio_spi2_SlaveConfig0, &flexIOSPIState_Slave); but the result is wrong.This is my secend puzzle.

SONGTAOSI_1-1700207430953.pngSONGTAOSI_2-1700207470649.png

Thanks!

0 Kudos
1 Reply

178 Views
nxf78987
NXP Employee
NXP Employee

Hello @SONGTAOSI,

If I do not connect wires following "Hardware Wiring" then slaveBuffer.rxBuffer and masterBuffer.rxBuffer still receive data normally - "LED GREEN lighted". => Maybe this is an issue.

After changing the example code to "flexio_spi2_SlaveConfig0" as you said and connect wires following "Hardware Wiring" then I saw that example also runs normally - "LED GREEN lighted".

I created a ticket ASDK-41425 , the development team will help me analyze this ticket.

Best regards,

Dan

0 Kudos