Another MSCP ICD question
Hi All,
Just started playing with the ICD and due to the size of the program and the extra instructions added by the ICD process I decided to restrict the amount of code that was debugged.
The first time I tried I got the following error
ICD Address Mismatch
MicroCode Studio is unable to run the ICD because the microcontroller is communicating different address information from those contained in the debug files.
To correct this problem, simply rebuild your project using either ICD Compile or ICD Compile and Program and then re-program you microcontroller.
Am I correct in thinking that if the section of code beign debugged includes a Gosub then the subroutine also needs to be enabled for debugging eg
ENABLE DEBUG
For x = 1 to 5
Wibble = y + 5
Next
DISABLE DEBUG
will be OK but
......
ENABLE DEBUG
For x = 1 to 5
Gosub UpdateWibble
Next
DISABLE DEBUG
......
UpdateWibble:
Wibble = y + 5
return
......
would fail unless the subroutine was written as
ENABLE DEBUG
UpdateWibble:
Wibble = y + 5
return
DISABLE DEBUG
because when the PIC jumps into the the subroutine the debugger has no knowledge of the code that it is running.
Keith
www.diyha.co.uk
www.kat5.tv
Bookmarks