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 tools error for C6678 DSP



Hello all,

im trying to generate ROMFS .bin file from MAD utility and used deployment_template_C6678.json file with 3 .out files.  Its giving me error like ERROR: addFile() File1 name already exists. 

my deployment_template_C6678.json file is looks like after some modification,

{
"deviceName" : "C6678",

"partitions" : [
{
"name" : "load-partition",
"vaddr" : "0x9e000000",
"size" : "0x1000000",
"loadPartition" : true
}
],

"applications" : [
{
"name" : "app1",
"fileName" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\app_1\\build\\Hello1.out",
"libPath" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\shlibs\\build",
"allowedCores" : [0,1,2]
}, 
{
"name" : "app1",
"fileName" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\app_1\\build\\Hello3.out",
"libPath" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\shlibs\\build",
"allowedCores" : [0,1,2]
},
{
"name" : "app2",
"fileName" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\app_2\\build\\Hello2.out",
"libPath" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\shlibs\\build",
"allowedCores" : [0,1,2]

],

"appDeployment" : [
"app1",
"app1",
"app2",
"",
"",
"",
"",
""
]
}

and the error what i got is,

$ python maptool.py ./config-files/maptoolCfg_C6678.json bypass-prelink
MAP tool executing in prelink bypass mode

c:\ti\mcsdk_2_01_02_05\tools\boot_loader\mad-utils\map-tool>"C:\ti\ccsv5\tools\c
ompiler\c6000_7.4.1\bin\strip6x" -o=./tmp/strippedImages\app1.strip ./images/app
Images\app1

c:\ti\mcsdk_2_01_02_05\tools\boot_loader\mad-utils\map-tool>"C:\ti\ccsv5\tools\c
ompiler\c6000_7.4.1\bin\strip6x" -o=./tmp/strippedImages\app1.strip ./images/app
Images\app1
error: unable to rename C:/Users/HPLAPT~1/AppData/Local/Temp\050762 to
./tmp/strippedImages\app1.strip: File exists

c:\ti\mcsdk_2_01_02_05\tools\boot_loader\mad-utils\map-tool>"C:\ti\ccsv5\tools\c
ompiler\c6000_7.4.1\bin\strip6x" -o=./tmp/strippedImages\app2.strip ./images/app
Images\app2

c:\ti\mcsdk_2_01_02_05\tools\boot_loader\mad-utils\map-tool>"C:\ti\ccsv5\tools\c
ompiler\c6000_7.4.1\bin\ofd6x" -x -o c:\users\hplapt~1\appdata\local\temp\tmpxau
dj3.xml "./tmp/strippedImages\app1.strip"

c:\ti\mcsdk_2_01_02_05\tools\boot_loader\mad-utils\map-tool>"C:\ti\ccsv5\tools\c
ompiler\c6000_7.4.1\bin\ofd6x" -x -o c:\users\hplapt~1\appdata\local\temp\tmp46c
kec.xml "./tmp/strippedImages\app1.strip"

c:\ti\mcsdk_2_01_02_05\tools\boot_loader\mad-utils\map-tool>"C:\ti\ccsv5\tools\c
ompiler\c6000_7.4.1\bin\ofd6x" -x -o c:\users\hplapt~1\appdata\local\temp\tmp5rz
ksg.xml "./tmp/strippedImages\app2.strip"

c:\ti\mcsdk_2_01_02_05\tools\boot_loader\mad-utils\map-tool>"C:\ti\ccsv5\tools\c
ompiler\c6000_7.4.1\bin\ofd6x" -x -o c:\users\hplapt~1\appdata\local\temp\tmppyt
yi7.xml "./tmp/fs\mal_app"

c:\ti\mcsdk_2_01_02_05\tools\boot_loader\mad-utils\map-tool>"C:\ti\ccsv5\tools\c
ompiler\c6000_7.4.1\bin\ofd6x" -x -o c:\users\hplapt~1\appdata\local\temp\tmp1qc
t5j.xml "./tmp/fs\nml"
ERROR: addFile() File1 name already exists

 can anyone tell me where i did mistake ??

regards,

Gourav

  • Hi Gourav,

    I think, the "applications" section can cause the issue. The "app1" is linked with file name "Hello1.out" now you are trying to link same name for another application named "Hello3.out".

    {
    "name" : "app1",
    "fileName" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\app_1\\build\\Hello3.out",
    "libPath" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\shlibs\\build",
    "allowedCores" : [0,1,2]
    },

    Please try following,

    "applications" : [
    {
    "name" : "app1",
    "fileName" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\app_1\\build\\Hello1.out",
    "libPath" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\shlibs\\build",
    "allowedCores" : [0,1,2]
    }, 
    {
    "name" : "app2",
    "fileName" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\app_2\\build\\Hello2.out",
    "libPath" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\shlibs\\build",
    "allowedCores" : [0,1,2]

    ],

    "appDeployment" : [
    "app1",
    "app1",
    "app2",

    (or) 

    "applications" : [
    {
    "name" : "app1",
    "fileName" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\app_1\\build\\Hello1.out",
    "libPath" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\shlibs\\build",
    "allowedCores" : [0,1,2]
    },

    {
    "name" : "app2",
    "fileName" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\app_2\\build\\Hello2.out",
    "libPath" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\shlibs\\build",
    "allowedCores" : [0,1,2]
    }, 
    {
    "name" : "app3",
    "fileName" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\app_3\\build\\Hello3.out",
    "libPath" : "C:\\ti\\mcsdk_2_01_02_05\\tools\\boot_loader\\mad-utils\\mad-loader\\examples\\shlibs\\build",
    "allowedCores" : [0,1,2]

    ],

    "appDeployment" : [
    "app1",
    "app2",
    "app3",

    Thank you.

  • Hi Raja,

    grt . 2nd option is working including all three .out files. (in first option you have not included 3rd .out file)

    thanks for your quick response !!!

    regards,
    Gourav