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.

Error during loadRaw command

hi,

I am trying to use "js>" command prompt or scripting console, to load binary file which contains data alone. It does not have any header or any other information.

I am using "loadRaw (0x0008000,PAGE_0,Parameter.bin,100)" command to load the binary.

I have set workspace location as "env.setCurrentDirectory("D:/CCS Workspace/Unified Build Integration/ESC_MC21_AEU_B/SOFTWARE/05_CODE/APP_TP_CON/src/")"

Still it gives error as mentioned below

Could Not Open File C:\ti\ccsv5\eclipse\TunableParameter.bin for reading. (C:\ti\ccsv5\eclipse\configuration\org.eclipse.osgi\bundles\412\1\.cp\resources\debugserver\memory.js#204)

OR

ReferenceError: "TunableParameter" is not defined.

Please suggest waht is wrong with the command.

Thanks & Regards,

Satya Sudhir

  • Hi Satya

    satya sudhir sure said:
    loadRaw (0x0008000,PAGE_0,Parameter.bin,100)

    The parameters are incorrect for the loadRaw API. There should be 5 parameters

    loadRaw(int nPage, long nAddress, java.lang.String sFilename, int nTypeSize, boolean bByteSwap)

    ki

  • Ki-Soo Lee said:
    loadRaw(int nPage, long nAddress, java.lang.String sFilename, int nTypeSize, boolean bByteSwap)

    Note that the above is if calling the DSS API.

    If you are using the scripting console command, it is:

    loadRaw(address,page,filename,typeSize,byteSwap)


    Why the scripting console command and the DSS API command take in the parameters in a different order (address and page) I have no idea.

    ki