Content originally posted in LPCWare by Almaz on Mon Sep 17 05:20:31 MST 2012
So, I wrote a program that allows one device copy their flash-memory to another device when they are connected to the CAN-network.
The algorithm is as follows:
1. First node write in a specific entry of OD of second node. The writting in this entry call the reinvoke comand, that put this node in the ISP mode.
2. Using the standart comand: "Write to RAM" , "Prepare sector" , "Erase sector" , "Copy RAM to flash", i copy the content of first node's flash-memory to the second node's flash memory.
This is possible when the second node have a valid user code. It is possible to put the second node in ISP mode if it have invalid user code without hardware reset (pins 0_1 and 0_3 to LOW)?
Thanks)