Hi,
I am using FreeRTOS port file from XMOS. I modified main.c file to build my own application. Now, i need to convert main.c to main.xc file.
But, when running main.xc in command prompt, it's showing that 'void* pointers must be declared as unsafe'. These errors are shown in task.h, croutine.h, list.h, freertos.h and whereever void* pointers are present.
I declared every pointer starting with void* as unsafe but again it's showing same errors. I didn't modify any of the header files but only modified main.c file. With main.c file, i got results but with main.xc file, it's not working.
What must i do to rectify these errors? I need to run main.xc file to measure correct values instead of using main.c file.
Thank You,
How to rectify errors(void* pointers must be declared as un
-
- Member++
- Posts: 17
- Joined: Fri Dec 26, 2014 4:41 pm
-
- Respected Member
- Posts: 275
- Joined: Fri Mar 12, 2010 6:03 pm
You could place your I/O functions in a separate XC file and call them from main.c.
The XMOS Programming Guide has more information on unsafe pointers.
http://www.xmos.com/published/xmos-programming-guide
The XMOS Programming Guide has more information on unsafe pointers.
http://www.xmos.com/published/xmos-programming-guide