Update ARM code to distant system

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by bojana.djukic on Wed Jul 23 03:17:48 MST 2014
I have problem with updating program to distant arm system. I found some bugs in program but we sold couple product and is expensive to go and change code directly, I want to update using server-controller communication.
I had idea two application image written in another places in memory(new one and old) and if some flag is set to execute first and if not to execute second. And when I want do update if flag is set - write program in first memory location and if is not to write to second memory location.
Does anybody knows how to solve this problem and does anybody has example code for this?

I'm using ARM LPC2378, and for developing Keil bord MCU2300