Pumpkin User Forums
  Coding
  MsgQ - Weird error??

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   MsgQ - Weird error??
aek
Moderator
posted June 25, 2006 20:32     Click Here to See the Profile for aek     Edit/Delete Message   Reply w/Quote
See http://www.pumpkininc.com/content/doc/forms/salvoversions.pdf .

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

IP:

Code_Nerd
Junior Member
posted June 25, 2006 17:42     Click Here to See the Profile for Code_Nerd     Edit/Delete Message   Reply w/Quote
Is there any difference between the free and licenced versions of Salvo??

IP:

aek
Moderator
posted June 25, 2006 07:57     Click Here to See the Profile for aek     Edit/Delete Message   Reply w/Quote
Well, download the new ones and compare the dates ...

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

IP:

Code_Nerd
Junior Member
posted June 24, 2006 21:53     Click Here to See the Profile for Code_Nerd     Edit/Delete Message   Reply w/Quote
I couldnt tell what ones I am running? The libraries were obtained from my University...

IP:

aek
Moderator
posted June 24, 2006 20:31     Click Here to See the Profile for aek     Edit/Delete Message   Reply w/Quote
Are you using the new Salvo libraries for MPLAB v3.02 and higher, as per http://www.pumpkininc.com/salvo/lite/pic/3.2/versions.txt ?

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

IP:

Code_Nerd
Junior Member
posted June 24, 2006 18:40     Click Here to See the Profile for Code_Nerd     Edit/Delete Message   Reply w/Quote
LOL... I could have sworn I posted it up!!
quote:
Error - could not find definition of symbol 'BARGB1' in file 'msgq3.o'.

IP:

aek
Moderator
posted June 24, 2006 17:18     Click Here to See the Profile for aek     Edit/Delete Message   Reply w/Quote
What's the error?

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

IP:

Code_Nerd
Junior Member
posted June 24, 2006 03:56     Click Here to See the Profile for Code_Nerd     Edit/Delete Message   Reply w/Quote
I have encountered a weird error while trying to compile my code with MPLAB 7.32 and C18 3.02..
code:
#include <salvo.h>
#include <delays.h>

#define TASK_1_P OSTCBP(1)
#define TASK_2_P OSTCBP(2)

#define MSGQ_P OSECBP(1)
#define MSGQCB_P OSMQCBP(1)

#define SIZE_OF_MSGQ 10

OSgltypeMsgQP MsgQBuff[SIZE_OF_MSGQ];


void task1()
{
static unsigned char value[10];
unsigned char x;
OStypeMsgP msgP;
for(x = 0; x < 10; x++)
{
Delay10KTCYx(400);
value[x] = PORTB;
OSSignalMsgQ(MSGQ_P, (OStypeMsgP) &value[x]);
}
OS_Yield();
}

void task2()
{
unsigned char total = 0;
OStypeMsgP msgP;
while(!OSMsgQEmpty(MSGQ_P))
{
msgP = OSTryMsgQ(MSGQ_P);
total += *(unsigned char*)msgP;
}
PORTC = total;
OS_Yield();
}

void main()
{
OSInit();
OSCreateTask(task1, TASK_1_P, 1);
OSCreateTask(task2, TASK_2_P, 1);


OSCreateMsgQ(MSGQ_P, MSGQCB_P, MsgQBuff, SIZE_OF_MSGQ);

TRISB = 0xFF;
TRISC = 0x00;

for(;; )
OSSched();
}


Thankyou

[This message has been edited by Code_Nerd (edited June 24, 2006).]

IP:

All times are ET

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Pumpkin Home Page

2000-2008 Pumpkin, Inc. All Rights Reserved. Pumpkin and the Pumpkin logo, Salvo and the Salvo logo, The RTOS that runs in tiny places, CubeSat Kit and the CubeSat Kit logo are all trademarks of Pumpkin, Inc. All other trademarks are the properties of their respective owners.


Ultimate Bulletin Board 5.46a