Cannot Enter Password In The REPL port When The Script Is Running

We placed password according to the following documnetation

We uploaded the script, and it’s now constantly running, which prevents us from entering anything in the REPL port—including the password prompt. Do you have any ideas on how we can get out of this predicament?

Dear customer

May I ask if you have tried re-flashing the firmware? Does it work?

Cannot flash the firmware QPYCOM get stuck gives a no device found error

Which modules do you use? There are two methods:

  1. Send AT commands to set the module to download mode.

  2. Put the module into forced download mode.

please elaborate on both options

Please send AT+QDOWNLOAD over the AT port; the module will then enter download‑mode. Select the download port to flash the firmware.