Quality RTOS & Embedded Software

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


Loading

Free RTOS+ Trace integration

Posted by tanariana on March 26, 2014

Hi, I need help with Trace recorder library integration. I'm using Keil and STM32F407. I included recorder library in my project but when I try to compile I got an error which I don't know how to fix. Error is in code:

void prvTraceEnableIRQ(void) { asm volatile ("cpsie i"); }

void prvTraceDisableIRQ(void) { asm volatile ("cpsid i"); }

void prvTraceSetIRQMask(uint32_t priMask) { asm volatile ("MSR primask, %0;" : : "r" (priMask)); }

uint32t prvTraceGetIRQMask(void) { uint32t result; asm volatile ("MRS %0, primask" : "=r" (result)); return result; }

Error says: GenericRecorderLibSrctrcHardwarePort.c(65): error: #20: identifier "asm" is undefined GenericRecorderLibSrctrcHardwarePort.c(65): error: #65: expected a ";"

Thank you for your help!


Free RTOS+ Trace integration

Posted by rtel on March 26, 2014

It looks like you are trying to use GCC syntax in a Keil project. IAR will generally let you do that, but Keil won't.

You need to look in the Keil manual to see what to do, but as a head start

asm volatile ("cpsie i"); can be replaced with _enableirq();

Likewise asm volatile ("cpsid i"); can be replaced with _disableirq();

I imagine there is another such intrinsic to get the primask value.

Regards.


Free RTOS+ Trace integration

Posted by tanariana on March 26, 2014

Thank you for your help!


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


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner