View previous topic :: View next topic |
Author |
Message |
flemse
Joined: 19 Feb 2008 Posts: 5
|
How do you program and run your code? |
Posted: Tue Feb 19, 2008 9:54 am |
|
|
Hi
I have a self made burner http://www.janson-soft.de/pic/pic.htm and it’s work.
Than I have a prototype board self made, and it’s work!
But the trivial and problematic thing is:
1) Every time the code must be tested I move the pic to the burner and burn it.
2) Thereafter I move the pic to the prototype board and try it out.
Is there some smarter but cheap suggestion?
Flemming
Last edited by flemse on Tue Feb 19, 2008 10:50 am; edited 1 time in total |
|
|
Bob Sacamano
Joined: 17 Jan 2008 Posts: 16 Location: Somewhere Cold, USA
|
|
|
meereck
Joined: 09 Nov 2006 Posts: 173
|
|
Posted: Tue Feb 19, 2008 1:33 pm |
|
|
in the case you use a pic which supports self-write, you can generally use a bootloader.
The bootloader allows you to flash the pic program and eeprom memory over a PIC's peripherals such as RS-232, RS-485, CAN, USB, Ethernet.
You flash the PIC with the bootloader firmware (obviously, you need a PIC programmer) and after that, you dont need any programmer, you just flash the pic with the help of the bootloader which is already in the PIC.
My favorite one is tiny bootloader which works via RS-232. See http://www.etc.ugal.ro/cchiculita/software/picbootloader.htm
I have also tried Microchip USB bootloader which also worked well for me - for instance, this link : http://pic18fusb.online.fr/wiki/wikka.php?wakka=UsbBootload
I use PIC18 series.
For another bootloader, check /PICC/Examples/ex_bootload.c
good luck |
|
|
|