Redesign core_connect.c using self-defined PMP(peripheral monitor protocol)