Quality RTOS & Embedded Software

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




Loading

FreeRTOS+Trace for version 8.2.3

Posted by sachingole on June 7, 2017

Hi All,

When I am trying to compile FreeRTOS+Trace for FreeRTOS version 8.2.3. It gives following error. Have anyone tried it for this version. I am using SRM32L476-RG development enviroment.

~~~ 10:56:03 **** Incremental Build of configuration Debug for project freeRTOS-8.2.3 **** make all Building file: ../src/main.c Invoking: MCU GCC Compiler %cd% ; ; ;

MF"TraceRecorder/trcKernelPort.d" -MT"TraceRecorder/trcKernelPort.o" -o "TraceRecorder/trcKernelPort.o" "../TraceRecorder/trcKernelPort.c" In file included from D:/STM32CubeFWL4V1.7.0/freeRTOS-8.2.3/inc/trcRecorder.h:70:0, from D:/STM32CubeFWL4V1.7.0/freeRTOS-8.2.3/inc/FreeRTOSConfig.h:175, from D:/STM32CubeFWL4V1.7.0/freeRTOS-8.2.3/Middlewares/ThirdParty/FreeRTOS/Source/include/FreeRTOS.h:98, from ../TraceRecorder/trcKernelPort.c:45: D:/STM32CubeFWL4V1.7.0/freeRTOS-8.2.3/inc/trcHardwarePort.h:154:3: error: #error "Can't find the CMSIS API. Please include your processor's header file in trcConfig.h" error "Can't find the CMSIS API. Please include your processor's header file in trcConfig.h"
^ In file included from D:/STM32CubeFWL4V1.7.0/freeRTOS-8.2.3/inc/trcRecorder.h:71:0, from D:/STM32CubeFWL4V1.7.0/freeRTOS-8.2.3/inc/FreeRTOSConfig.h:175, from D:/STM32CubeFWL4V1.7.0/freeRTOS-8.2.3/Middlewares/ThirdParty/FreeRTOS/Source/include/FreeRTOS.h:98, from ../TraceRecorder/trcKernelPort.c:45: D:/STM32CubeFWL4V1.7.0/freeRTOS-8.2.3/inc/trcKernelPort.h:176:3: error: #error "This hardware port has no definition for critical sections! See http://percepio.com/2014/10/27/how-to-define-critical-sections-for-the-recorder/" error "This hardware port has no definition for critical sections! See http://percepio.com/2014/10/27/how-to-define-critical-sections-for-the-recorder/" ^ make: *** [TraceRecorder/trcKernelPort.o] Error 1

10:56:06 Build Finished (took 3s.38ms) ~~~


FreeRTOS+Trace for version 8.2.3

Posted by sachingole on June 7, 2017

I got below link. https://percepio.com/2014/10/27/how-to-define-critical-sections-for-the-recorder/

~~~

define TRACEALLOCCRITICALSECTION() uint32t _irqstatus;
define TRACEENTERCRITICALSECTION() {__irqstatus = portSETINTERRUPTMASKFROMISR();}
define TRACEEXITCRITICALSECTION() {portCLEARINTERRUPTMASKFROMISR(__irqstatus);}

~~~

solved problem


[ 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