Thanks Kerry for the answer,
but I still have some urgent problems on UART ISP protocol for the LPC5460x:
Following the UM10912 manual:
5.4.4 USART ISP data format
The data stream is in plain binary format.
Is this correct? is it changed from previous LPC devices?
I'm trying to program the internal flash of the LPC5460x in ISP mode from my Host app via UART but I have some problems writing bin data in internal RAM.
Is this the right command sequence to write for example 256bytes of .bin data in RAM @20000200 (and after in internal FLASH)? :
step 1 send -> W 536871424 256\r\n //Send Write in RAM command @0x20000200
step 2 wait for -> W 536871424 256\r\n0\r\n //Echo + CMD_SUCCES
step 3 send -> 256 row binary data (not converted in ASCII or UUencoded) (should I receive a echo also for every byte?)
step 4 wait for -> wait the answer: which is the right format of OK answer for a W command should I expect?
step 5 send -> P 0 0 \r\n //Prepare sector 0
step 6 wait for -> P 0 0\r\n0\r\n //Echo + CMD_SUCCES
step 7 send -> C 0 536871424 256\r\n //write 256 bytes starting from RAM 0x20000200 to internal FLASH 0x00000000
step 8 wait for -> C 0 536871424 256\r\n0\r\n //Echo + CMD_SUCCES
Moreover, is there an error on example of UM10912-Table20 (shold be inverted destination and souce addresses)?
Example
"C 536903680 196608 512 <CR><LF>" This example copies 512 bytes from the RAM starting at address
0x2000 8000 to flash starting at address 0x0003 0000.
The above sequence crash after step 3 I can't understand how to transfer the raw bin data...