Quality RTOS & Embedded Software

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




Loading

A problem with struct SD_HandleTypeDef 's member variable.

Posted by pennallee on June 17, 2016

Hi. I'm trying to add FreeRTOS+FAT base on STM32CubeMX generated project.

There is a struct 'SDHandleTypeDef' in 'stm32f4xxhalsd.h' of STM32CubeMX generated project as below. typedef struct { SDTypeDef Instance; /!< SDIO register base address / SD_InitTypeDef Init; /!< SD required parameters /
HAL_LockTypeDef Lock; /!< SD locking object /
uint32_t CardType; /!< SD card type /
uint32_t RCA; /!< SD relative card address /
uint32_t CSD[4]; /!< SD card specific data table /
uint32_t CID[4]; /!< SD card identification number table /
IO uint32_t SdTransferCplt; /!< SD transfer complete flag in non blocking mode /
IO uint32_t SdTransferErr; /!< SD transfer error flag in non blocking mode /
IO uint32_t DmaTransferCplt; /!< SD DMA transfer complete flag /
IO uint32_t SdOperation; /!< SD transfer operation (read/write) */ DMAHandleTypeDef hdmarx; /!< SD Rx DMA handle parameters /
DMAHandleTypeDef hdmatx; /!< SD Tx DMA handle parameters / }SD_HandleTypeDef;

But there are two more member variables which are 'SDEventSetupFunctionTypeDef EventSetupFunction', 'SDEventWaitFunctionTypeDef EventWaitFunction' in 'stm32f4xxhalsd.h' of FreeRTOS+FAT as below. typedef struct xSDHandle { ... SDEventSetupFunctionTypeDef EventSetupFunction; SDEventWaitFunctionTypeDef EventWaitFunction; }SDHandleTypeDef;

Could you please let me know how those two members will be generated automatically using STM32CubeMX? Thanks In advance.


A problem with struct SD_HandleTypeDef 's member variable.

Posted by rtel on June 17, 2016

Sorry - I don't know. Perhaps there is an option in the STM32CubeMX to make the driver interrupt driven or event driven that will in turn result in these members being included in the structure - but that is a guess.


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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists