MCC SPI SPIx_Exchange16bitBuffer() failure
Has anyone gotten these functions to work?
dummy_stuff = SPI2_Exchange16bit(data);
// This works but is limited to 127 byte transfers. My buffer pass operation is verified to pass through the 256 times but only 128B of data are read back from my flash.
dummy_stuff = SPI2_Exchange16bitBuffer(write_buffer, 18, read_buffer);
// This works up to 16 bytes of code. The return value is 1/2 of the total I pass in. For example, if I pass in a 16 byte count it returns 8. Very strange..
My desire is to simply write to a page of flash (256 16b int). I can post more code but I'm pretty sure the issue isn't on my side. The exchange with no buffer may be inherently limited as they expect you'd go to a buffer transfer for langer transfers.