Fix serious bug in LPC2xxx/LPC17xx flash algorithm.
authorFreddie Chopin <freddie.chopin@gmail.com>
Sat, 6 Oct 2012 07:49:28 +0000 (09:49 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 17 Oct 2012 09:23:39 +0000 (09:23 +0000)
commit15615dcff21420f0be783f3c57bf1dfaa1021c84
tree3e91c68f764fcd219211c141108198549375ca0d
parent19b351d8c8869305bfef8d4fad018cad1ea220b3
Fix serious bug in LPC2xxx/LPC17xx flash algorithm.

Flash algorithm for LPC17xx/LPC2xxx was trying to "reuse" previously
allocated working area on next flashing which is not possible -
working areas are freed automatically on reset. This caused all but
first flashing attempts to fail. As there is no point in storing pointer
to working area, it was converted to local variable.

Change-Id: I939946325ff9eecc4861c0f51ab0f73871a3d7b9
Signed-off-by: Freddie Chopin <freddie.chopin@gmail.com>
Reviewed-on: http://openocd.zylin.com/860
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/lpc2000.c