Page 1 of 1

Code Explorer pane stops updating

Posted: Wed Sep 24, 2014 1:49 pm
by Jerry Messina
I noticed that if the IDE Code Explorer ever sees a divide by 0 exception then it quits updating and you have to close/reopen the IDE to get it working again.

In the following, while editing BUSFREQ if it's ever = 0 then updates to the explorer pane stop. If the division is protected with a test, then it continues to work

Code: Select all

clock = 20

#option BUSFREQ = 1200              // <<<<< EDIT THIS VALUE
#define _FCY = _clock*1000000/4

// this check is so the IDE never sees divide by 0 while editing BUSFREQ
// without this test, if BUSFREQ is set to 0 while editing it then the
// Code Explorer stops updating until the IDE is closed and re-opened
'#if (BUSFREQ > 0)
  #define _HALF_PERIOD = (_FCY/(2*BUSFREQ))
'#endif  // (BUSFREQ > 0)

// create the timer constants from the '#defines'
const HALF_PERIOD as word = _HALF_PERIOD

Re: Code Explorer pane stops updating

Posted: Mon Nov 03, 2014 11:36 am
by David Barker
I've fixed this for the next update

Re: Code Explorer pane stops updating

Posted: Sun Nov 09, 2014 8:15 pm
by David Barker
A new compiler update is available to download. Click here

http://sfcompiler.co.uk/phpBB3/viewtopic.php?f=1&t=1900

for more information.