AnsweredAssumed Answered

Initialization (.cfg) file by using CW and CW-TAP

Question asked by esode on Apr 24, 2013
Latest reply on Jun 14, 2013 by Marius Grigoras

Hello all,

 

 

I am using CW to bring up the P2010 chip on a custom board.

I am using a target initialization file (.cfg file) and the first lines of the file are:

 

 

writemem.l 0xFF720000 0xB0010000 #enable L2 as SRAM

writemem.l 0xFF720100 0xFFF00000 #set L2 SR BAR

 

writemem.l 0xFFFFF000 0x48000000 #instruction at debug interrupt

writemem.l 0xFFFFF700 0x48000000 #instruction at program interrupt

writemem.l 0xFFFFFFFC 0x48000000 #instruction at reset vector

 

# set interrupt vectors

writereg IVPR 0xFFFF0000 # IVPR (pointing to L2 SRAM location)

writereg IVOR15 0x0000F000 # debug - (a valid instruction should exist to be fetched)

writereg IVOR6 0x0000F700 # program

 

#######################################################################

# Set a breakpoint at the reset address

writereg IAC1 0xfffffffc

writereg DBCR0 0x40800000

writereg DBCR1 0x00000000

writereg MSR 0x02000200

 

writemem.l 0xFF701010 0x03010000 #enable CPU0 and CPU1

 

run

sleep 0x10

stop

 

 

I have enabled the CCS logging in the CW and the error-output is:

 

ccs_write_mem

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

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

  data: (size = 4)

  B0010000

  ccs_write_mem; ccs_error = -2147483641; duration=30 ms

  Error message: SAP error

 

 

It seems that the error is occurred at the first line of the .cfg file. CW and CW-TAP cannot execute the writemem.l command in the .cfg file.

I would appreciate any idea/clue about the problem. My jtag chain file configuration is

 

P2010 (2 0)

Generic 10 1 0x3FF

Generic  8 1 0xFF

 

Outcomes