Re: [Flashforth-devel] Turnkey issues on restart not remembering
Brought to you by:
oh2aun
From: Mikael N. <mik...@pp...> - 2014-05-08 19:27:49
|
Simon, Does it failafter turnkey definition immediately in the first warm start ? Otherwise I cannot think about any reason except that your application corrupts the turnkey. One typical error scenario is return stack overflow which will write crap into the bottom of the parameter stack. Thus causing unexpected behaviour. Multitasking gives you more opportunities to overflow the return stack. Once in each task. The PIC HW return stack is written to the user area in PAUSE even if you only run the operator task. Defining SKIP_MULTITASKING before you compile FF excludes this copying. You could also increase the RETURN_STACK_SAVE_SIZE to d'62'. It is a bit on the small side in the FF3.8 ! ; Max size is d'62' #define RETURN_STACK_SAVE_SIZE d'30' ; 15 cells return stack save area BR Mike |