Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDB failed due to extra UTF emoji ('gbk' codec can't encode character '\u2714' in position 0) #1672

Open
MoonBite666 opened this issue Feb 17, 2024 · 0 comments

Comments

@MoonBite666
Copy link

Platform: Windows10 with language "ZH_CN", using VS Code with "Cortex-Debug" plugin

Process: Run debug test below:

{ "showDevDebugOutput": "parsed", "name": "pyocd STM Debug", "type": "cortex-debug", "request": "launch", "servertype": "pyocd", "cwd": "${workspaceRoot}", "executable": "./build/wrightRobot_C8T6.elf", "gdbTarget": "arm-none-eabi-gdb", "svdFile": "./STM32F103.svd", "runToEntryPoint": "main", "device": "STM32F103C8" }

Output:

Waiting for gdb server to start...[2024-02-17T10:53:06.349Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
pyocd gdbserver --port 50000 --telnet-port 50001
Probe/Board Unique ID Target
0 ARM QYF-CMSIS-DAP 0000976 C 'gbk' codec can't encode character '\u2714' in position 0: illegal multibyte sequence [main]
070000811a5a5bb50000000001eefd13a5a5a5a597969908 [2024-02-17T10:53:07.668Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...

When flashing, the output is:

0 ARM QYF-CMSIS-DAP 070000811a5a5bb50000000001eefd13a5a5a5a597969908 ✔︎ stm 32f103rb
So the problem was that the '✔︎' caused crash on non-western system's gdb server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant