Hi, is it possible to not overwrite EEPROM data while reprogramming the controller? I only want to upgrade the program i write and not the previous EEPROM data contents.
Hi, is it possible to not overwrite EEPROM data while reprogramming the controller? I only want to upgrade the program i write and not the previous EEPROM data contents.
No the content are different for each controller (i have 3 controllers). Want to update only their firmware as i develop and the EEPROM's data remains intact.
Basically each controller contains unique address in its EEPROM.
I dont think i can just read the contents of EEPROM from the programming software i am using.
No, a bootloader is a program that runs in the PIC that allows you to program it without using a programmer - usually connected via a serial port (or USB). Most modern PIC's allow bootloaders. Assuming you have a serial port on your target boards it would be very easy implement a bootloader.
Thank you Nigel, actually i use a PIC trainer to burn program and check data on ports. Yes it does have a serial port on it as well, one i use for programming and the other one is connected to PIC's serial port. I am using PIC18F4520.
Is bootloader program same for all PIC18 series? From what i understand, i will serially write program on the PIC using bootloader. But which software to send the program from hex file serially to target PIC.
3v0, my burner/trainer doesn't have ICSP programming interface.
Thank you Nigel, actually i use a PIC trainer to burn program and check data on ports. Yes it does have a serial port on it as well, one i use for programming and the other one is connected to PIC's serial port. I am using PIC18F4520.
Is bootloader program same for all PIC18 series? From what i understand, i will serially write program on the PIC using bootloader. But which software to send the program from hex file serially to target PIC.
As far as I'm aware they provide source code, so you can modify it as you wish - and the two examples they give (252 and 452) will drop in place for most 18F series. There should also be bootloader examples on MicroChips own site - the PICKit2 and ICD2 are even bootloaders, using it to update the processor on the programmer when you chnage device types.
one question that popped in mind, will the bootloader take/require sometime and wait if there is any traffic coming from PC serial port and if not will run the program code?