Re: [Flashforth-devel] execute word from interpret and stack
Brought to you by:
oh2aun
From: Mikael N. <mik...@pp...> - 2013-04-20 15:14:46
|
The problem is that that the return stack save buffer is too small (15 cells). The TYPE in OK executes PAUSE which writes the HW return stack to the user area return stack buffer, which overflows to the beginning of the parameter stack. If you change in p18f-main.cfg: #define RETURN_STACK_SAVE_SIZE d'30' ; 15 cells return stack save area to #define RETURN_STACK_SAVE_SIZE d'62' ; 31 cells return stack save area Have not tried it, but I think this should fix your problem. Mikael On Sat, 2013-04-20 at 17:59 +0300, Mikael Nordman wrote: > Finally I had some time to look at this problem. > > Your code works well on the PIC24 FF4.8 so it seems to be fault in the > FF3.8 for PIC18. > > I will check it further. > > BR Mikael > > > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Flashforth-devel mailing list > Fla...@li... > https://lists.sourceforge.net/lists/listinfo/flashforth-devel |