Error with MPLAB 7.52 and C18 3.10

In compiling withe Mplab 7.52 and C18 ver 3.10 I get these errors: Executing: "C:MCC18binmcc18.exe" -p=18F452  /i"c:mcc18h" -I"C:FreeRTOSDemoCommoninclude" -I"C:FreeRTOSSourceinclude" -I"C:FreeRTOSSourceportableMPLABPIC18F" -I"C:FreeRTOSDemoPIC18_MPLAB" "tasks.c" -fo="tasks.o" -k -Oi -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- C:FreeRTOSSourceincludeportable.h:184:Error: syntax error here is the offending code: /* * Setup the stack of a new task so it is ready to be placed under the * scheduler control.  The registers have to be placed on the stack in * the order that the port expects to find them. */ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters ); also: Executing: "C:MCC18binmcc18.exe" -p=18F452  /i"c:mcc18h" -I"C:FreeRTOSDemoCommoninclude" -I"C:FreeRTOSSourceinclude" -I"C:FreeRTOSSourceportableMPLABPIC18F" -I"C:FreeRTOSDemoPIC18_MPLAB" "heap_1.c" -fo="heap_1.o" -k -Oi -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- C:FreeRTOSSourceportableMemMangheap_1.c:73:Error [1099] "Invalid portBYTE_ALIGNMENT definition" #ifndef heapBYTE_ALIGNMENT_MASK     #error "Invalid portBYTE_ALIGNMENT definition" #endif did I miss some compile options?? tom lafleur

Error with MPLAB 7.52 and C18 3.10

Looks like you are missing the preprocessor definition "MPLAB_PIC18F_PORT".  Look in portable.h to see how it is used.  This is defined in the demo application project.  Have you changed the project settings at all?

Error with MPLAB 7.52 and C18 3.10

I built a new project, was unable to import the project with the demo .. I will look for the files…  thanks…

Error with MPLAB 7.52 and C18 3.10

I loaded the demo MPLAB files and discovered that there are compile switched and project settings that need to be set… so it now compiles and runs with a few minor warning on type casting… Thanks for your help a few like this…. C:FreeRTOSSourcelist.c:94:Warning [2066] type qualifier mismatch in assignment C:FreeRTOSDemoPIC18_MPLABserialserial.c:186:Warning [2074] location PRODH specified in the interrupt save list is redundant

Error with MPLAB 7.52 and C18 3.10

I am facing the same problem.it is as follows:- Executing: "C:MCC18binmcc18.exe" -p=18F452 /i"c:mcc18h" -I"C:FreeRTOSDemoCommoninclude" -I"C:FreeRTOSSourceinclude" -I"C:FreeRTOSSourceportableMPLABPIC18F" -I"C:FreeRTOSDemoPIC18_MPLAB" "tasks.c" -fo="tasks.o" -k -Oi -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- C:FreeRTOSSourceincludeportable.h:184:Error: syntax error here is the offending code: /* * Setup the stack of a new task so it is ready to be placed under the * scheduler control. The registers have to be placed on the stack in * the order that the port expects to find them. */ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters ); please help me.How you over come your problem. thanks in advance

Error with MPLAB 7.52 and C18 3.10

You must have MPLAB_PIC18F_PORT defined. This should be defined in the MPLAB project. Have you changed the project at all? To be sure you can add the line #define MPLAB_PIC18F_PORT to the top of sourceincludeportable.h. This should fix the problem but does not explain why you would get the problem in the first place if you are using an unmodified demo project file.

Error with MPLAB 7.52 and C18 3.10

No till now i have’nt changed the project.i choosed the device p18c452.i defined "#define MPLAB_PIC18F_PORT" in portable.h at the bigening.but it is throwing another errors.I will tell you i am new in rtos so please help me out step by step. thanks in advance.

Error with MPLAB 7.52 and C18 3.10

when i defined "#define MPLAB_PIC18F_PORT" in portable.h the all the error throwing as follows:- Executing: "C:MCC18binmcc18.exe" -p=18C252 "ParTestParTest.c" -fo="ParTest.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- MPLAB C18 v3.16 (demo) Copyright 1999-2005 Microchip Technology Inc. Days remaining until demo becomes feature limited:  60 D:devFreeRTOSDemoPICParTestParTest.c:60:Error [1105] symbol ‘TRISDbits’ has not been defined D:devFreeRTOSDemoPICParTestParTest.c:60:Error [1151] struct or union object designator expected D:devFreeRTOSDemoPICParTestParTest.c:60:Error [1101] lvalue required D:devFreeRTOSDemoPICParTestParTest.c:61:Error [1105] symbol ‘TRISDbits’ has not been defined D:devFreeRTOSDemoPICParTestParTest.c:61:Error [1151] struct or union object designator expected D:devFreeRTOSDemoPICParTestParTest.c:61:Error [1101] lvalue required D:devFreeRTOSDemoPICParTestParTest.c:62:Error [1105] symbol ‘TRISDbits’ has not been defined D:devFreeRTOSDemoPICParTestParTest.c:62:Error [1151] struct or union object designator expected D:devFreeRTOSDemoPICParTestParTest.c:62:Error [1101] lvalue required D:devFreeRTOSDemoPICParTestParTest.c:63:Error [1105] symbol ‘TRISDbits’ has not been defined D:devFreeRTOSDemoPICParTestParTest.c:63:Error [1151] struct or union object designator expected D:devFreeRTOSDemoPICParTestParTest.c:63:Error [1101] lvalue required D:devFreeRTOSDemoPICParTestParTest.c:66:Error [1105] symbol ‘PORTDbits’ has not been defined D:devFreeRTOSDemoPICParTestParTest.c:66:Error [1151] struct or union object designator expected D:devFreeRTOSDemoPICParTestParTest.c:66:Error [1101] lvalue required D:devFreeRTOSDemoPICParTestParTest.c:67:Error [1105] symbol ‘PORTDbits’ has not been defined D:devFreeRTOSDemoPICParTestParTest.c:67:Error [1151] struct or union object designator expected D:devFreeRTOSDemoPICParTestParTest.c:67:Error [1101] lvalue required D:devFreeRTOSDemoPICParTestParTest.c:68:Error [1105] symbol ‘PORTDbits’ has not been defined D:devFreeRTOSDemoPICParTestParTest.c:68:Error [1151] struct or union object designator expected D:devFreeRTOSDemoPICParTestParTest.c:68:Error [1101] lvalue required D:devFreeRTOSDemoPICParTestParTest.c:69:Error [1105] symbol ‘PORTDbits’ has not been defined D:devFreeRTOSDemoPICParTestParTest.c:69:Error [1151] struct or union object designator expected D:devFreeRTOSDemoPICParTestParTest.c:69:Error [1101] lvalue required D:devFreeRTOSDemoPICParTestParTest.c:73:Error [1105] symbol ‘TRISEbits’ has not been defined i know it is very little mistake but please help me out. thanks

Error with MPLAB 7.52 and C18 3.10

now that problem is solved.but i m getting one another error. "Error – section ‘.udata_portheap.o’ can not fit the section. Section ‘.udata_portheap.o’ length=0x00000476 " how can i over come it. regards

Error with MPLAB 7.52 and C18 3.10

It sounds like you have lost all the project settings.  I would guess that you opened the project directly rather than opening the workspace.  The workspace should have three projects within it.  Sometime MPLAB requires you to set an option to permit multiple projects within a workspace. Anyway – can you confirm that you opened the "Workspace" as per the instructions, not a project. The error you are getting now is because the linker is using an incorrect linker script.  It should be using the one from the FreeRTOS.org directory, not the one from the MPLAB installation directory. Regards.

Error with MPLAB 7.52 and C18 3.10

But it generates all the object files and it is successfully converted to hex by using mp2hex command separetlly.what is happening.i am not able to understand.