Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

SPI slave mode supported?

Posted by xranger on October 25, 2017

Hi,

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.

Thanks.


SPI slave mode supported?

Posted by richarddamon on October 25, 2017

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.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS