[ LPC824 ] S, W commands fix

S: write access happened twice
W: wrong array index