Hi AITOR ARANZABAL,
So sorry for my later reply.
Don't worry, now follow my steps do it carefully, I will take the opensda debugger as the example, tell you how to download the SDK code to the TWR-KV58F220M board.
TWR-KV58F220 on board opensda version is the opensda2.1.
1. Download the P&E driver and install it
Please download the driver from this link:
http://www.pemicro.com/downloads/download_file.cfm?download_id=53
2. Please download my attached opensda2.1 firmware(unzip it you will get file DEBUG_OpenSDA_for_MBED_Bootloader_by_Pemicro_v108_v2.1.bin), it will be used later.
3. Enter the bootloader mode and change the firmware to the opensda firmware.
1) Unplug the USB cable, then press the on board RESET button, hold on it, then plug the USB cable between J22 and the PC.
2) You will find your board is a device named as BOOTLOADER:

Then release the on board RESET button, it means your board already enter the BOOTLOADER mode.
3) Send my attached DEBUG_OpenSDA_for_MBED_Bootloader_by_Pemicro_v108_v2.1.bin to your BOOTLOADER, and wait the sending is finished.
4) Unplug the USB cable, the plug the cable again.
Wait a moment, you will a usb device is installing.
Then open the computer device management, in the ports, you will find there has a JLINK virtual COM port, it means your on board is modified to the JLINK debugger, and you also have the virtual com port.
OK, until now, we can use the opensda to debug the SDK code.
4. Open the SDK helloworld code.
KDS project folder:SDK_2.3.1_TWR-KV58F220M\boards\twrkv58f220m\demo_apps\hello_world\kds
1) Use the KDS open it, and build the project

2) open the debug configurations, choose the GDB PEMicro Interface debugging.


The opensda debug is entered in.
Now, open a COM Terminal to test the function.
Then click the resume button in KDS debug interface.

The above is the test result.
Please follow my steps and do it carefully.
If you still have question, please kindly let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------