CLI: MEM-AP Read/Write improvements and fixes.
CLI: MEM-AP Read/Write improvements and fixes.

MEM-AP related Read/Write parser fixes.
Memory re-allocation fixes, memory is initialized to 0xFF.
Other fixes and improvements.

shangdawei/LibSWD,ongjohn/LibSWD,shangdawei/LibSWD,cedar-renjun/LibSWD,ongjohn/LibSWD,cedar-renjun/LibSWD,shangdawei/LibSWD,ongjohn/LibSWD,cedar-renjun/LibSWD