- /* Write the byte of data to the target */\r
- XPROGTarget_SendByte(TPI_CMD_SST | TPI_POINTER_INDIRECT);\r
- XPROGTarget_SendByte(Byte);\r
+ while (WriteLength--)\r
+ {\r
+ /* Write the byte of data to the target */\r
+ XPROGTarget_SendByte(TPI_CMD_SST | TPI_POINTER_INDIRECT_PI);\r
+ XPROGTarget_SendByte(*(WriteBuffer++));\r
+ }\r