Thanks for the input but as mentioned above I need to be able to flash the PIC via serialports on a headless machine (i.e CLI only) running Debian. I have PICKit2 and 3 but doesn't solve this problem and MPLABX requires X to run.
I do this with AVR's using avrdude and it works great and was hoping to find a simlilar working "picdude" sofware. Preferable in plain C since flash space is very limited so trying to avoid heavy packages like Phyton/Perl etc.
Last night I found C code for a CLI program (written by Joseph Heenan) but unfortunately it does not work! It compiles OK on Debian (armel) but fails to detect the PIC18F2620 running Tiny Bootloader, same HW works in Windows when I try it there using tinybldWin.exe.
Anyone have this working on Linux?http://code.google.com/p/pic-bootloaders/downloads/list
Anyone recommending a good bootloader for PIC16F/PIC18F with working Linux software?
I've been testing the Tiny Bootloader and it works great to download new HEX-files on Windows but trying to find a working Linux software have been proving to be hard. Piklab supports Tiny Bootloader but have problems compiling/running on headless machines (relies on KDE) and when testing the Windows build of piklab-prog it's slow as hell, takes ~30 second before it finds the PIC and starts downloading anything...
Are there anything that works as good as OptiBoot and avrdude for the PIC?
Where exactly did you mention needing to use the serial port in your original post?
Kinda frustrating to offer help when you don't even ask the right question!