maybe the pin is set as a GPIO, please check if you can the BKGDPE = 1
If a debug system is connected to the 6-pin standard background debug header, it can hold BKGD/MS low during a POR or immediately after issuing a background debug force reset, which forces the MCU to active background mode.
Please also check the signal on the reset pin.