Pumpkin, Inc.

Pumpkin User Forums

Problem with tutorials!!!

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

Problem with tutorials!!!

Postby aek » Thu Oct 02, 2003 1:06 am

Hello.

Sounds like you've modified tu5.

See the RM-PICC manual (http://www.pumpkininc.com/content/doc/manual/rm-picc.pdf) under "Multiple Callgraph Issues"

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

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

Re: Problem with tutorials!!!

Postby gogobravo » Thu Oct 02, 2003 1:26 am

Hi,
I have a problem with linking the salvo/tut/tu5 source for 17C756A.

The Linker outs a message:
Error[000] : function _OSCreateSem is not called from specified interrupt level
Error[000] : function _OSSignalSem is not called from specified interrupt level

I tried with #pragma interrupt_level but the things went worse.
Does anybody have some suggestions?

gogobravo
 
Posts: 2
Joined: Wed Oct 01, 2003 11:00 pm
Location: Sofia, Bulgaria

Re: Problem with tutorials!!!

Postby gogobravo » Fri Oct 03, 2003 12:02 am

The build is OK now!!!
Thanks,
but one problem still persist!!! OS_Delay(); is not working...It passes only once.
I put a breakpoint (I have ICE2000) but...it stops only once on OS_Delay(); on task creation...
gogobravo
 
Posts: 2
Joined: Wed Oct 01, 2003 11:00 pm
Location: Sofia, Bulgaria

Re: Problem with tutorials!!!

Postby aek » Fri Oct 03, 2003 6:08 am

For OS_Delay() to work, you need to have OSTimer() called from an ISR. Those tutorials assume that you have three symbols defined:

SYSA
MAKE_WITH_FREE_LIB
USE_INTERRUPTS

If you don't define USE_INTERRUPTS, it doesn't enable the code in isr.c to call OSTimer(). You can still successfully compile, but it won't run properly. Also, you can successfully compile without adding isr.c to the project, but it also won't run.

So, for it to work, you must define those three symbols above AND you must include isr.c.

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

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