Receiving is a whole new can of worms. I did all of that work a year ago, and it took quite a bit of reading the reference manual and example code to get what I got. I remember thinking that I could take the time to figure out SPI receive, but was glad that I didn't have a need to do so. The manual doesn't say exactly what to expect.
<SOAPBOX>
In my experience, NXP Arm manuals are the easiest to read and understand, and all the other manufacturers make it much harder. Now that NXP and Freescale are the same, maybe we'll get more of the good manuals.
I recently began working with the Renesas RZ-A1H, and I have so far been very extremely disappointed in their documentation. It is very hard to understand exactly how to do things, and they offer virtually no decent working examples on how to diddle registers to make things work.
</SOAPBOX>
Hi,
We are testing the FRDM-K64F with a component by STM requiring 16-bit SPI. It seems that the statement
in function
contained in file /code/mbed-dev/file/41a834223ea3/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/spi_api.c does not consider the most significant octet when using SPI at 16-bit.
Could you please confirm and, in such a case, fix the bug?
Thanks and regards Andrea