FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [July 2015 Threads]
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
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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.