Hi asier
You want to set PIO_2 PIO_3 as GPIO, no need to set CRP1 to disable SWD. Just set the pin in SWM module. Set SWDIO to connect P0_2 and P0_3.
If you already enabled CRP1. Doing mass erase in ISP mode can recover it.
ZhangJennie_0-1671615620926.png
Have a nice day,
Jun Zhang