NXP

ubuntu18版本使用S32DS遇到的问题

2019-07-12 11:27发布

1. S32DS编译项目时,没有出现elf文件;出现错误:arm-none-eabi-gcc not found

  1. Cross_Tools/gcc-arm-none-eabi_4_9/bin发现有arm-none-eabi-gcc
  2. 尝试运行./arm-none-eabi-gcc,出现./arm-none-eabi-gcc:没有那个文件或目录的错误
  3. 百度下错误,安装sudo apt install lib32z1即可。

2. S32DS烧写(debug)S32K144开发板时,出现Could not determine gdb version错误

  1. 查看具体错误信息,gdb程序的路径是Cross_Tools/gcc-arm-none-eabi_4_9/bin/arm-none-eabi-gdb
  2. 去gdb路径,用终端尝试运行,./arm-none-eabi-gdb。出现真实的错误
./arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: connot open shared object file: No such file or directory
  1. 原来是缺少共享库,运行sudo apt install lib32ncurses5,即可解决问题。