Hi Changxin,
You can only write to the HCR registers in flash programming mode. It appears that you are trying to write using an SFR address value. You are also trying to read/write the wrong register space. HCR0 is 0x3F, HCR1 is 0x3E and HCR2 is 0x3D…