[PicForth] problem with priotasker.fs

David McNab david at rebirthing.co.nz
Thu Dec 2 02:07:23 CET 2004


Hi,

I'm having trouble compiling progs using priotasker.fs

To simplify things, I tried the following example (adapted from 
taskexample.fs, changing it from using multitasker.fs to priotasker.fs):

   include priotasker.fs

   1 pin-b led1
   2 pin-b led2

   1 task task.foo
   : foo ( -- ) led1 toggle ;

   1 task task.bar
   : bar ( -- ) led2 toggle ;

   \ Main program
   main : main ( -- )
     $f9 trisb !
     multitasker
   ;

   \ Configuration
   fosc-hs set-fosc    \ High-speed oscillator

The example fails to compile, complaining about 'invalid memory address' 
at the 'multitasker' statement.

Am I doing something wrong, or is priotasker broken with latest PicForth?

-- 
Cheers
David


More information about the PicForth mailing list