Hello,
I copied the freeRTOS into my project and I compiled my code properly and once I tried to add some tracing functions
extern void PROBE_vTraceHeap(void * pvAddress, size_t uiSize);
#define traceMALLOC(pvAddress, uiSize ) PROBE_vTraceHeap(pvAddress, uiSize)
to FreeRTOSConfig.h, i get Error: unknown opcode or format name 'extern'
and if I removed the 'extern', i will get the same error but for the void.
Please advise!
can not add trace function to FreeRTOSConfig.h
-
- Posts: 75
- Joined: Fri Dec 04, 2020 9:56 pm
Re: can not add trace function to FreeRTOSConfig.h
That config file is included in assembly source file(s) as well and the assembly compiler just cannot resolve your C code. Put it in a conditional block where __ASSEMBLER__ identifier is not defined (file is not compiled by the assembler):
Here is an existing example and an assembly source file which includes the mentioned header.
Code: Select all
#ifndef __ASSEMBLER__
extern void PROBE_vTraceHeap(void * pvAddress, size_t uiSize);
#define traceMALLOC(pvAddress, uiSize) PROBE_vTraceHeap(pvAddress, uiSize)
#endif
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 113 guests