On Sat, Feb 18, 2006 at 03:44:42AM +0530, palam.c wrote: I'm a Linux user, I use picp to talk to my programmer, SDCC to do my compiling, and my over-taxed brain to do my debugging. :) > I just started to work in PIC 18Fx three months back. > Eventhough I love to use Linux , I directly started using > MPLAB since it is official IDE. Now i like to move to linux. > > I am using C18 compiler now. Is there any documention > how to convert C18 code to make it work on Linux compilers? Never done anything with C18 myself, I'd just try to compile it, and fix what makes error messages. It's all C, so it should be fairly similar. > I found few ICD programmers on linux , > Is there any debuggers available in Linux ? Sadly not. There are some software emulators, but quite frankly they are crap. I wouldn't waste your time with them, unless you want to do some programming of them yourself. > If debuggers are not available , Is there any indirect > debugging techniques available ? How you are > debugging now in linux ? One of the easiest methods is to setup the rs232 port in your application and use printf's directed to it. Then I normally use the socat program to hook up to the serial port and display debugging output. This can cause timing glitches in the program, the print to rs232 takes a lot of cycles to perform, but it can display a lot of info about what your program is doing. It's just like adding printf statements in normal programming. On smaller PICs I often use a special routine in assembler that bit-bangs bytes out using two IO lines, one for the clock, one for the bits. Essentially I make a synchronous serial output. Then I use my logic analyser to see what is happening. This is more annoying to use, but is fast and has less of an effect on timing. All in all, I'd kill for a proper real-time transparent hardware emulator running on Linux... Anyone want a first-born child? I'd like to have kids in a few more years time... -- pete@petertodd.ca http://www.petertodd.ca -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist