convert the freertos pic18f452 to pic18f4550

Status
Not open for further replies.

KingiS

Newbie level 1
Joined
Dec 10, 2007
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,290
freertos pic18f4550

recently i'm learning the freertos and already the demo source code(use the pic18f452 microchip) from www.freertos.org
and i'm now wanna convert the pic18f452 to pic18f4550.
but i face the problem..


p/s:i just want to use the freertos to blink my led as my 1st task..=.=
 

pdtask_code error on freertos

Hi KingiS,
What is the problem you are facing? Could you explain in more detail?

Regards,
vhn
 

free rtos pic18f

HI,

we also facing the same problem. when we try to convert and compile the FreeRTOS in pic18f4550 (using mplab ide + microchip c18 compiler) , it failed the compilation


the output shows below


Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 /i"F:\FreeRTOSV4.6.1\FreeRTOS\Demo\Common\include" -I"F:\FreeRTOSV4.6.1\FreeRTOS\Demo\PIC18_MPLAB" -I"F:\FreeRTOSV4.6.1\FreeRTOS\Source\include" "integer.c" -fo="integer.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
F:\FreeRTOSV4.6.1\FreeRTOS\Source\include\portable.h:222:Error: syntax error
Halting build on first failure as requested.
BUILD FAILED: Wed Dec 19 10:47:10 2007

i checked the portable.h file it shows the following area contain the error

/*
* 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 );


any help on this matter would be greatly appreciated.

Thanks in advance,
Rajesh G Nair
 

Re: free rtos pic18f

Hi,
I have remove all errors and compiled the code.Still not running in the micro controller(18F4550).
If we try simultaneously, then possibly we can solve the matter.I am attaching my code.My code
May be helpful for you all.

"Path:C:\FreeRTOS\Demo\PIC18_MPLAB"
Please repost the code if run.
=================================================================
----------------------------------------------------------------------
Debug build of project `C:\FreeRTOS\Demo\PIC18_MPLAB\rtosdemo3.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Thu Mar 17 16:40:05 2011
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\FreeRTOS\Demo\Common\Minimal\comtest.o".
Clean: Deleted file "C:\FreeRTOS\Demo\Common\Minimal\integer.o".
Clean: Deleted file "C:\FreeRTOS\Demo\PIC18_MPLAB\main3.o".
Clean: Deleted file "C:\FreeRTOS\Demo\PIC18_MPLAB\ParTest\ParTest.o".
Clean: Deleted file "C:\FreeRTOS\Demo\PIC18_MPLAB\serial\serial.o".
Clean: Deleted file "C:\FreeRTOS\Source\list.o".
Clean: Deleted file "C:\FreeRTOS\Source\portable\MemMang\heap_1.o".
Clean: Deleted file "C:\FreeRTOS\Source\portable\MPLAB\PIC18F\port.o".
Clean: Deleted file "C:\FreeRTOS\Source\queue.o".
Clean: Deleted file "C:\FreeRTOS\Source\tasks.o".
Clean: Deleted file "C:\FreeRTOS\Demo\PIC18_MPLAB\rtosdemo3.cof".
Clean: Deleted file "C:\FreeRTOS\Demo\PIC18_MPLAB\rtosdemo3.hex".
Clean: Done.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 "comtest.c" -fo="comtest.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 "integer.c" -fo="integer.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 "main3.c" -fo="main3.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 "ParTest.c" -fo="ParTest.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 "serial.c" -fo="serial.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 "list.c" -fo="list.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\FreeRTOS\Source\list.c:68:Warning [2066] type qualifier mismatch in assignment
C:\FreeRTOS\Source\list.c:76:Warning [2066] type qualifier mismatch in assignment
C:\FreeRTOS\Source\list.c:77:Warning [2066] type qualifier mismatch in assignment
C:\FreeRTOS\Source\list.c:150:Warning [2066] type qualifier mismatch in assignment

Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 "heap_1.c" -fo="heap_1.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 "port.c" -fo="port.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 "queue.c" -fo="queue.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 "tasks.c" -fo="tasks.o" -D__DEBUG --extended -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\FreeRTOS\Source\tasks.c:446:Warning [2066] type qualifier mismatch in assignment
Executing: "C:\MCC18\bin\mplink.exe" /l"C:\MCC18\lib" "18f4550_e.lkr" "..\Common\Minimal\comtest.o" "..\Common\Minimal\integer.o" "main3.o" "ParTest\ParTest.o" "serial\serial.o" "..\..\Source\list.o" "..\..\Source\portable\MemMang\heap_1.o" "..\..\Source\portable\MPLAB\PIC18F\port.o" "..\..\Source\queue.o" "..\..\Source\tasks.o" /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"rtosdemo3.cof" /M"rtosdemo3.map" /W
MPLINK 4.15, Linker
Copyright (c) 2007 Microchip Technology Inc.
Errors : 0

MP2HEX 4.15, COFF to HEX File Converter
Copyright (c) 2007 Microchip Technology Inc.
Errors : 0

Loaded C:\FreeRTOS\Demo\PIC18_MPLAB\rtosdemo3.cof.
----------------------------------------------------------------------
Debug build of project `C:\FreeRTOS\Demo\PIC18_MPLAB\rtosdemo3.mcp' succeeded.
Preprocessor symbol `__DEBUG' is defined.
Thu Mar 17 16:40:12 2011
----------------------------------------------------------------------
BUILD SUCCEEDED
=================================================================
mail:rfkfun@gmail.com
Rfkfun
 

Attachments

  • FreeRTOS.7z
    266.7 KB · Views: 121
Last edited:

Re: free rtos pic18f

Anyone Please update this topic!!! All guy are you there?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…