Codewarrior Tap connect MPC8280 Issue.

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

Codewarrior Tap connect MPC8280 Issue.

1,162 Views
dongcarlles
Contributor II

I am new to freescale mcus. Now I am working on a MPC8280 Board using Codewarrior Tap. I met a issue when I connect MPC8280 using codewarrior tap. I describe it as following.

I pull up nRSTCOF to use internal configuration word which is zero. And I Successfully connect Codewarrior Tap to 8280. I can access CPU register like MSR. But I can not get access to memory map register like BR1,OR1.  I don't know why? any one can help?

Plus I am using CW 8.8

Labels (1)
8 Replies

858 Views
lhb_will
Contributor IV

请问你解决这个问题了吗?

0 Kudos

858 Views
lunminliang
NXP Employee
NXP Employee

Hello Dong Carlles,

Are you trying to view from the debugger register window, or view from memory window, or access from software code?

Regards

Lunmin

0 Kudos

858 Views
dongcarlles
Contributor II

Yes, I am trying to access  the configuration registers when I view the debugger register. But it fails. I can only access the G2_LE core registers like MSR. But I can not access the configuration register like BR0 BR1..etc.

0 Kudos

858 Views
lunminliang
NXP Employee
NXP Employee

Hello Dong Carlles,

Sorry for late, can you please take a photo shot of the failure?

Regards

Lunmin

0 Kudos

858 Views
dongcarlles
Contributor II

Hi,lunminliang,

     Thank you for response.

  1.      Figure one show that I can connect to the MPC8280 as following.

3.png

2, Figure w show that I can get access to the 8280 core.

2.png

3. Figure three show that I can not access other registers. It is all zeros. And I cannot modify it.

1.png]

Hope you can give some instruction on this. Thank you.

0 Kudos

858 Views
lunminliang
NXP Employee
NXP Employee

Hello Dong Carlles,

Do you have a proper .cfg file for the connection?

Regards

Lunmin

0 Kudos

858 Views
dongcarlles
Contributor II

I write a .cfg file but I seems have no affection to this. No matter how I modify it. It just perform the same.

Here is the configure file content.

writereg MBAR 0x0f000000

writemmr IMMR 0x01000000

writereg MBAR 0x01000000

#Main System Clock Configuration Registers

writemmr SYPCR 0xFFFFFF81 # SYPCR: turn off watchdog timer

writemmr SCCR 0x00000001 #  Force baud rate clock divisor = 16

writemmr RMR 0x0001   # generate reset when core enters checkstop state.

# Setup the chip selects

# CS0 - 32MB flash

writemmr BR0 0xFE001001

writemmr OR0 0xFE000876

# CS1 - 8MByte(2*16bits + 2*16bits) SRAM

writemmr BR1 0x10001801

writemmr OR1 0xFF800876

writemmr MPTPR 0x2000 # MPTPR: Set the Memory Periodic Timer Prescaler

writemmr PSRT 0x1F # set 60x Bus assigned SDRAM Refresh Timer (PSRT) ~ 15.6us

writemmr SIUMCR 0x05340C00 # Set SIU configuration bits

writemmr TESCR1 0x00004000  # 60x bus data errors disabled

writemmr L_TESCR1 0x00004000

writereg MSR 0x3002   # Machine Mode Register

From my view, after I write MBAR, then I can write and read at least IMMR. And I try to just write MBAR and IMMR. I still can not access the IMMR. It still stay on zero.

858 Views
dongcarlles
Contributor II

Plus: MPC8280 will also reset after about 20~30 seconds.

0 Kudos