Pumpkin, Inc.

Pumpkin User Forums

sending Salvo out of orbit

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®).

sending Salvo out of orbit

Postby kamyip » Tue Aug 03, 2004 1:07 am

Hi Andrew,

I noticed that if I accidentally forgot to define my variable as static in a Salvo task, there are incident that Slavo will just crash and hang ie "unsigned char cTest" instead of "static unsigned char cTest".

Any idea how this could happen?

Over2u :-)

kamyip
 
Posts: 46
Joined: Mon Apr 15, 2002 11:00 pm

Re: sending Salvo out of orbit

Postby kamyip » Tue Aug 03, 2004 4:42 am

what about those local variables that I used on my functions and subroutines, do I need to convert them to static too? These functions got call frequenctly by Salvo tasks.
kamyip
 
Posts: 46
Joined: Mon Apr 15, 2002 11:00 pm

Re: sending Salvo out of orbit

Postby aek » Tue Aug 03, 2004 6:04 am

There are no restrictions on called functions in any Salvo distributions ... if there were, standard libraries wouldn't work, etc.

So you're fine with all of your own functions having static or auto variables, etc.

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

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

Re: sending Salvo out of orbit

Postby aek » Tue Aug 03, 2004 8:22 am

See SB-24.

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

-------
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 2 guests

cron