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.

CCS/AM3358: AM335x EVM connection fail using J-Link emulator

Part Number: AM3358
Other Parts Discussed in Thread: SEGGER, AM3352

Tool/software: Code Composer Studio

Dear Champs,

My customer is using CCSv7.2.0 on Ubuntu 16.04 to connect AM335x GP EVM with J-link JTAG debugger, but failed with below error message.

Unable to load /home/jhlim/ti/ccsv7/DebugServer/drivers/JLINK2GTiAdapter.dvr: /home/jhlim/ti/ccsv7/ccs_base/DebugServer/drivers/JLINK2GTiAdapter.dvr:cannot open shared object file:No such file or directory.

Of course, they updated J-link update in CCS update as below url,

http://processors.wiki.ti.com/index.php/J-Link_Emulator_Support

 

and they found there is 'JLINK2GTiAdapter.dvr' but different directory('/home/jhlim/ti/ccsv7/ccs_base/DebugServer/drivers/JLINK2GTiAdapter.dv')

Do you have any idea how this connection failure can be resolved?

Do you have any idea why there is wrong directory in error msg? 

Even when they forced to make directory '/home/jhlim/ti/ccsv7/ccs_base/DebugServer/drivers/JLINK2GTiAdapter.dvr' as error message, they still failed.

Could you please help on this?

Thanks and Best Regards,

SI.

  • Sung-IL said:
    My customer is using CCSv7.2.0 on Ubuntu 16.04 to connect AM335x GP EVM with J-link JTAG debugger, but failed with below error message.

    Unable to load /home/jhlim/ti/ccsv7/DebugServer/drivers/JLINK2GTiAdapter.dvr: /home/jhlim/ti/ccsv7/ccs_base/DebugServer/drivers/JLINK2GTiAdapter.dvr:cannot open shared object file:No such file or directory.

    The name of the file which can't be loaded is JLINK2GTiAdapter.dvr contains a mixture of upper-and-lower case characters.

    Looking at a CCS 7.2 installation under Ubuntu 16.04 in which J-Link support was installed by CCS 7 installer shows the following file, i.e. with a lower case jlink2gtiadapter.dvr filename:

    <ccs_install_root>/ccsv7/ccs_base/DebugServer/drivers/jlink2gtiadapter.dvr

    Since Linux is a case sensitive file system explains the error loading the /home/jhlim/ti/ccsv7/ccs_base/DebugServer/drivers/JLINK2GTiAdapter.dvr file.

    Looking at the CCS 7.2 installation under Ubuntu shows the following device XML files which contain the incorrect JLINK2GTiAdapter.dvr filename with a mix of upper-and-lower case filenames:

    ccsv7/ccs_base/common/targetdb/drivers/jlinkcortexm3.xml (1 hit)
    Line 4: <driver file="..\..\..\DebugServer\drivers\JLINK2GTIAdapter.dvr">
    ccsv7/ccs_base/common/targetdb/drivers/jlinkcortexm4.xml (2 hits)
    Line 4: <driver file="..\..\..\DebugServer\drivers\JLINK2GTIAdapter.dvr">
    Line 20: <driver file="..\..\..\DebugServer\drivers\jlink2gtiadapter.dvr">
    ccsv7/ccs_base/common/targetdb/drivers/jlinkcortexr5.xml (1 hit)
    Line 4: <driver file="..\..\..\DebugServer\drivers\JLINK2GTIAdapter.dvr">
    ccsv7/ccs_base/common/targetdb/drivers/jlinkcortexa8.xml (1 hit)
    Line 4: <driver file="..\..\..\DebugServer\drivers\JLINK2GTIAdapter.dvr">

    Suggest you ask the customer to try editing the /home/jhlim/ti/ccsv7//ccs_base/common/targetdb/drivers/jlinkcortexa8.xml file and change JLINK2GTIAdapter.dvr to jlink2gtiadapter.dvr to see if that fixes the error.

  • SI,

    Did Chester's suggestion work?

    Regards,
    John
  • Hi,

    Thanks for your support and it was very helpful.
    And also, we found there was permission issue in Linux server, and we solved issue.


    Thanks and Best Regards,
    SI.
  • Chester Gillon said:
    Looking at the CCS 7.2 installation under Ubuntu shows the following device XML files which contain the incorrect JLINK2GTiAdapter.dvr filename with a mix of upper-and-lower case filenames:

    Is that a bug in the device XML files supplied by TI or Segger?

    Does a defect need to be raised to correct the files?

  • Chester,

    I believe that file comes from Segger but I will confirm and if it does I will let them know. If it comes from TI I will file a defect against CCS.

    Regards,
    John
  • Segger will deploy an updated JLink support package with the fix in the next couple of weeks.

    Regards,
    John
  • JohnS said:
    Segger will deploy an updated JLink support package with the fix in the next couple of weeks.

    SEGGER J-Link Support (Linux) 6.16.7.0 has been released, which fixes the error not being able to load JLINK2GTIAdapter.dvr when using CCS 7.20 under Linux to debug an AM3352 using a Segger J-Link.

    However, CCS now crashes for which I created the new thread CCS/AM3352: CCS 7.2.0.00013 under Ubuntu 16.04 crashes when SIGABRT when attempt to use Segger J-Link support v6.16.7.0 to debug a AM3352