Pumpkin, Inc.

Pumpkin User Forums

Limits of the Freeware Salvo Version

If you have a general question or comment regarding Salvo, post it here.

Limits of the Freeware Salvo Version

Postby Eduardo Robles » Thu Jan 10, 2002 4:18 am

Hi,

Can someone tell me what are the limits (No. of tasks, events, messages,...) of the Freeware Salvo version?
I am evaluating it before deciding to buy the full version, but I am getting funny behaviours on my system.

Thanks,

Eduardo

Eduardo Robles
 
Posts: 14
Joined: Mon Jun 18, 2001 11:00 pm
Location: Sao Paulo, SP, Brazil

Re: Limits of the Freeware Salvo Version

Postby Salvo Tech Support » Fri Jan 11, 2002 1:41 am

Glad to help!

------------------
-----------------------
Salvo Technical Support
Please request all tech support through the Forums.

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am

Re: Limits of the Freeware Salvo Version

Postby Salvo Tech Support » Fri Jan 11, 2002 8:15 am

Hello Eduardo.

The limits of Salvo Lite v2.2 are listed in the Libraries chapter of the User Manual. They are (for PIC16, PIC17 and PIC18):

4 tasks
5 events (sems, binsems, messages, message queues (max 1), event flags (max 1))

This means that you could have an application with

4 tasks and 5 binsems, or
4 tasks and 2 binsems and 3 sems, or
4 tasks and 4 messages and 1 message queue, or
4 tasks and 1 event flag and 1 message queue and 3 binsems

etc.

If you are having a specific problem, please don't hesitate to post it here -- we'll help you solve it.

------------------
-----------------------
Salvo Technical Support
Please request all tech support through the Forums.

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am

Re: Limits of the Freeware Salvo Version

Postby Eduardo Robles » Fri Jan 11, 2002 9:11 am

Hi,

Thanks for the answer.

Actually I am trying to run a 4 tasks project and 2 binsem. I am only getting 3 tasks running in spite of having 4 configured and created.
The salvocfg.h looks like this:

#define OSUSE_LIBRARY TRUE
#define OSLIBRARY_TYPE OSF
#define OSLIBRARY_CONFIG OSA
#define OSLIBRARY_VARIANT OSB

I know that the fourth task is ok because if I simply exchange the OSTCBP numbers, I stop one task and enable the other.

Can you help me to find my error?

Regards,

Eduardo

Eduardo Robles
 
Posts: 14
Joined: Mon Jun 18, 2001 11:00 pm
Location: Sao Paulo, SP, Brazil

Re: Limits of the Freeware Salvo Version

Postby Salvo Tech Support » Fri Jan 11, 2002 12:29 pm

Hi Eduardo.

Ah. The problem is that the fourth task is by default the idle task. If you check the return code on your "non-working' call to OSCreateTask(), you'll find that it's returning an error because the last spot (OSTCBP(4)) is taken by the idle task.

Please see this message for an explanation of how to override this in v2.2.

Alternatively, if all you need in the fourth task is an OS_Yield(), then you can put that code inside OSIdleHook(), and leave out the context switch.

Regards,

------------------
-----------------------
Salvo Technical Support
Please request all tech support through the Forums.

[This message has been edited by Salvo Tech Support (edited January 11, 2002).]

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am

Re: Limits of the Freeware Salvo Version

Postby Eduardo Robles » Fri Jan 11, 2002 12:54 pm

Ahhh!

Life is good and LED's are shining again (with my 4th task working fine).

Thanks!

Eduardo

Eduardo Robles
 
Posts: 14
Joined: Mon Jun 18, 2001 11:00 pm
Location: Sao Paulo, SP, Brazil


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest