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.

AM6442: batch file that automatically runs the programming sequence

Part Number: AM6442
Other Parts Discussed in Thread: UNIFLASH

Dear e2e team,

The AM6442 seems quite inconvenient because it requires to train a person to test and program the board, launch the CCS, connect to the target, open the serial, run a couple of scripts and check that these scripts provide a positive result.

Is it possible to perform all this procedure from the command line? In other words, is it possible to use a batch file that automatically runs the programming sequence?

In this case the procedure is the same on all the boards and the operator has only to run the batch and read the result (pass / fail).

I found this on ti.com --> https: // software- dl.ti.com/ccs/esd/documents/sdto_dss_loadti.html --> Is it valid for AM64x ?

Thanks,

Giorgia

  • Giorgia,

    Thanks for your query & the feedback. we are working on improving the ease of use aspect of SITARA processors and these feedbacks are quite helpful.

    give us two days to confirm the loadti applicability on AM6442.

    can you describe your test sequence in more detail so that we can help better.

    also if there are other suggestions towards improving the user experience of AM644x processors in general it would be quite helpful.

    Regards

    Anshu 

  • Hi Anshu,

    This is the procedure:
    • connect the jtag to Sitara, start code composer studio (CCS) and launch the target configuration, so as to enter debug mode
    • in the "scripting console" execute loadJSFile [SDK path] /tools/ccs_load/am64x/load_dmsc.js
    • run a second custom javascript which:
     connects to core R5
     download an appimage in DDR
     download an application in MSRAM
     which copies the appimage from the GDR to the MMC

    This procedure not only requires the use of the CCS but also an operator to manually perform some operations and read the information that the 2 javascript print on the console; all of this is a potential source of error.

    A possible alternative, which does not require the execution of the CCS, is to download applications via Uart via Uniflash.
    In this case, it is possible to program the target with a python script launched from a DOS window and the whole procedure is automated; the only drawback is that the Uart works at 115200bps and therefore the time required to program a card is significantly longer than the time required by the procedure via Jtag.

    Thanks,

    Giorgia

  • Giorgia,

    My guess is your target OS ( to run the batch file / python script) is windows Only. is that correct?

    Regards

    Anshu

  • Hi Giorgia,
    please find an example to run compiled hello world on R50 core using command line

    there are following parameters that needs to be passed to Loadti script
    1. Target CPU (-cpu = "MAIN_Cortex_R5_0_0")
    2. Target Config File : this file can be loacted at <Workspace Folder>\hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang\targetConfigs\
    3. The .out file

    see the example below for sample command line
    the complete path to loadti script can be avoided if you update the path environment variable as specified here software-dl.ti.com/.../sdto_dss_loadti.html


    Example:
    <CCS Installation Directory>\ccs\ccs_base\scripting\examples\loadti\loadti -t=<timeout in milli seconds> -r -cpu="MAIN_Cortex_R5_0_0" -c=<Workspace Folder>\hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang\targetConfigs\Am64.ccxml <Workspace Folder>\hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang\Debug\hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang.out

    I am working on your flow. Please allow me sometime to get back.

    Regards,
    Tushar

  • Hi Tushar,

    The procedure works perfectly, Thank you very much for your help!

    Regards,

    Giorgia