Topic

FAQ
Login Register
使用riscv32-elf-gdb去调试demo,报找不到libpython3.4m.so.1.0错误
www
Mar 31, 2023 11:50

/

A

/A

你好,感谢您上面的答复: 我已经购买了telink支持linux烧写的烧录器,在ubunutu下试了一下可以烧录B91成功,然后我按照Burning and Debugging Tools for TLSR9 Series (Linux) - Telink wiki (telink-semi.cn)指导,想使用riscv32-elf-gdb去调试提供的gdb_example.zip filedemo,报以下错误:

error while loading shared libraries: libpython3.4m.so.1.0: cannot open shared object file: No such file or directory

之后,我将该库拷贝到系统/usr/lib下,重新执行调试命令,又报以下错误:

-elf/bin/riscv32-elf-gdb main.elf
Could not find platform independent libraries
Could not find platform dependent libraries
Consider setting $PYTHONHOME to [:]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Current thread 0xf78db9c0 (most recent call first):
已放弃 (核心已转储)

谢谢,想咨询一下,该怎么使用riscv32-elf-gdb正确调试代码?


2 replies
TL_Soyo Mar 31, 2023 17:40
0
/A

可能是你的环境没有配置正确,请按照zephyr网址的的手册配置测试。https://docs.zephyrproject.org/latest/boards/riscv/tlsr9518adk80d/doc/index.html



www [Author] Apr 06, 2023 11:04
0
/A

好的,谢谢。

B91输出串口的协议是?RS232、RS485、还是TTL?