unable to build code

rajeshece wrote on Monday, March 31, 2014:

hi

i had downloaded the free rtos code and i tried to build it .

but it shows error’s during compilation

source code location
//D:\Users\Vijay\Downloads\Programs\FreeRTOSV8.0.0\FreeRTOS\Demo\PIC18_MPLAB

i build rtosdemo1 project

I’ am using mplab ide V8.92
mplab c 18 compiler
C:\Program Files\Microchip\mplabc18\v3.46\bin\mcc18.exe

after building project
it shows error as following

D:\Users\Vijay\Downloads\Programs\FreeRTOSV8.0.0\FreeRTOS\Source\portable\MPLAB\PIC18F\port.c:651:Error [1105] symbol ‘T1_16BIT_RW’ has not been defined
D:\Users\Vijay\Downloads\Programs\FreeRTOSV8.0.0\FreeRTOS\Source\portable\MPLAB\PIC18F\port.c:651:Error [1105] symbol ‘T1_SOURCE_INT’ has not been defined
D:\Users\Vijay\Downloads\Programs\FreeRTOSV8.0.0\FreeRTOS\Source\portable\MPLAB\PIC18F\port.c:651:Error [1105] symbol ‘T1_PS_1_1’ has not been defined
D:\Users\Vijay\Downloads\Programs\FreeRTOSV8.0.0\FreeRTOS\Source\portable\MPLAB\PIC18F\port.c:651:Error [1105] symbol ‘T1_CCP1_T3_CCP2’ has not been defined
D:\Users\Vijay\Downloads\Programs\FreeRTOSV8.0.0\FreeRTOS\Source\portable\MPLAB\PIC18F\port.c:651:Warning [2058] call of function without prototype
Halting build on first failure as requested.

Debug build of project D:\Users\Vijay\Downloads\Programs\FreeRTOSV8.0.0\FreeRTOS\Demo\PIC18_MPLAB\rtosdemo1.mcp' failed. Language tool versions: mpasmwin.exe v5.50, mplink.exe v4.48, mcc18.exe v3.46, mplib.exe v4.48 Preprocessor symbol __DEBUG’ is defined.
Mon Mar 31 17:06:16 2014

BUILD FAILED

please help me to solve the problem

Regards
Rajesh

rtel wrote on Monday, March 31, 2014:

Building the PIC18 port was tested when V8 was released, although the resultant code not executed. It may be that you are getting this error because you are using a different compiler version - however the problem looks related to the header files rather than the compiler itself. Did you change the part number the build is targeting? You could try just defining the missing constants yourself.

However, the PIC18 port is de-emphasised, and I think the website says its use is not recommended. This is because the architecture of the chip is not compatible with multitasking systems and it’s compiler does not generate re-entrant code. So if the port is broken, to be honest it is highly unlikely it will get fixed. More likely it will just be retired.

Regards.

rajeshece wrote on Wednesday, April 02, 2014:

Hi sir ,
it was working but function OpenTimer1( T1_16BIT_RW & T1_SOURCE_INT & T1_PS_1_1 & T1_CCP1_T3_CCP2 );

was not defined any where , then i’ dont know how program was became build successful?

whether i need to define it in application program?

thank you
Regards
Rajesh

tlafleur wrote on Wednesday, April 02, 2014:

OpenTimer1 is a Microchip library function, not part of FreeRTOS… If you can’t find it, it’s just a very small amount of code to setup the PIC timer1…read the Data sheet on how to program timer1 for a tick interrupt.

i~~ _/) _/) _/) ``` _/) ~~i

Tom Lafleur
(858) 759-9692

On Apr 2, 2014, at 6:41 AM, “Rajesh” rajeshece@users.sf.net wrote:

Hi sir ,
it was working but function OpenTimer1( T1_16BIT_RW & T1_SOURCE_INT & T1_PS_1_1 & T1_CCP1_T3_CCP2 );

was not defined any where , then i’ dont know how program was became build successful?

whether i need to define it in application program?

thank you
Regards
Rajesh

unable to build code

Sent from sourceforge.net because you indicated interest in SourceForge.net: Log In to SourceForge.net

To unsubscribe from further messages, please visit SourceForge.net: Log In to SourceForge.net