Which Portmacro.h Should Be Used For Running CORTEX_A9_Zynq_ZC702

freertos90 wrote on Tuesday, April 25, 2017:

Hello;
I am needing portmacro.h But there so many portmacro.h in freertos Which file shoul I use?
On the other hand I tried this portmacro.h :Source\portable\owatcom\16bitdos\pc\portmacro.h
But now I have this error:

Description	Resource	Path	Location	Type
'nop' undeclared (first use in this function)	portmacro.h	/osiloskop/src	line 141	C/C++ Problem

Description	Resource	Path	Location	Type
expected ';' before '}' token	portmacro.h	/osiloskop/src	line 141	C/C++ Problem

Description	Resource	Path	Location	Type
expected '(' before '{' token	portmacro.h	/osiloskop/src	line 141	C/C++ Problem

rtel wrote on Tuesday, April 25, 2017:

That depends on the compiler you are using. The easiest thing to do
though is use the pre-configured project we provide as that will already
be using the correct portmacro.h file. Alternatively get the Xilinx SDK
to generate a FreeRTOS project for you, as that too will use the correct
portmacro.h file.

The directory structure is described on this link:
http://www.freertos.org/a00017.html - from which you will see that you
have included a portmacro.h file intended for use with the Open Watcom
x86 compiler.

If you are using GCC then you will need the file from
FreeRTOS/Source/portable/GCC/ARM_CA9 (Cortex-A9).

freertos90 wrote on Tuesday, April 25, 2017:

Thak you I replaced with FreeRTOS/Source/portable/GCC/ARM_CA9 (Cortex-A9).
And I use this code :
https://www.google.com.tr/#q=+XPAR_GPIO_TRIGGER_CONTROL_DEVICE_ID

But I have this error:

Description	Resource	Path	Location	Type
'XPAR_ENCODER_BTN_GPIO_DEVICE_ID' undeclared (first use in this function)	mem_control.c	/osiloskop/src	line 199	C/C++ Problem

Description	Resource	Path	Location	Type
'XPAR_GPIO_TRIGGER_CONTROL_DEVICE_ID' undeclared (first use in this function)	mem_control.c	/osiloskop/src	line 56	C/C++ Problem

Description	Resource	Path	Location	Type
'XPAR_GPIO_TRIGGER_SETTINGS_DEVICE_ID' undeclared (first use in this function)	mem_control.c	/osiloskop/src	line 73	C/C++ Problem

Description	Resource	Path	Location	Type
'XPAR_SCREEN_BUFFER_GPIO_DEVICE_ID' undeclared (first use in this function)	mem_control.c	/osiloskop/src	line 88	C/C++ Problem

I cant understand this error I added this codes http://www.instructables.com/id/Digital-Oscilloscope-using-Digilent-Zybo-Board/#step5
???

rtel wrote on Tuesday, April 25, 2017:

I’m afraid we cannot support other peoples code, only code we provide
ourselves. We can support code from the FreeRTOS download, the FreeRTOS
Labs download (if you want Ethernet and SD card support), or generated
by the Xilinx SDK. Instructions for using our code can be located on
the FreeRTOS.org website.

freertos90 wrote on Tuesday, April 25, 2017:

I have already downloaded freetos and I am using freertos cortex a9 demo but just I add a code