NOR's base address for p2020 in Codewarrior

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

NOR's base address for p2020 in Codewarrior

Jump to solution
807 Views
敏赵
Contributor I

Hello there,

I know the NOR's address is assigned in ff000000~ffffffff in Codewarrior for p2020rdb-pc, and the uboot should be in the last 512K of NOR flash.

12326_12326.jpgnor.jpg

Now I an designing a product using p2020cpu refering to the design of p2020rdb-pc,

I want to know can I design the NOR's base address to  ef000000? Nor the base address must be ff000000 for p2020 cpu?

 

Best regards,

Min Zhao

Labels (1)
0 Kudos
1 Solution
482 Views
lunminliang
NXP Employee
NXP Employee
0 Kudos
5 Replies
482 Views
addiyi
NXP Employee
NXP Employee

If you choose to modify the the memory map, and to map the NOR to ef000000, you have to modify the base address for NOR device in FlashProgrammer according with memory map.

Adrian

482 Views
敏赵
Contributor I

Do you mean I can design my NOR base address as long as I modify relevant configuration?

Best regards,

Min Zhao

0 Kudos
482 Views
addiyi
NXP Employee
NXP Employee

Yes, you're right.

Adrian

482 Views
敏赵
Contributor I

In RDB_P2020_init_rom.tcl,I found the codes:


# Set interrupt vectors in SRAM

# IVPR

reg ${SPR_GROUP}IVPR = 0xFFFF0000

# debug - (a valid instruction should exist to be fetched)

reg ${SPR_GROUP}IVOR15 = 0x0000F000

# program

reg ${SPR_GROUP}IVOR6 = 0x0000F700

Where can I find the field descriptions about SPR_GROUP,like this

register.jpg

Best regards,

Min Zhao

0 Kudos
483 Views
lunminliang
NXP Employee
NXP Employee
0 Kudos