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.

TMS320F28062 Debugging problem

Other Parts Discussed in Thread: TMS320F28062, TMS320F28335, CCSTUDIO

Hi everybody

I have designed a board with TMS320F28062 .

I use Code Composer Studio Version: 5.5.0.00077 and  XDS100_v2 USB Emulator.

I have checked target configuration and test the connection. JTAG test has succeed.


I import an existing sample project into CCS and compile without any problem. From project properties I set the device and emulator properly. And add an new target configuration file (.ccxml) to the project.

When I start to debug  I face the following error messages:

Error calling target: onIDEEvent.

java.lang.NullPointerException
at com.ti.dvt.control.engine.activities.controlxml.ControlXMLActivity.callMethod(ControlXMLActivity.java:226)
at com.ti.dvt.analysis.suite.UseCaseActivityProvider.onIDEEvent(UseCaseActivityProvider.java:852)
at com.ti.dvt.ideadapter.IDE.fireEvent(IDE.java:506)
at com.ti.dvt.ideadapter.IDEAdapterManager.setCurrentIDECPU(IDEAdapterManager.java:443)
at com.ti.dvt.ccstudioideadapter.CCStudioIDEAdapter.debugSessionActivated(CCStudioIDEAdapter.java:698)
at com.ti.dvt.ccstudioideadapter.DebugSessionHandler.debugSessionStarted(DebugSessionHandler.java:118)
at com.ti.dvt.ccstudioideadapter.DebugSessionHandler.handleEvent(DebugSessionHandler.java:143)
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.eclipse.cdt.dsf.service.DsfSession.doDispatchEvent(DsfSession.java:519)
at org.eclipse.cdt.dsf.service.DsfSession.access$2(DsfSession.java:463)
at org.eclipse.cdt.dsf.service.DsfSession$3.run(DsfSession.java:390)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

 

Error during DVT action: Problem: failed to create task or type dvt.import
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
: Problem: failed to create task or type dvt.import
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

C:\ti\ccsv5\ccs_base\common\analysis\usecases\dvt\Cache_Event_Analysis.control.xml:16: Problem: failed to create task or type dvt.import
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

at org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:487)
at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:419)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163)
at org.apache.tools.ant.Task.perform(Task.java:347)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:180)
at org.apache.tools.ControlTaskRunner.initImpl(ControlTaskRunner.java:308)
at org.apache.tools.ControlTaskRunner$1.run(ControlTaskRunner.java:357)
at com.ti.dvt.control.engine.types.IRun$Run.run(IRun.java:79)

These two error messages repeats 4 times at each debug attempt.

I have never managed to load the out file to the device and debug.

Waiting for your help , suggestions.

Best Regards

  • Hi,

    The above issue seems to be due to JAVA malfunctioning or something similar.
    Can you try to re-install CCS v5.5 again? Don't forget to tick C2000 family and respective emulators. Also, observe whether the JAVA installer succeeds!

    Regards,
    Gautam
  • Dear Gautam

    Thank you for your reply.

    Last few days I had lived a problem about XDAIS. So I have read the messages form this forum and re-installed CCS v.5.5 in complete mode.
    During installation no problem occured. All succeeded.

    After re-installing CCS XDAIS problem disappered but I have this new problem.

    By the way using the same tools I can debug another board with TMS320F28335 properly.


    I have just realized that in Event Details(error explanations) window there is a section as Session Data as follows;

    eclipse.buildId=M20120914-1540
    java.version=1.6.0_13
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=tr_TR
    Framework arguments: -product com.ti.ccstudio.branding.product
    Command-line arguments: -os win32 -ws win32 -arch x86 -product com.ti.ccstudio.branding.product

    As you see here java version of CCS5 is 1.6.0_13.
    In my computer installed Java version is 1.8.0_25-b18

    Maybe my problem occurs because of these different versions?

    All suggestions, helps will be highly appreciated.
  • Hello,
    I have moved you post to the Code Composer forum.  They should be better equipped to resolve your issue.

    Thank you,
    Brett

  • Debugging another board successfully is a bit wierd!  Java version conficts can also trouble you... but one device works and other doesn't... is a bit strange! Lets wait for an expert opinion here.

    Regards,

    Gautam

  • The project with 28335 was first  created in CCS V4 and moved to CCS V.5 without any problem.

    But the project with 28062 is  new. When I create a new one or import an existing sample project I always see this problem.

    When I start the debug it first compiles without error then erases flash sectors without error then during loading these errors occur.