add app memory pointer

Signed-off-by: Lindell Xu <lxu@vetronicsltd.com.cn>