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

Differences between FreeRTOS code from freertos.org and FreeRTOS code generated with CubeMX

Posted by cleverjack on July 30, 2015

FreeRTOS 8.2.1 IAR EWARM on WIN8.1

There seem to be many differences between FreeRTOS code generated with CubeMX, and FreeRTOS code examples downloaded from freertos.org

I use the "Practical Guide" and Example code from freertos.org, but have to modify many things, like function names, IDs and so on.

To /* Start thread 1 / FreeRTOS code generated with CubeMX uses: LEDThread1Handle = osThreadCreate(osThread(LED1), NULL); And for / Start scheduler */ osKernelStart();

While

For /* Create the other task in exactly the same way. / FreeRTOS code examples downloaded from freertos.org uses: xTaskCreate( vTask2, "Task 2", 240, NULL, 1, NULL ); and for / Start the scheduler so our tasks start executing. */ vTaskStartScheduler();

Is there a better way to do this? Is there a Reference / User’s manual for the CubeMX FreeRTOS code?

Do I just work through downloaded CubeFx examples like ....STM32CubeFWF0V1.2.0ProjectsSTM32F072B-DiscoveryApplicationsFreeRTOSFreeRTOSThreadCreationSrc

I did sign up on STM Forum STe2eCommunities, but perhaps you can point me to some additional information.

Any help appreciated


Differences between FreeRTOS code from freertos.org and FreeRTOS code generated with CubeMX

Posted by rtel on July 30, 2015

The STM32cube software uses an abstraction layer on top of FreeRTOS. FreeRTOS is being built into the cube examples, and you can use the native FreeRTOS API (which will be more efficient and more powerful) in the normal way in applications that use STM32cube - just remember to include FreeRTOS.h and the header files for any API functions you want at the top of the source files.


[ 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