0

Hi,

I’m trying to use gdb with VS Code to debug an RX project.  All required extensions (including Renesas Debug) are installed, and seem to work.  gdb reports a connection with my E2 Lite debugger.  If I remove power from the target, it complains, and if I apply power, it reports the voltage fine, so I’m pretty sure gdb itself (and the gdb server) work fine.

Here’s my gdb console output, which looks normal to me:

GDB Server for Renesas targets.
Version 9.5.0.v20240410-100424 [1a8868bc] (Apr 10 2024 22:15:19)
Starting server with the following options:
Raw options : c:\Users\XXXXXX\AppData\Roaming\Code\User\globalStorage\renesaselectronicscorporation.renesas-debug\DebugComp\RX\e2-server-gdb -g E2LITE -t R5F566TA -uConnectionTimeout= 30 -uClockSrcHoco= 0 -uInputClock= 16 -uPTimerClock= 16000000 -uAllowClockSourceInternal= 1 -uUseFine= 1 -uFineBaudRate= 1.50 -w 1 -z 0 -uRegisterSetting= 0 -uModePin= 0 -uChangeStartupBank= 0 -uStartupBank= 0 -uDebugMode= 0 -uExecuteProgram= 0 -uIdCode= FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -uresetOnReload= 1 -n 0 -uWorkRamAddress= 1000 -uverifyOnWritingMemory= 0 -uProgReWriteIRom= 0 -uProgReWriteDFlash= 0 -uhookWorkRamAddr= 0x25d0 -uhookWorkRamSize= 0x230 -uOSRestriction= 0 -l -uCore= SINGLE_CORE|enabled|1|main -uSyncMode= async -uFirstGDB= main –english –gdbVersion= 12.1 -t R5F566TA -uConnectionTimeout= 30 -uClockSrcHoco= 0 -uInputClock= 13.3333 -uAllowClockSourceInternal= 1 -uUseFine= 1 -uFineBaudRate= 1.50 -w 0 -z 0 -uRegisterSetting= 0 -uModePin= 0 -uChangeStartupBank= 0 -uStartupBank= 0 -uDebugMode= 0 -uExecuteProgram= 0 -uIdCode= FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -uresetOnReload= 1 -n 0 -uWorkRamAddress= 1000 -uverifyOnWritingMemory= 0 -uProgReWriteIRom= 0 -uProgReWriteDFlash= 0 -uhookWorkRamAddr= 0xfdd0 -uhookWorkRamSize= 0x230 -uOSRestriction= 0 -l -uCore= SINGLE_CORE|enabled|1|main -uSyncMode= async -uFirstGDB= main –english
Replacing core settings for ‘single core’
Old:core settings for single core, state=enabled, id=1, gdb name=main
New:core settings for single core, state=enabled, id=1, gdb name=main

Connecting to E2LITE, RX Target
GDBServer endian : little
Target power from emulator : Off
Starting target connection
Firmware up to date at version ‘1.09.00.004’
Target endian (MDE pin) : little

Version Information:
FFWE2RX.dll 2.09.00.001
Communi.dll 3.21.00.000

Emulator Information:
Emulator Board Revision E2LITE Rev.0
User Vcc 3.28872 V
USB Bus Power 4.99834 V
Finished target connection
GDB: 51066
GNU gdb (GDB) 12.1-20240325-7355
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type “show copying” and “show warranty” for details.
This GDB was configured as “–host=x86_64-w64-mingw32 –target=rx-elf”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type “help”.
Type “apropos word” to search for commands related to “word”.
GNU gdb (GDB) 12.1-20240325-7355
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type “show copying” and “show warranty” for details.
This GDB was configured as “–host=x86_64-w64-mingw32 –target=rx-elf”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type “help”.
Type “apropos word” to search for commands related to “word”.

The problem is that after gdb initializes, VS Code complains about “character set” conversions, and then closes the debugger.  Has anyone seen this, and how to I fix this?  I’ve reinstalled VS Code from scratch, but I still have the issue.

jltrahan commented
    • OK, problem solved… For some reason, I had a checkbox in Windows language/region settings that was checked, which caused the issue. I unchecked this box, and it seems to work correctly now.