HI:
I am developing the C6678. When I study the MAD and do some experiment ,I meet a problem.
The following is My software envirement is :
mcsdk_2_01_02_06
CCS5.4
linux enviroment : cygwin
I have delopment most of the control funciton on single core C6678 and everything is ok. Now I need to implement the c6678 mutlicore loader.
So first I read the MAD utility user guild and do some expriment according to document. I want to use the prelinker. So I do the Demo walkthrough about Prelinker bypass mode demo
Step 1 and 2 is oK .app_1.exe ,app_2.exe and other tools are generated.
cl6x --abi=elfabi -mv6600 -g --mem_model:data=near -fr=obj -I C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include -I../src ../src/app_1.c -z lnk_C6670.cmd -m map.txt -a -cr -l ../../shlibs/build/printf.a -l C:/ti/ccsv5/tools/compiler/c6000_7.4.2/lib/libc.a --output_file app_1.exe
<Linking>
make: Leaving directory '/cygdrive/c/ti/mcsdk_2_01_02_06/tools/boot_loader/mad-utils/mad-loader/examples/app_1/build'
make: Entering directory '/cygdrive/c/ti/mcsdk_2_01_02_06/tools/boot_loader/mad-utils/mad-loader/examples/app_2/build'
rm -rf obj
rm -rf *.exe
rm -rf map.txt
mkdir -p obj
touch obj/.created
cl6x --abi=elfabi -mv6600 -g -ml3 -fr=obj -I C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include -I../src ../src/app_2.c -z lnk_C6670.cmd -m map.txt -a -cr -l ../../shlibs/build/printf.a -l C:/ti/ccsv5/tools/compiler/c6000_7.4.2/lib/libc.a --output_file app_2.exe
<Linking>
make: Leaving directory '/cygdrive/c/ti/mcsdk_2_01_02_06/tools/boot_loader/mad-utils/mad-loader/examples/app_2/build'
<Linking>
warning: entry-point symbol other than "_c_int00" specified: "_enter"
cp mal_app.exe mal_app.exe.dbg
strip6x -p mal_app.exe
make: Leaving directory '/cygdrive/c/ti/mcsdk_2_01_02_06/tools/boot_loader/mad-utils/mad-loader/mal/malApp/build'
make: Entering directory '/cygdrive/c/ti/mcsdk_2_01_02_06/tools/boot_loader/mad-utils/mad-loader/nmlLoader/build'
rm -rf *_LNX
rm -rf *.dbg
rm -rf *.exe
rm -rf *.asm
rm -rf *.pdo
rm -rf map.txt
mkdir -p C60_LNX
touch C60_LNX/.created
cl6x -c -DDEVICE=6670 -mv6600 -g -ss -ml3 -k -pds67 --abi=elfabi -I../src -I ../../mal/malLib/include ../src/nml_ar_utils.c --output_file C60_LNX/nml_ar_utils.obj
cl6x -c -DDEVICE=6670 -mv6600 -g -ss -ml3 -k -pds67 --abi=elfabi -I../src -I ../../mal/malLib/include ../src/nml_loader.c --output_file C60_LNX/nml_loader.obj
cl6x -c -mv6600 --abi=elfabi ../src/entry.s --output_file C60_LNX/entry.obj
cl6x -DDEVICE=6670 -mv6600 -g -ss -ml3 -k -pds67 --abi=elfabi C60_LNX/nml_ar_utils.obj C60_LNX/nml_loader.obj C60_LNX/entry.obj -z lnk_C6670.cmd -m map.txt --dynamic --export=nml_ar_data --export=nml_boot_status --export=nml_entry -o nml.exe
<Linking>
cp nml.exe nml.exe.dbg
strip6x -p nml.exe
make: Leaving directory '/cygdrive/c/ti/mcsdk_2_01_02_06/tools/boot_loader/mad-utils/mad-loader/nmlLoader/build'
step 3 is failure. the following is the error inforamtion. I am not familiar with python.
can you give me some advice to solve the problem ?
thank you
$ python maptool.py config-files/maptoolCfg_C6670_bypass_prelink.json bypass-prelink
MAP tool executing in prelink bypass mode
error: errors occurred while reading ./images/appImages/app1
error: errors occurred while reading ./images/appImages/app2
fatal error: unrecoverable error; exiting
Traceback (most recent call last):
File "maptool.py", line 2688, in <module>
if a.processElf(globalLibList) != 0:
File "maptool.py", line 1538, in processElf
if self.elfFile.parse() != 0:
File "maptool.py", line 2273, in parse
root = ET(file=self.xmlFileName)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 611, in __init__
self.parse(file)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 657, in parse
self._root = parser.close()
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1654, in close
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: no element found: line 1, column 0