I am trying to periodically send 800 bytes data via SPI port in slave mode, and occasionally received some bytes command from master MCU.
But it seems FREERTOS does not support SPI slave mode.(in FreeRTOSioctl() page: boardSPISLAVEMODE: boardSPISLAVEMODE sets the SPI peripheral into slave mode. Note that slave mode is not yet supported).
Does it mean that I cannot use FreeRTOSwrite() or FreeRTOS_read()? Any way to solve this?
FreeRTOS v7.6 is in use.
Those functions are not part of FreeRTOS itself, but would appear to be part of a board support package, possibly provided by the manufacturer.
One issue is that in slave mode, you CAN'T initiate the sending of anything, but can only send data when the master requests it. A slave mode driver might have a function to call to provide a data buffer to send on the next transfer, or might use a call-back to handle the case of a message starting with a request code, and then finishes with a data return.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.