Hi,
I'm using S32K148U EVB kit.
Implemented FLEXIO_SPI using the provided RTM3.0 v3.0. However, the SPI waveform comes out as below.
When transferring from Master, 10 bytes(NUMBER_OF_FRAMES is 10) are transmitted as shown below. However, CS is toggled in units of 1 byte.
SPI_MasterTransferBlocking(&spi1Instance, master_send, master_receive, (uint8_t) NUMBER_OF_FRAMES, (uint8_t) TIMEOUT);
How can toggle CS each of transfer size?
If possible, please provide example code.
解決済! 解決策の投稿を見る。
Hello @HyungGyuKim76,
Do you want to keep the CS asserted during the 10byte transfer or what is the frame size required here?
The driver supports 1byte, 2byte and 4byte frames.
If you want to send 10byte frames, you need to control the CS pin by the GPIO driver - toggle the pin before and after this SPI_MasterTransferBlocking() function is called.
BR, Daniel
at what pins you are checking the output
Sloved it by using CS as GPIO.
It works normally by simply changing the CS pin to gpio. thank you.
Hello @HyungGyuKim76,
Do you want to keep the CS asserted during the 10byte transfer or what is the frame size required here?
The driver supports 1byte, 2byte and 4byte frames.
If you want to send 10byte frames, you need to control the CS pin by the GPIO driver - toggle the pin before and after this SPI_MasterTransferBlocking() function is called.
BR, Daniel