Debug configuration starts with an error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug configuration starts with an error

Jump to solution
1,891 Views
janbrand
Contributor II

Hello!

 

I've got a problem with CodeWarrior Development Studio for QorIQ LS series (10.0.8) and my LS1021atwr. I want to use the CodeWarrior TAP for debugging.  I'm not able to open debug configuration without the following Problem: (a jpeg is added to this post, too) "An error has occurred. See error log for more details. com.freescale.sa.configurator.ls.jni.LSConfigLoader_JNI.init(Ljava/lang/String;)V"

I don't know how to fix this...

Had has anyone this error already?

 

kind regards,

Jan

Labels (1)
1 Solution
1,649 Views
addiyi
NXP Employee
NXP Employee

Go to CW_ARMv7/ARMv7/sa_ls/bin and run createlinks_xpcom.sh. Restart CW and try again. This should solved the problem.

Adrian

View solution in original post

16 Replies
1,649 Views
addiyi
NXP Employee
NXP Employee

Hi Jan,

Which OS are you using?

Adrian

0 Kudos
1,649 Views
janbrand
Contributor II

Hi,

actually I'm trying with Ubuntu 14.04 LTS...

Jan

0 Kudos
1,649 Views
addiyi
NXP Employee
NXP Employee

Did you run setuplinux.sh script and the commands form Dependency installation, in README? This errors is generated by missing of libexpat.

Adrian

0 Kudos
1,649 Views
janbrand
Contributor II

Yes. First I ran ./setuplinux.sh from the tarball. Then I executed install_deps.sh with root: "~/Freescale/CW4NET_v2016.01$ sudo ./install_deps.sh" and the message: "dependency installed successfully" appears....

Jan

0 Kudos
1,649 Views
addiyi
NXP Employee
NXP Employee

Please rerun:

1. Ubuntu 12.04/14.04/15.04 or newer

    * Elevate to root using su

    * In the terminal run the following command:

        # sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386 libgtk2.0-0:i386 libxpm4:i386 libusb-0.1-4:i386 libusb-1.0-0:i386 libuuid1:i386 libxcb1:i386 libnspr4:i386 libglib2.0-0:i386 libxdamage1:i386 libxtst6:i386 libssl0.9.8:i386

Adrian

0 Kudos
1,649 Views
janbrand
Contributor II

Hi,

it seems to be all is up to date:

"# sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386 libgtk2.0-0:i386 libxpm4:i386 libusb-0.1-4:i386 libusb-1.0-0:i386 libuuid1:i386 libxcb1:i386 libnspr4:i386 libglib2.0-0:i386 libxdamage1:i386 libxtst6:i386 libssl0.9.8:i386Paketlisten werden gelesen... Fertig

Abhängigkeitsbaum wird aufgebaut.      

Statusinformationen werden eingelesen.... Fertig

libusb-0.1-4:i386 ist schon die neueste Version.

libusb-1.0-0:i386 ist schon die neueste Version.

libxcb1:i386 ist schon die neueste Version.

libxdamage1:i386 ist schon die neueste Version.

libxpm4:i386 ist schon die neueste Version.

libxtst6:i386 ist schon die neueste Version.

gcc-4.6-base:i386 ist schon die neueste Version.

libstdc++5:i386 ist schon die neueste Version.

libc6:i386 ist schon die neueste Version.

libgcc1:i386 ist schon die neueste Version.

libglib2.0-0:i386 ist schon die neueste Version.

libgtk2.0-0:i386 ist schon die neueste Version.

libnspr4:i386 ist schon die neueste Version.

libstdc++6:i386 ist schon die neueste Version.

libuuid1:i386 ist schon die neueste Version.

libssl0.9.8:i386 ist schon die neueste Version.

0 aktualisiert, 0 neu installiert, 0 zu entfernen und 44 nicht aktualisiert."

Jan

0 Kudos
1,649 Views
addiyi
NXP Employee
NXP Employee

Could you please issue next command in your ubuntu terminal "/sbin/ldconfig -vp | grep libexpat" and share the output? Also, could you provide .metadata folder from your workspace?

Adrian

0 Kudos
1,649 Views
janbrand
Contributor II

Here is the output from /sbin/ldconfig -vp | grep libexpat:

~$ /sbin/ldconfig -vp | grep libexpat

  libexpatw.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libexpatw.so.1

  libexpatw.so.1 (libc6) => /usr/lib/i386-linux-gnu/libexpatw.so.1

  libexpat.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libexpat.so.1

  libexpat.so.1 (libc6) => /lib/i386-linux-gnu/libexpat.so.1

metdata.tar is added to this post...

kind regards

Jan

0 Kudos
1,649 Views
addiyi
NXP Employee
NXP Employee

The library looks fine. Also, in log I don't see an error related to your first error. Did you still have that error? Did you tried to change the workspace?

Adrian

0 Kudos
1,649 Views
janbrand
Contributor II

Yes, It's still the same error even if i change the workspace...

0 Kudos
1,650 Views
addiyi
NXP Employee
NXP Employee

Go to CW_ARMv7/ARMv7/sa_ls/bin and run createlinks_xpcom.sh. Restart CW and try again. This should solved the problem.

Adrian

1,649 Views
janbrand
Contributor II

Thank you, that fixed the problem! I can open debug configuration without getting an error.

Now another error comes up (Added a .jpeg to this post). A terminal with ccs starts, but just put something out and closes. I can not get the Output - it's closing too fast... The CodeWarrior TAP is blinkin green on TX/RX (like standard) and for four very short times a red LED is shown. Then CodeWarrior ends with the Error....

Is there a relation between the erros?

kind regards,

Jan

0 Kudos
1,649 Views
addiyi
NXP Employee
NXP Employee

What is the CPU rev on your board?

Adrian

0 Kudos
1,649 Views
janbrand
Contributor II

This is what U-Boot is saying:

U-Boot 2014.07+ls1+g6747328 (Dec 07 2014 - 16:03:02)

CPU:   Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

       CPU0(ARMV7):1000 MHz,

       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

       00000000: 0608000a 00000000 00000000 00000000

       00000010: 70000000 00407900 e0025a00 21046000

       00000020: 00000000 00000000 00000000 00038000

       00000030: 00080000 48007340 00000000 00000000

Board: LS1021ATWR

CPLD:  V2.3

PCBA:  V4.0

VBank: 0

Jan

0 Kudos
1,649 Views
addiyi
NXP Employee
NXP Employee

Please take a look to LS1021A_TWR_README.txt:

Information about processor revision 1

#--------------------------------------------#

To debug a target with this processor revision you must use the CFG file "LS102xA_Rev1_ConfigChain.cfg" that can be found at the location

[CW install path]/ARMv7/ARM_Support/Configuration_Files/jtag_chains/. This file will be imported following the next steps:

1. Open "Debug Configurations..." and select your project;

2. Click on the "Edit..." button which can be found next to the drop list called "Connection" from the "Target Settings" view;

3. Click on the "Edit..." button which can be found next to the drop list called "Target";

4. Click on the "Edit..." button which can be found next to the drop list called "Target type";

5. Click "Import..." and then "File System..." and select the file specified above and then click OK until you return

to "Hardware or Simulator Target" window;

6. Select in the "Hardware or Simulator Target" window the initialization and memory files from the project;

7. Click OK until you return to "Debug Configurations..." window and click "Debug".

Adrian

0 Kudos
1,649 Views
janbrand
Contributor II

Ahhh great! That is working too! A big Thank You for your help!

Kind regards

Jan