Hello!
Hope you are well.
Please follow these steps to regain control on you board:
- Import any example of the SDK, I suggest you to import the iled_blinky example.
- Locate SW8 in your board.
- Change these switches so you can enter to Serial Downloader.
- Disconnect and connect the power of your board so the changer in SW8 take effect.
- Make sure the project you imported does not have any debug configuration, if it has one please delete it.
- Launch the debug session while you are in Serial Downloader.
- Stop the debug session.
- Delete the debug configuration created while you launched this project.
- Go to your board and change SW8 the way it was.
- Disconnect and connect your board.
- At this point you should be able to debug with any problem.
The reason why you need to import a fresh project from the SDK is that we are sure that this project works perfectly and has all the right configurations in the clocks and in all the other peripherals. This will bring your board into a known state and will avoid bricking it again.
Let me know if this is helpful, if you have more questions do not hesitate to ask me.
Best regards,
Omar