PDA

View Full Version : Boot Loader with I2C memory



reid21
- 18th September 2007, 01:09
Is is posible to create a boot loader using I2C Memory? I want to be able to upgrade units in the field without using a computer.

Jumper
- 18th September 2007, 08:04
Hi,

Yes it is possible to make a bootloader that will load data from a I2C memory

http://www.picbasic.co.uk/forum/showthread.php?t=4498


The example in this thread is for serial com but just replace that with I2CREAD it is more or less the same thing. If you can read from the memory this thread will give you a good start.


any problems with the bootloader let me know and I will try to help.

Remember that this works with codeprotection on and it also gives you a possibility to encrypt the data on the I2C memory and later letting the Botloader decrypt it inside the chip. With a proper data shuffle your code should be close to impossible to steal.

And with PBP 2.50 we can finally answer the question that was raised in that thread about PICs with more than 64K memory. Thank you MeLabs for the LONG variable

/me