Hi,
Your application code has configured the PIO0_0 as GPIO, which should have been SWCLK pin, so you can not download/debug again with tools.
I do not know if your PCB board supports ISP mode?
If your PCB board supports ISP mode, you can enter ISP mode, then erase all flash, it is okay.
After you enter ISP mode and use uart0 as communication port.
1)blhost -p comX get-property 1
check if you can communicate with the LPC5536
2)blhost -p comX flash-erase-all
then you can use SWD to download with tools
Hope it can help you
BR
XiangJun rong