Hi,
In p2020RDB-PC_init_core.tcl, I find the codes:
# Set a breakpoint at the reset address | |
reg ${SPR_GROUP}IAC1 = 0xfffffffc | |
reg ${SPR_GROUP}DBCR0 = 0x40800000 | |
reg ${SPR_GROUP}DBCR1 = 0x00000000 |
What's the meaning of the codes?
Where can I find the field descriptions about SPR_GROUP?
Best regards,
Min Zhao
Solved! Go to Solution.
If you want to set NOR base address to 0xF_FE00_0000, then LAWBAR0 will be:
mem [CCSR 0xc08] = 0x00FFE000
Note that the minimun size of any LAW is 4Kbytes, so the 12 lowest-order bits of the base address cannot be specified. You can find more information in processor reference manual.
Adrian
Please take a look in processor reference manual for details about registers. Also, you have the possibility to have a quickly view over registers using Register Details from CodeWarrior. Just open CodeWarrior IDE and click on Register Details icon (see the attached screenshot).
Adrian
I still have some confusion about the register.
In p2020RDB-PC_init_core.tcl, I find the codes:
##################################################################################
# Memory Windows
#
# 0xFF000000 0xFFFFFFFF LAW0 Local Bus NOR FLASH - 16M
# 0xA0000000 0xBFFFFFFF LAW1 PEX1 - 512M
# 0xEFC20000 0xEFC2FFFF LAW2 PEX1 - 64K
# 0x80000000 0x9FFFFFFF LAW3 PEX2 - 512M
# 0xEFC10000 0xEFC1FFFF LAW4 PEX2 - 64K
#0xF8000000 0xF80FFFFF LAW5 Local Bus NAND FLASH 1M
# 0x00000000 0x3FFFFFFF LAW11 DDRC - 1G
#
##################################################################################
# configure local access windows
# LAWBAR0 - Local Bus
# bit 8 - 31 = 0xFF000000 - base addr
mem [CCSR 0xc08] = 0x000ff000
##################################################################################
In my board,I have a 4GB DDR,32MB NOR, so I must use 36-bit.
How should I set the Registers? I found they only can use 32-bit?
For example my NOR's base address is 0xF_FE000000,
then mem [CCSR 0xc08] = ?
Best regards,
Min Zhao
If you want to set NOR base address to 0xF_FE00_0000, then LAWBAR0 will be:
mem [CCSR 0xc08] = 0x00FFE000
Note that the minimun size of any LAW is 4Kbytes, so the 12 lowest-order bits of the base address cannot be specified. You can find more information in processor reference manual.
Adrian