gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: Re: In-Circuit debugger and linux... ?
From: Ralf Forsberg
Date: Sat, 17 May 2003 19:57:13 +0200

On Sat, May 17, 2003 at 04:20:40AM -0400, Jesse Lackey wrote:
> Hello all,
> 
> After doin several projects of moderate scale using the linux CCS C18 
> compiler with "printf" style debugging, I'm very ready to take the leap 
> to a toolchain where I can set breakpoints, single step, and examine 
> variables (at source level) while running on the target hardware.  The 
> microchip ICD2 is $159; can this be used in any fashion with linux? 

I don't think so? But the ICD1 should work, though I haven't used it a
lot. If you have an ICD1 then download latest gpsim and try it. Adding
-d /dev/ttyS0 should be enough. (I don't think it has been used much,
so there are probably still issues to be worked out)


> The CCS C18 produces .COD and .SYM files and can be integrated into 
> MPLAB (er, the windows version of C18 anyway) so I think I can get the 
> symbol data I need.

I have no idea if gpsim can make use of those files. JAL and sdcc
can probably work with some changes (adding a NOP as first address).
Then you'd get high level source browsing. However, only one-byte
data types is supported in gpsim. (I.e, a 16-bit integer shows up as
two separate bytes in gpsim.)

 / Ralf


gnupic@linuxhacker.org