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.

Cannot restore EVM to factory default state

Other Parts Discussed in Thread: CCSTUDIO, MATHLIB

I want to restore my TMDXEVM6678L back to factory settings using the "program_evm_userguide.pdf" instructions.  The instructions are as follows:

7.4.1 Windows
1. cd “\factory_images” directory
2. Please note that PROGRAM_EVM_TARGET_CONFIG_FILE is not a
mandatory environment variable for windows, if not set it uses the default ccxml files as
below.
3. Using the DSS Script batch file, run the “program_evm.js” script command from
factory_images directory.

Example

/factory_images>%DSS_SCRIPT_DIR%\dss.bat program_evm.js TMDXEVM6678L
This will write all the little endian images to C6678 low cost EVM using XDS 100
emulator.

However, when I run this I get an error:

c:\factory_images>%DSS_SCRIPT_DIR%\dss.bat program_evm.js TMDXEVM6678L
targetFlag: TMDXEVM6678L
Invalid Target flag passed!!!
Invalid Target flag passed!!!

Anybody have any ideas?

  • David,

    I'm trying to get the right person involved on this thread.  Off the top of my head, I'd guess this is a new EVM w/ 2.0 Si, which would have had a minor change to the Device ID values, which would be used to validate the target.  Someone with the specific knowledge on the tool should be replying back shortly.

    Best Regards,

    Chad

  • Thanks for your support.  Our company is new to using TI DSPs and we are finding it quite challenging to get started.  Anything you can do to help would be appreciated.

    Thanks again.

  • David,

    Can you try TMDXEVM6678-LE instead? The -LE flag at the end is to signify little endian (and conversely, -BE would be big endian).

    -Ivan

  • Some progress with the new setting.  Here is the latest error.  Again, any help would be appreciated.

    dave@UbuntuDevMachine:~/my-linux-c6x/projects/bootloader-support/program_evm$ $DSS_SCRIPT_DIR/dss.sh program_evm.js TMDXEVM6678Le-le
    board: evm6678l
    endian: Little
    emulation: XDS560 mezzanine
    binaries: /home/dave/my-linux-c6x/projects/bootloader-support/program_evm/binaries/evm6678l/
    ccxml: /home/dave/my-linux-c6x/projects/bootloader-support/program_evm/configs/evm6678l/evm6678le-linuxhost.ccxml
    SEVERE: Can't generate board data file /home/dave/.TI/3123642554/0/0/BrdDat/ccBoard0.dat
    An invalid processor ID has been found.

    SEVERE: Could not start server: DebugServer.1: Can't generate board data file /home/dave/.TI/3123642554/0/0/BrdDat/ccBoard0.dat
    An invalid processor ID has been found.

    org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Could not start server: DebugServer.1: Can't generate board data file /home/dave/.TI/3123642554/0/0/BrdDat/ccBoard0.dat
    An invalid processor ID has been found.
    (program_evm.js#269)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:204)
    at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
    at org.mozilla.javascript.gen.c1._c0(program_evm.js:269)
    at org.mozilla.javascript.gen.c1.call(program_evm.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
    at org.mozilla.javascript.gen.c1.call(program_evm.js)
    at org.mozilla.javascript.gen.c1.exec(program_evm.js)
    at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:503)
    at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:425)
    at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:391)
    at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:382)
    at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:179)
    at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:100)
    at org.mozilla.javascript.Context.call(Context.java:528)
    at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:450)
    at org.mozilla.javascript.tools.shell.Main.exec(Main.java:162)
    at com.ti.ccstudio.apps.internal.scripting.RunScript$1.run(RunScript.java:88)
    Caused by: com.ti.ccstudio.scripting.environment.ScriptingException: Could not start server: DebugServer.1: Can't generate board data file /home/dave/.TI/3123642554/0/0/BrdDat/ccBoard0.dat
    An invalid processor ID has been found.

    at com.ti.debug.engine.scripting.DebugServer$SessionFactory.<init>(DebugServer.java:161)
    at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.java:1339)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
    ... 18 more
    dave@UbuntuDevMachine:~/my-linux-c6x/projects/bootloader-support/program_evm$

  • I should also note here that I switched to a linux host machine and that seems to have helped some also.  But I still cannot get past the error highlighted in red above.

  • David,

    Just to make sure, what version of BIOS-MCSDK and emupack are you using? And are you using an XDS560 emulator?

    -Ivan

  • I have bios_6_34_02_18 on both my PC and my Linux machine.

    Thanks

  • Hi David,

    Which package did your "program_evm" come from? The latest version should be in BIOS-MCSDK 2.1.2.5, downloaded from http://software-dl.ti.com/sdoemb/sdoemb_public_sw/bios_mcsdk/latest/index_FDS.html. This has been tested before release and will reflash eeprom50, eeprom51, and nor.

    I saw "linux-c6x" in your post with the invalid processor ID error and I wanted to align with the tools that you are using. Let me know if you are working on linux-c6x; I can get another team member to chime in if necessary.

    -Ivan

  • I downloaded and installed the binary as you suggest.  Now, my ~/ti directory has the following bios directories installed:

    drwxr-xr-x 6 dave dave 4096 2013-01-31 12:08 bios_5_42_00_07/

    drwxr-xr-x 6 dave dave 4096 2013-01-31 13:26 bios_6_32_01_38/
    drwxr-xr-x 6 dave dave 4096 2013-02-01 14:41 bios_6_33_06_50/
    drwxr-xr-x 7 dave dave 4096 2012-10-11 18:32 bios_6_34_02_18/

    I re-ran the test and get the exact same failure.  Do you know how to select one bios over another when doing the binary download?  It may be that I have the wrong bios selected.

    Thanks

  • David,

    I think you may be confused between BIOS-MCSDK and SYS/BIOS (granted, they're named similarly and not intuitively understandable).

    The packages you listed, bios_w_x_y_z, are SYS/BIOS packages. This is TI's custom real-time kernel for our embedded processors.

    BIOS-MCSDK is a much larger package targeted to support our C66x chips. This Multicore Software Development Kit (MCSDK) has chip-specific demos and libraries in the mcsdk_w_x_y_z and pdk_[platform]_w_x_y_z folders. It also comes with other packages used for multicore development, such as SYS/BIOS, XDC, IPC.

    Would you mind showing me your entire ~/ti directory? If installed properly, there should be a folder called "mcsdk_2_01_02_05". If so, navigate to mcsdk_2_01_02_05/tools/program_evm and try to follow the instructions in program_evm_userguide.pdf.

    When reflashing the default images, none of the SYS/BIOS packages are needed. The program_evm script uses pre-built binaries and configuration. I suspected that your program_evm may be a very out-dated one and I suggest you to use the most recent version in mcsdk_2_01_02_05. The invalid processor ID error may have been introduced when we shifted CCS version, but this should be corrected with the latest program_evm. To select this version of program_evm, you will have to navigate to the newly installed folder as follows:

    $ cd ~/ti/mcsdk_2_01_02_05/tools/program_evm

    Let me know if this clarifies things for you.

    -Ivan

  • Thanks.  Good information that I did not know.  My only method to determine what to do is to search google and e2e.  I keep hitting documents that give me different instructions than the instructions you just gave me.  And being a new guy, I have to try each one to see if it is the current one or if it fails.  Most frustrating, but I don't know of any sure fire way to get linux booting.

    I tried to flash, and it seemed to work this time.  I will try to boot the board and see what happens.  Thanks for your help.  I will mark this as fixed now.

    My entire ~/ti folder is below.  I can see the requested folder:

    drwxr-xr-x 6 dave dave 4096 2013-01-31 12:08 bios_5_42_00_07/
    drwxr-xr-x 6 dave dave 4096 2013-01-31 13:26 bios_6_32_01_38/
    drwxr-xr-x 6 dave dave 4096 2013-02-01 14:41 bios_6_33_06_50/
    drwxr-xr-x 7 dave dave 4096 2012-10-11 18:32 bios_6_34_02_18/
    -rwxr-xr-x 1 dave dave 130832979 2012-07-04 00:43 bios_setuplinux_6_33_06_50.bin*
    drwxr-xr-x 2 dave dave 4096 2013-01-31 12:10 CCSExternalReferences/
    drwxr-xr-x 2 dave dave 4096 2013-02-01 10:41 CCSTargetConfigurations/
    drwxr-xr-x 9 dave dave 4096 2013-01-31 12:28 ccsv5/
    drwxr-xr-x 7 dave dave 4096 2013-02-01 14:43 cg_xml/
    -rwxr-xr-x 1 dave dave 44391464 2011-06-02 14:00 cg_xml-v2_30_00-Linux-x86-Install.bin*
    drwxr-xr-x 10 dave dave 4096 2013-02-01 14:43 dsplib_c66x_3_1_0_0/
    -rwxr-xr-x 1 dave dave 9728117 2011-10-19 11:32 dsplib_c66x_3_1_0_0_Linux.bin*
    drwxr-xr-x 7 dave dave 4096 2013-02-01 14:40 edma3_lld_02_11_05_02/
    drwxr-xr-x 9 dave dave 4096 2013-02-01 14:42 imglib_c66x_3_1_1_0/
    -rwxr-xr-x 1 dave dave 6887232 2012-06-04 11:18 imglib_c66x_3_1_1_0_Linux.bin*
    drwxr-xr-x 6 dave dave 4096 2013-02-01 14:42 ipc_1_24_03_32/
    drwxr-xr-x 6 dave dave 4096 2012-09-17 17:18 ipc_1_25_00_04/
    -rwxr-xr-x 1 dave dave 94143543 2012-05-22 18:58 ipc_setuplinux_1_24_03_32.bin*
    drwxr-xr-x 5 dave dave 4096 2013-01-31 13:32 linux-c6x-2.0.0.63/
    drwxr-xr-x 9 dave dave 4096 2013-02-01 14:43 mathlib_c66x_3_0_1_1/
    -rwxr-xr-x 1 dave dave 4522732 2012-02-10 14:12 mathlib_c66x_3_0_1_1_Linux.bin*
    drwxr-xr-x 7 dave dave 4096 2013-02-01 14:43 mcsdk_2_01_02_05/
    drwxr-xr-x 6 dave dave 4096 2013-02-01 14:40 ndk_2_21_01_38/
    drwxr-xr-x 6 dave dave 4096 2012-10-11 19:33 ndk_2_22_00_06/
    drwxr-xr-x 7 dave dave 4096 2013-02-01 14:41 omp_1_01_03_02/
    drwxr-xr-x 5 dave dave 4096 2013-02-01 14:41 openem_1_0_0_2/
    drwxr-xr-x 5 dave dave 4096 2013-02-01 14:39 pdk_C6657_1_1_2_5/
    drwxr-xr-x 5 dave dave 4096 2013-02-01 14:38 pdk_C6670_1_1_2_5/
    drwxr-xr-x 5 dave dave 4096 2013-02-01 14:38 pdk_C6678_1_1_2_5/
    drwxr-xr-x 6 dave dave 4096 2012-07-13 13:18 uia_1_01_01_14/
    drwxr-xr-x 3 dave dave 4096 2013-01-31 12:28 .WebApp/
    drwxr-xr-x 9 dave dave 4096 2013-01-31 12:09 xdais_7_21_01_07/
    drwxr-xr-x 10 dave dave 4096 2013-01-31 13:29 xdctools_3_22_01_21/
    drwxr-xr-x 10 dave dave 4096 2013-02-01 14:42 xdctools_3_23_04_60/
    drwxr-xr-x 10 dave dave 4096 2012-11-07 20:51 xdctools_3_24_05_48/
    -rwxr-xr-x 1 dave dave 205788822 2012-07-09 21:52 xdctools_setuplinux_3_23_04_60.bin*

  • Ivan

    When I boot, this is what I see on the serial port terminal


    IBL version: 1.0.0.16

    IBL: PLL and DDR Initialization Complete
    IBL Result code 00

    IBL: Booting from NAND

    I was expecting to see Linux boot up.  Any idea what I am doing wrong.  I have the switches set as per the "boot linux" instructions

    S3 = OFF OFF ON OFF

    S4 = ON OFF ON ON

    S5 = ON ON ON OFF

    S6 = ON ON ON ON

    I am running the TMDXEVM6678LE

    Thanks

  • Dave,

    Good to hear that the flash worked. Is your end-goal booting the linux-c6x kernel? If so, you will have to grab the kernel binary for the flashing.

    Here's the rundown explanation: BIOS-MCSDK and LINUX-MCSDK are thought of as separate products. The external download for BIOS-MCSDK will not include the kernel binary from LINUX-MCSDK. However, we combine the program_evm information together on the product CD.

    Here's what you would need to do: You need to put the linux kernel binary into your program_evm folder. Specifically, this is the nand.bin that the EVM will try to boot when you set the DIP switches to NAND boot. If you look at your ~/ti/mcsdk_2_01_02_05/tools/program_evm/binaries/evm6678l folder, it should be missing a nand.bin. You need to find this nand.bin, put it in this folder, and re-run your program_evm one more time.

    Where to get this nand.bin: 1) you might have it in your factory_images folder. Check your original program_evm folder in c:\factory_images\binaries\evm6678l (or your respective folder in Linux) for nand.bin. or 2) Download the linux-c6x-2.0.0.63-c66le-bin.tar.gz from http://software-dl.ti.com/sdoemb/sdoemb_public_sw/linux_mcsdk/latest/index_FDS.html. When you unpack, navigate to the linux-c6x-2.0.0.63/product directory. Run the following command:

    $ ./bootblob evmc6678-initramfs-demo

    This will generate evmc6678-initramfs-demo.el-hf-linux-c6x-2.0.0.63.bin. You can rename this binary to nand.bin and flash it onto your device to boot. (This is using ramfs, for NFS or other configuration, I will have to point you to our linux-c6x wiki, http://linux-c6x.org/wiki/index.php/Main_Page)

    I hope this isn't all too confusing. Let me know if this helps.

    -Ivan

  • This worked.  I have booted the uC Linux now.  Thanks.

  • I opened another thread on this.  Today I am getting this same error again and can't get past it.  I don't think I changed anything since yesterday when it was working so I am not sure what do to to fix it.  Any ideas would be helpful.

    Thanks

  • Dave,

    What error(s) are you getting? Are you using the program_evm.js from the latest BIOS-MCSDK release?

    -Ivan

  • I have the latest MCSDK (downloaded last week).  Here is the transcript when I try to program my device.    After the transcript, I have included some extra info that may be helpful.  THANKS FOR ANY HELP you can provide.

    dave@UbuntuDevMachine:~/my-linux-c6x/projects/bootloader-support/program_evm$ ${DSS_SCRIPT_DIR}/dss.sh program_evm.js TMDXEVMC6678le-le

    board: evm6678l
    endian: Little
    emulation: XDS560 mezzanine
    binaries: /home/dave/my-linux-c6x/projects/bootloader-support/program_evm/binaries/evm6678l/
    ccxml: /home/dave/my-linux-c6x/projects/bootloader-support/program_evm/configs/evm6678l/evm6678le-linuxhost.ccxml
    SEVERE: Can't generate board data file /home/dave/.TI/3123642554/0/0/BrdDat/ccBoard0.dat
    An invalid processor ID has been found.

    SEVERE: Could not start server: DebugServer.1: Can't generate board data file /home/dave/.TI/3123642554/0/0/BrdDat/ccBoard0.dat
    An invalid processor ID has been found.

    org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Could not start server: DebugServer.1: Can't generate board data file /home/dave/.TI/3123642554/0/0/BrdDat/ccBoard0.dat
    An invalid processor ID has been found.
    (program_evm.js#269)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:204)
    at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
    at org.mozilla.javascript.gen.c1._c0(program_evm.js:269)
    at org.mozilla.javascript.gen.c1.call(program_evm.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
    at org.mozilla.javascript.gen.c1.call(program_evm.js)
    at org.mozilla.javascript.gen.c1.exec(program_evm.js)
    at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:503)
    at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:425)
    at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:391)
    at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:382)
    at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:179)
    at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:100)
    at org.mozilla.javascript.Context.call(Context.java:528)
    at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:450)
    at org.mozilla.javascript.tools.shell.Main.exec(Main.java:162)
    at com.ti.ccstudio.apps.internal.scripting.RunScript$1.run(RunScript.java:88)
    Caused by: com.ti.ccstudio.scripting.environment.ScriptingException: Could not start server: DebugServer.1: Can't generate board data file /home/dave/.TI/3123642554/0/0/BrdDat/ccBoard0.dat
    An invalid processor ID has been found.

    at com.ti.debug.engine.scripting.DebugServer$SessionFactory.<init>(DebugServer.java:161)
    at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.java:1339)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
    ... 18 more

    dave@UbuntuDevMachine:~/my-linux-c6x/projects/bootloader-support/program_evm$ ll
    total 60
    drwxr-xr-x 6 dave dave 4096 2013-02-07 16:14 ./
    drwxr-xr-x 5 dave dave 4096 2013-01-30 17:21 ../
    drwxr-xr-x 16 dave dave 4096 2013-01-30 17:21 binaries/
    drwxr-xr-x 9 dave dave 4096 2013-01-30 17:21 configs/
    drwxr-xr-x 2 dave dave 4096 2013-01-30 17:21 gel/
    drwxr-xr-x 2 dave dave 4096 2013-02-07 17:18 logs/
    -rw-r--r-- 1 dave dave 11814 2013-02-07 16:39 program_evm.js
    -rw-r--r-- 1 dave dave 12257 2013-02-01 13:57 program_evm.js.not_working
    -rw------- 1 dave dave 10777 2013-02-01 14:27 program_evm.js.save

    dave@UbuntuDevMachine:~/my-linux-c6x/projects/bootloader-support/program_evm$ export | grep DSS_SCRIPT_DIR
    declare -x DSS_SCRIPT_DIR="/home/dave/ti/ccsv5/ccs_base/scripting/bin"

  • Dave,

    I am going to have to ask you to use our latest program_evm package again. Whatever you have in your ~/my-linux-c6x/projects/bootloader-support/program_evm directory is not working because the target configuration is incorrect (most likely just outdated). Here are my recommended steps:

    $ export DSS_SCRIPT_DIR=/home/dave/ti/ccsv5/ccs_base/scripting/bin

    $ cd /home/dave/ti/mcsdk_2_01_02_05/tools/program_evm

    $ ${DSS_SCRIPT_DIR}/dss.sh program_evm.js TMDXEVMC6678le-le

    This will navigate to the BIOS-MCSDK package you downloaded previously and use the program_evm tool from there. Let me know if this works.

    -Ivan

  • that fixed it..thanks.