This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MAD-UTILS for C6657

Hi,

I'm working on Mad and I have some problems with my environment because PYTHON give me some errors.

Compiling the example

ti\mcsdk_2_01_01_04\tools\boot_loader\mad-utils\mad-loader\examples

with Mingw32, C6000 Code Generation Tools 7.4.1, and PYTHON 2.7.2

I see the output file in the zip attached. 2063.mad-utils.rar

I'm launching a script file in the primary folder build_image_msys.sh

Any Ideas about these errors?

Max

  •  Changing the config-files/maptoolCfg_C6657_windows_le.json 

    like this in follow

    {
    "deploymentCfgFile" : ".\config-files\deployment_template_C6657_windows.json",
    "LoadImageName" : "c6657.bin",
    "prelinkExe" : "E:\ProgramMI\Texas Instruments\C6000 Code Generation Tools 7.4.1\bin\prelink6x",
    "stripExe" : "E:\ProgramMI\Texas Instruments\C6000 Code Generation Tools 7.4.1\bin\strip6x",
    "ofdTool" : "E:\ProgramMI\Texas Instruments\C6000 Code Generation Tools 7.4.1\bin\ofd6x.exe",
    "malApp" : "..\mad-loader\bin\C6657\le\mal_app.exe",
    "nmlLoader" : "..\mad-loader\bin\C6657\le\nml.exe"
    }

    the errors are

    Traceback (most recent call last):
    File "maptool.py", line 2652, in <module>
    if mapCfg.parseFile()!= 0:
    File "maptool.py", line 725, in parseFile
    config = json.load(fd)
    File "/usr/lib/python2.6/json/__init__.py", line 267, in load
    parse_constant=parse_constant, **kw)
    File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
    File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/lib/python2.6/json/decoder.py", line 336, in raw_decode
    obj, end = self._scanner.iterscan(s, **kw).next()
    File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
    File "/usr/lib/python2.6/json/decoder.py", line 183, in JSONObject
    value, end = iterscan(s, idx=end, context=context).next()
    File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
    File "/usr/lib/python2.6/json/decoder.py", line 155, in JSONString
    return scanstring(match.string, match.end(), encoding, strict)
    ValueError: Invalid \escape: line 2 column 27 (char 29)

  • Hi,

    Resolving

    any ValueError: Invalid \escape: line x column y (char zz)

    with the changes in follow

    {
    "deploymentCfgFile" : "./config-files/deployment_template_C6657_windows.json",
    "LoadImageName" : "c6657.bin",
    "prelinkExe" : "e:/ProgramMI/Texas Instruments/C6000 Code Generation Tools 7.4.1/bin/prelink6x",
    "stripExe" : "e:/ProgramMI/Texas Instruments/C6000 Code Generation Tools 7.4.1/bin/strip6x",
    "ofdTool" : "e:/ProgramMI/Texas Instruments/C6000 Code Generation Tools 7.4.1/bin/ofd6x.exe",
    "malApp" : "../mad-loader/bin/C6657/le/mal_app.exe",
    "nmlLoader" : "../mad-loader/bin/C6657/le/nml.exe"
    }

    the errors are

    /usr/bin/sh: /cygdrive/c/DOCUME~1/M7724~1.LAI/IMPOST~1/Temp/tmpZYKg0y: No such file or directory
    /usr/bin/sh: /cygdrive/c/DOCUME~1/M7724~1.LAI/IMPOST~1/Temp/tmprT0Eva: No such file or directory
    /usr/bin/sh: /cygdrive/c/DOCUME~1/M7724~1.LAI/IMPOST~1/Temp/tmpktPc_1: No such file or directory
    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.6/xml/etree/ElementTree.py", line 546, in __init__
    self.parse(file)
    File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 587, in parse
    self._root = parser.close()
    File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 1254, in close
    self._parser.Parse("", 1) # end of data
    xml.parsers.expat.ExpatError: no element found: line 1, column 0 refers to what file?

    any suggestions from anyone?


  • massimiliano,

    It looks like you are using cygwin. Can you quickly check if the syntax of the path is correct? For example, does calling "e:/ProgramMI/Texas Instruments/C6000 Code Generation Tools 7.4.1/bin/prelink6x" from your cygwin shell work?

    I am able to generate a MAD image after tweaking your maptoolCfg file. I attached my changes here (renamed to .txt). Note that I have CGT/bin in my PATH. See if this works any better.

    -Ivan

    {
    	"deploymentCfgFile" 	: "./config-files/deployment_template_C6657_windows.json",
    	"LoadImageName"		: "c6657.bin",
    	"prelinkExe"		: "prelink6x",
    	"stripExe"		: "strip6x",
    	"ofdTool"		: "ofd6x.exe",
    	"malApp"		: "../mad-loader/bin/C6657/le/mal_app.exe",
    	"nmlLoader"		: "../mad-loader/bin/C6657/le/nml.exe"
    }