AnsweredAssumed Answered

Jtag Connection to QorIQ p1021: [CCS last error: ELF is not in expected HALT mode ](CCSProtocolPlugin)

Question asked by alfonsokame on Mar 15, 2013
Latest reply on May 7, 2013 by esode

Hello,

 

I'm having trouble to connect to my Bareboard based on the P1021 processor using CodeWarrior for PA Version: 10.1.2. I checked the JTAG pins and they seem to be OK. While executing the initialization script (p1021RDB_init_core.tcl), the debugger seems not be able to stop and halt the processor. It hangs while executing this script.

 

Any idea what is wrong here? The goal is to flash the bootloader to the SPI Flash.

 

Here is the Log

 

ccs_open

    ipaddr = 127.0.0.1

    port = 41475

    timeout = 15

    serverh = 0

    ccs_open; ccs_error = 0

ccs_get_connection_count

    serverh = 0

    count = 1

    ccs_get_connection_count; ccs_error = 0

ccs_available_connections

    serverh = 0

    count = 0

    ccs_available_connections; ccs_error = 0

ccs_available_connections

    serverh = 0

    count = 0

    ccs_available_connections; ccs_error = 0

ccs_config_cc

    serverh = 0

    config_string = utap:0

    ccs_config_cc; ccs_error = 0

...

...

 

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 2032

    count = 2

    size = 4

    value: (size = 8)

         FFFFFFF8 00000000

    ccs_read_register; ccs_error = 0; duration=1 ms

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 8

    count = 2

    size = 4

    value: (size = 8)

         00000000 00000000

    ccs_read_register; ccs_error = 0; duration=1 ms

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 1

    count = 1

    size = 4

    value: (size = 4)

         00000000

    ccs_read_register; ccs_error = 0; duration=1 ms

ccs_read_mem

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    addr = [space:0;size:4;address:0xffffff00]

    data: (size = 256)

         09000000 00000000 01000000 03000000

         00000000 03000000 00000000 00000000

         D4120000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

    ccs_read_mem; ccs_error = -2147418106; duration=2 ms  

    Error message: cannot start SAP transaction   

 

Executing Initialization File: C:\Users\InstAdmin\workspace1\fuziuzu-core0/CFG/P1021RDB_init_core.tcl

ccs_stop_core

    coreh = [serverh:0;cc_index:0;chain_pos:1]

radix x

cmdwin::eclipse::config hexprefix 0x

cmdwin::eclipse::config MemIdentifier v

cmdwin::eclipse::config MemWidth 32

cmdwin::eclipse::config MemAccess 32

cmdwin::eclipse::config MemSwap off

 

cmdwin::reg e500 Special Purpose Registers/PIR %d -np

    ccs_stop_core; ccs_error = 0

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 2032

    count = 1

    size = 4

    value: (size = 4)

         FFFFFFFC

    ccs_read_register; ccs_error = 0; duration=1 ms

ccs_read_reg

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 63

    count = 1

    value: (size = 1)

         0x00000000

    ccs_read_reg; ccs_error = 0; duration=1 ms

ccs_read_reg

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 406

    count = 1

    value: (size = 1)

         0x00000000

    ccs_read_reg; ccs_error = 0; duration=0 ms

ccs_read_reg

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 415

    count = 1

    value: (size = 1)

         0x00000000

    ccs_read_reg; ccs_error = 0; duration=1 ms

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 286

    count = 1

    size = 4

    value: (size = 4)

         00000000

    ccs_read_register; ccs_error = 0; duration=1 ms

ccs_read_mem

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    addr = [space:0;size:4;address:0xffffff00]

    data: (size = 256)

         09000000 00000000 01000000 03000000

         00000000 03000000 00000000 00000000

         DF120000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

         00000000 00000000 00000000 00000000

    ccs_read_mem; ccs_error = -2147418106; duration=2 ms 

    Error message: cannot start SAP transaction 

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 285212672

    count = 1

    size = 4

cmdwin::stop

    value: (size = 4)

         66029B02

    ccs_read_register; ccs_error = -2147418106; duration=3 ms

    Error message: cannot start SAP transaction

 

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 2032

    count = 2

    size = 4

    value: (size = 8)

         FFFFFFF8 00000000

    ccs_read_register; ccs_error = 0; duration=1 ms

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 1

    count = 1

    size = 4

    value: (size = 4)

         00000000

    ccs_read_register; ccs_error = 0; duration=0 ms

thread break: Stopped, 0x0, 0x0, cpuPowerPCBig,  Connected (state, tid, pid, cpu, target)

 

cmdwin::reg e500 Special Purpose Registers/IVPR = 0xFFFF0000

ccs_write_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 63

    count = 1

    size = 4

    value: (size = 4)

         FFFF0000

    ccs_write_register; ccs_error = 0; duration=1 ms

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 63

    count = 1

    size = 4

    value: (size = 4)

         FFFF0000

    ccs_read_register; ccs_error = 0; duration=1 ms

 

cmdwin::reg e500 Special Purpose Registers/IVOR15 = 0x0000F000

ccs_write_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 415

    count = 1

    size = 4

    value: (size = 4)

         0000F000

    ccs_write_register; ccs_error = 0; duration=1 ms

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 415

    count = 1

    size = 4

    value: (size = 4)

         0000F000

    ccs_read_register; ccs_error = 0; duration=1 ms

 

cmdwin::reg e500 Special Purpose Registers/IVOR6 = 0x0000F700

ccs_write_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 406

    count = 1

    size = 4

    value: (size = 4)

         0000F700

    ccs_write_register; ccs_error = 0; duration=1 ms

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 406

    count = 1

    size = 4

    value: (size = 4)

         0000F700

    ccs_read_register; ccs_error = 0; duration=1 ms

 

cmdwin::reg e500 Special Purpose Registers/IAC1 = 0xfffffffc

ccs_write_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 312

    count = 1

    size = 4

    value: (size = 4)

         FFFFFFFC

    ccs_write_register; ccs_error = 0; duration=1 ms

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 312

    count = 1

    size = 4

    value: (size = 4)

         FFFFFFFC

    ccs_read_register; ccs_error = 0; duration=0 ms

 

cmdwin::reg e500 Special Purpose Registers/DBCR0 = 0x40800000

ccs_write_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 308

    count = 1

    size = 4

    value: (size = 4)

         40800000

    ccs_write_register; ccs_error = 0; duration=1 ms

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 308

    count = 1

    size = 4

    value: (size = 4)

         40800000

    ccs_read_register; ccs_error = 0; duration=1 ms

 

cmdwin::reg e500 Special Purpose Registers/DBCR1 = 0x00000000

ccs_write_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 309

    count = 1

    size = 4

    value: (size = 4)

         00000000

    ccs_write_register; ccs_error = 0; duration=1 ms

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 309

    count = 1

    size = 4

    value: (size = 4)

         00000000

    ccs_read_register; ccs_error = 0; duration=1 ms

 

cmdwin::reg Standard Special Purpose Registers/MSR = 0x02000200

ccs_write_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 2034

    count = 1

    size = 4

    value: (size = 4)

         02000200

    ccs_write_register; ccs_error = 0; duration=1 ms

ccs_read_register

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 2034

    count = 1

    size = 4

    value: (size = 4)

         02000200

    ccs_read_register; ccs_error = 0; duration=0 ms

cmdwin::eclipse::config runcontrolsync off

cmdwin::go

ccs_read_reg

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 308

    count = 1

    value: (size = 1)

         0x40800000

    ccs_read_reg; ccs_error = 0; duration=1 ms

ccs_read_reg

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 2034

    count = 1

    value: (size = 1)

         0x02000200

    ccs_read_reg; ccs_error = 0; duration=1 ms

ccs_write_reg

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    index = 308

    count = 1

    value: (size = 1)

         0x41800000

    ccs_write_reg; ccs_error = 0; duration=0 ms

ccs_out

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    ccs_io addr: (size = 4)

         0x00000000 0x00007531 0x00000000 0x00000000

    value: (size = 8)

         00000000 00000200

    ccs_out; ccs_error = 0; duration=0 ms

ccs_run_core

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    ccs_run_core; ccs_error = 0

cmdwin::wait 50

cmdwin::eclipse::config runcontrolsync on

cmdwin::stop

ccs_stop_core

    coreh = [serverh:0;cc_index:0;chain_pos:1]

    ccs_stop_core; ccs_error = -2147418101 

    Error message: ELF is not in expected HALT mode 

 


Any idea??


Thanks a lot!

 

.

Outcomes