Hello there,
I'm a new beginner with Renesas platform. I'm currently working with RL78 family G1F (R5F11BBC) as target. while trying to flash the code with the E2 lite emulator to enter a debug session, i frequently face the problem that say " GDB action 'connect to target', has failed with error code, 0xffffffffforce_kill_gdb()Disconnected from the Target Debugger. "
and fail to connect to the target although there is no error with the wiring. and it sometimes works and sometimes no.
how to deal and manage this issue ?
and can i reset the IDE settings to the default and how? is it works fine when i restart my PC ?
Thanks in advance
Most likely a hardware problem - wires not connected, or no power to your microcontroller.
I'm sure that there is no problem with the hardware
the problem is related to the IDE
as it woks fine when i restart the PC
Hi L_Niwehy,
I sometimes experience this too when I accidentally stops the debugging process while the IDE is still uploading the program to the target device. The error won't disappear until I restart the computer.
JBIf this response, or one provided by another user, answers your question, please verify the answer. Thank you!Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
Have you tried using CS+ as a sanity check? This would require building with CC-RL but you didn't mention which compiler you were using.
You could try downloading / programming only the hex-file without symbols to test if the problem is with the ELF file, I have seen problems in the past with some ELF files causing problems with the debugger (although ELF is a "standard", not all ELF files are created equal).
If you encounter this issue - I presume you tried unplugging the USB cable from the E2 lite emulator or killing the target power? Sometimes this is enough of a reset to solve any issue like this.
Thanks,
Mark.
Hi JimB
thanks for reply
I use CC-RL
the problem is not with the hex as it runs perfectly until i force close the debug session when it stuck, after that all projects give me same error also it was previously run fine without any error
that is exactly what happens with me
How do u fix that without restarting the computer ?
Actually, since I found out the cause, the one that I mentioned above, I've been very careful not to interrupt the uploading process (software side) or accidentally unplug or disconnect anything (hardware side). So I don't encounter this issue anymore. The only way so far that I know to recover from this issue is to restart the computer. But have you tried Mark's suggestion? Unfortunately, what I remember before is that unplugging the USB cable from the E1 emulator doesn't work. But maybe this isn't the case anymore with the E2 or E2 Lite emulator.