CCSSIM2 ISS - Can not debug on instruction set simulator for T4240, Error message: "Failed to correctly configure the JTAG chain"

cancel
Showing results for 
Search instead for 
Did you mean: 

CCSSIM2 ISS - Can not debug on instruction set simulator for T4240, Error message: "Failed to correctly configure the JTAG chain"

Jump to solution
837 Views
richardprokesch
Contributor II

Hello,

 

I'm trying to debug a simple Hello-World program with the instruction-set-simulator for T4240 using CodeWarrior 10.4.0 (Ubuntu Linux).

I configured the Debug Configuration with "Connection type" = "CCSSIM2 ISS",  "Automatic launch" and Port = 41475.

By starting the debug session, "ccssim2" program is automatically launched on localhost, but right after launch the following error message is displayed:

 

Error launching DebugTest-core00_RAM_T4240_Download

CCSProtocolPlugin : Failed to correctly configure the JTAG chain

[CCS last error: Network fault ]

 

 

 

Here is the logging output:

 

ccs_open

    ipaddr = 127.0.0.1

    port = 41475

    timeout = 60

    serverh = 0

    ccs_open; ccs_error = 10

    Error message: Connection refused

ccs_open

    ipaddr = 127.0.0.1

    port = 41475

    timeout = 60

    serverh = 0

    ccs_open; ccs_error = 0

ccs_get_connection_count

    serverh = 0

    count = 1

    ccs_get_connection_count; ccs_error = 0

ccs_set_timeout

    serverh = 0

    timeout = 60

    ccs_set_timeout; ccs_error = 0

ccs_get_config_chain

    serverh = 0

    device_list: (size = 0)

    ccs_get_config_chain; ccs_error = 0

ccs_config_chain

    serverh = 0

    cc = 0

    device_list: (size = 1)

        device[0]:: core_type=T4240(206)

    ccs_config_chain; ccs_error = 37

    Error message: CCS Sim error

ccs_kill_server

    serverh = 0

    ccs_kill_server; ccs_error = 3

    Error message: Network fault

 

Thanks for any suggestions,

Richard

Labels (1)
1 Solution
471 Views
marius_grigoras
NXP Employee
NXP Employee

Hi,

According with the

Installation(make sure you run on a linux 64-bit machine): PA\ccs\bin\linux64\sc3900_swsim_README.txt

--------------

1. Unzip the package in some folder with keeping archive directory tree.

2. cd to the archive directory.

3. run ccssim2 server for connection with CW or runsim for batch mode simulation(make sure to change all files permissions to executables)

  Example: ./ccssim2 -port 40969

4. If you run with CW you need to make the following changes to the project after ccssim2 is started on linux 64-bit machine:

  - go to Run - Debug Configuration - select the configuration for your project

  - go to Connection - Edit - Connection - check Manual launch

  - put at Server hostname/IP - the ip of the linux 64-bit machine where you started ccssim2 on

  - put at Server port name - the port on which you started ccssim2(in our example 40969)

So, please make sure the simulator is running and the debugging port is correctly set up in CW.

Regards,

Marius

View solution in original post

4 Replies
471 Views
richardprokesch
Contributor II

Thanks for the fast reply!

I tried CodeWarrior on latest Fedora 64bit and Ubuntu 64bit version and got the same error messages.

Here is a screenshot of my debug configuration:

Debug_configs.png

And here is a screen shot of the error message (in the terminal window you can see that ccssim2 is automatically started by CodeWarrior).

CCSSIM_Error.png

Did I forget something to configure?

Thanks,

Richard

0 Kudos
472 Views
marius_grigoras
NXP Employee
NXP Employee

Hi,

According with the

Installation(make sure you run on a linux 64-bit machine): PA\ccs\bin\linux64\sc3900_swsim_README.txt

--------------

1. Unzip the package in some folder with keeping archive directory tree.

2. cd to the archive directory.

3. run ccssim2 server for connection with CW or runsim for batch mode simulation(make sure to change all files permissions to executables)

  Example: ./ccssim2 -port 40969

4. If you run with CW you need to make the following changes to the project after ccssim2 is started on linux 64-bit machine:

  - go to Run - Debug Configuration - select the configuration for your project

  - go to Connection - Edit - Connection - check Manual launch

  - put at Server hostname/IP - the ip of the linux 64-bit machine where you started ccssim2 on

  - put at Server port name - the port on which you started ccssim2(in our example 40969)

So, please make sure the simulator is running and the debugging port is correctly set up in CW.

Regards,

Marius

471 Views
richardprokesch
Contributor II

Thanks, that helped!

I didn't noticed the linux64 directory in PA\ccs\bin path.

After decompressing the tar file and starting up ccssim2 manually from the linux64 path it worked.

Regards,

Richard

471 Views
lunminliang
NXP Employee
NXP Employee

Hi,

The T4240ISS needs a Linux 64-bit host for operation, see the OS description in release note

Added and tested the support for the following operating systems for both B4860ISS and T4240ISS:

  Linux64 - CentOS 6.3

  Linux64 - OpenSUSE 12.3

  Linux64 - Debian 7.1

  Linux64 - Red Hat 6.3

  Windows 8/32 bits (only for B4860ISS)

Maybe you can try one of them?

0 Kudos