Pumpkin, Inc.

Pumpkin User Forums

Help me to compile RTOS!!

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

Help me to compile RTOS!!

Postby dvnccbmacbt » Tue Oct 21, 2008 5:42 am

I've just install MPLABv8.15 , HTPIC Pro 9.60, HT Salvo lite. Now i want compiling a progam with Salvo RTOS but i don't know how to do it. I don't know how to configure a RTOS with Salvo. I don't know how to use the header file "salvo.h" "salvocfg.h" . This is my error : Error [141] C:Documents and SettingsAdministratorDesktop hutaoprojetrtos tos.c; 4.17 can't open include file "salvo.h": No such file or directory.

I read manual and help file but i don't understand clearly.

Can you give me a help, a basis step to compile a RTOS with salvo? Thank you very much.

[This message has been edited by dvnccbmacbt (edited October 21, 2008).]

dvnccbmacbt
 
Posts: 4
Joined: Mon Oct 20, 2008 11:00 pm

Re: Help me to compile RTOS!!

Postby dvnccbmacbt » Wed Oct 22, 2008 6:13 am

thank you very much for you help! I compiled successfull. But now I have another problem.

This is my code

code:

#include<pic.h>
__CONFIG(HS & PWRTEN & BOREN & LVPDIS & WDTDIS );

#include "salvo.h"


//================================================================


//================================================================
void task1(void);
void task2(void);
void task3(void);
void task4(void);
//===============================================================

_OSLabel(Task11)
_OSLabel(Task21)
_OSLabel(Task31)
_OSLabel(Task41)

//================================================================

void Task1 (void)
{

}

//================================================================

void Task2 (void)
{

}

//================================================================

void Task3 (void)
{

}

//================================================================

void Task4 (void)
{

}

void main(void){

OSInit();

OSCreateTask(Task1, OSTCBP(1), 0);
OSCreateTask(Task2, OSTCBP(2), 1);
OSCreateTask(Task3, OSTCBP(3), 2);
OSCreateTask(Task4, OSTCBP(4), 3);
for (;
OSSched();

}


when I compile, I get this error:

code:

Error [800] C:DOCUME~1ADMINI~1LOCALS~1Temps328.; 110. undefined symbol "fpbase"
Error [800] C:DOCUME~1ADMINI~1LOCALS~1Temps328.; 110. undefined symbol "fp__Task1"
Error [800] C:DOCUME~1ADMINI~1LOCALS~1Temps328.; 131. undefined symbol "fp__Task2"
Error [800] C:DOCUME~1ADMINI~1LOCALS~1Temps328.; 154. undefined symbol "fp__Task3"
Error [800] C:DOCUME~1ADMINI~1LOCALS~1Temps328.; 177. undefined symbol "fp__Task4"

I don't understand this error and so i don't know how to solve it. Help me, please!
Thank you very much.

[This message has been edited by dvnccbmacbt (edited October 22, 2008).]

dvnccbmacbt
 
Posts: 4
Joined: Mon Oct 20, 2008 11:00 pm

Re: Help me to compile RTOS!!

Postby aek » Wed Oct 22, 2008 6:18 am

"fp_XXX" probably means function pointer XXX.

Put a proper OS_Yield(label); in each task, using the label names that you defined with _OSLabel() .. that might fix it.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Help me to compile RTOS!!

Postby dvnccbmacbt » Wed Oct 22, 2008 7:02 am

thank you for your help. i solved this problem. but there are another error:
[img] http://img338.imageshack.us/img338/2246/screenhunter01oct230957ib6.gif
[/img]
There are problem with cgpic.exe.
i try installing mplab, HTPIC, salvo to another computer, reinstalling MPLAB 7.5 but i can't solve it. Help me, please. thank you very much!

[This message has been edited by dvnccbmacbt (edited October 22, 2008).]

[This message has been edited by dvnccbmacbt (edited October 22, 2008).]

dvnccbmacbt
 
Posts: 4
Joined: Mon Oct 20, 2008 11:00 pm

Re: Help me to compile RTOS!!

Postby aek » Wed Oct 22, 2008 8:56 am

Salvo is not yet compatible with the Pro line if HI-TECH's compilers.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Help me to compile RTOS!!

Postby dvnccbmacbt » Wed Oct 22, 2008 9:10 am

i've just reinstall Hi-TechPIC in lite mode. but I still cann't compile my progam with salvo.
Can you give me some advice clearer?
Thank you very much!
dvnccbmacbt
 
Posts: 4
Joined: Mon Oct 20, 2008 11:00 pm

Re: Help me to compile RTOS!!

Postby aek » Wed Oct 22, 2008 9:20 am

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 1 guest