Recently, I am working with P2020, I have a P2020RDB, through with the Code Warrior 10.5.1 TAP + USB,I can burn my board,uboot, linux kernel,initrd,dtb and so on. when i flash the nor flash on board,i can use the flash programer tools in IDE,and the IDE provide the "Flash Configuration File" - P10xx-P20xxRDB_P2020_NOR_FLASH.xml ,below is the content: <?xml version="1.0" encoding="UTF-8"?> Refer to the P1020_P2020RDB_BSP_User_Manual.pdf, I found the burn address of uboot:0xFFF80000. Questions: 1、Flash_Base_Address_0="4278190080" in P10xx-P20xxRDB_P2020_NOR_FLASH.xml ,how to calculate the Flash_Base_Address_0, in an other word, what do you base on to get the base address? 2、In the P1020_P2020RDB_BSP_User_Manual.pdf,uboot burn address FFF80000,how to calculate the uboot burn address, in an other word, what do you base on to get the uboot burn address? 3、I have token a long time on these qeustions, beg an answer in detail!!!!!!! |
>1、Flash_Base_Address_0="4278190080"
>in P10xx-P20xxRDB_P2020_NOR_FLASH.xml, how to calculate the
>Flash_Base_Address_0, in an other word, what do you base on to get the
>base address?
[Platon] P2020 memory map is software-configurable. 4278190080 in
hex is 0xFF000000. This is the base address CodeWarior board initialization
script puts NOR flash at. Refer to P2020RM, Sections 2.3, 12.4.1.1,
12.3.1, 12.3.2
>2、In the P1020_P2020RDB_BSP_User_Manual.pdf, uboot burn address
>FFF80000, how to calculate the uboot burn address, in an other word,
>what do you base on to get the uboot burn address?
>
[Platon] Note that in the newer SDKs the burn address has changed to
0xFFF40000 because u-Boot has grown from 512K to 768K.
Due to the way the core sees the physical address map immediately after
power on, u-Boot should be placed at the top of the Flash memory window.
For this reason,
<u-Boot_burn_address>=CONFIG_SYS_TEXT_BASE-CONFIG_SYS_FLASH_BASE+Flash_Base_Address_0
CONFIG_SYS_FLASH_BASE and CONFIG_SYS_TEXT_BASE are macros defined in
include/configs/<your_board>.h. More details can be found in
P2020RM, Sections 12.4.2.5, 4.5.3.4, 4.3.3.
>3、I have token a long time on these qeustions, beg an answer in
>detail!!!!!!!
[Platon] Please refer to the documentation mentioned above for additional
details.
Have a great day,
Platon
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------