T1040: fix bug where read from slow memory (NOR Flash) at 16-20MHz JTAG clock is not stable.T1040: fix bug where the agent ping is unstable.