Hi Vasil Borisov,
Two points you need to note:
1. When you program the chip, you need to download the code to the flash, not the RAM.
After you download the code to the chip flash, both debug and without debug, the code can work.
But if you download the code to the RAM, after power off and power on the board again, the code will be disappear.
So, please configure your project, download the code to the flash.
2. Note the PIO0_1 pin when you do the reset

After you download the code to the chip, without debugging, before you do the reset, you must make sure PIO_1 is high, otherwise, you code will enter in the ISP mode.
So, just keep the PIO0_1 as higher.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------