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] [June 2017 Threads]
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)
~~~
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
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.