it seem that the SPI0 of the KL26Z has no FIFO. I get an Hardfault error if I try to write the SPI0->C3 register. But according to Page 681 in Reference Manual there is a SPI0_C3 register.
Pls refer to section 3.9.2 SPI configuration, only SPI1 has 4-deep FIFO of 16 bits entries, the SPI0 module does not have FIFO.
hope it can help you.
I copy it here:
220.127.116.11 SPI instantiation informationThe number of SPI modules on this device is: twoThe supported data length is: 16-bitSPI1 includes a 4-deep FIFO of 16-bit entries.SPI0 is clocked on the bus clock. That is, the SPI0 module clock is connected to the chiplevelbus clock.SPI1 is clocked from the system clock. That is, the SPI1 module clock is connected to thechip-level system clock. SPI1 is therefore disabled in Partial Stop Mode.The SPI supports DMA request and can operate in VLPS mode. When the SPI isoperating in VLPS mode, it will operate as a slave.SPI can wake the MCU from VLPS mode upon reception of SPI data in slave mode.
Thank you for that information.
Retrieving data ...