Hi:
最近学习MAD的多核boot,对于./build_examples_lnx.sh、./build_loader_lnx.sh工具均能正常运行并产生希望的文件,但在MAD指南的第8页“maptool.py config-files\maptoolCfg_C6678_windows.json”命令时不能正确运行,提示说在maptool.py第32-39行,即:
import os.path
import json
import re
import sys
import subprocess
import tempfile
import shutil
存在“import: command not found”。
这是什么原因?哪位帮解决一下,谢谢了!!!
chenpjh:
显示的错误信息如下:
Administrator@PC-200201010011 /c/ti/mcsdk_2_01_02_05/tools_chenpjh/boot_loader/mad-utils/map-tool$ maptool.py config-files/maptoolCfg_C6678_windows.json./maptool.py: line 32: import: command not found./maptool.py: line 33: import: command not found./maptool.py: line 34: import: command not found./maptool.py: line 35: import: command not found./maptool.py: line 36: import: command not found./maptool.py: line 37: import: command not found./maptool.py: line 38: import: command not found./maptool.py: line 39: import: command not found./maptool.py: line 42: syntax error near unexpected token `('./maptool.py: line 42: `def dec2hex(n):'
Administrator@PC-200201010011 /c/ti/mcsdk_2_01_02_05/tools_chenpjh/boot_loader/mad-utils/map-tool$