Hello Ernest,
I have test your project on my side , it can work well.
You do not need care the release or debug , in KDS , after download the it through debug ,
it also flash the project to the board , so please download it to your board,

then you can close the KDS, also can re-insert the USB to OpenSDA, then press
the RESET button , you can see the the red led ON .
I attach the video on my side .
Hope it helps
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------