MPC5748G Bootloader flash start address

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC5748G Bootloader flash start address

2,635 次查看
sohyunjang
Contributor III

Hi, I use MPC5748G Bootloader.

and I want to fix Bootloader flash start address 0x00F94000 -> 0x00FC0000.

I fix 57xx_flash.ld

MEMORY
{

    flash_rchw : org = 0x00F90000,   len = 0x4
    cpu0_reset_vec : org = 0x00F90000+0x10,   len = 0x4
    cpu1_reset_vec : org = 0x00F90000+0x14,   len = 0x4
    cpu2_reset_vec : org = 0x00F90000+0x04,   len = 0x4     
       
  /*  m_text : org = 0x00F94000, len = 48K  */
    m_text : org = 0x00FC0000, len = 48K 
    m_data : org = 0x40000000,   len = 768K
}

So, How can I fix the flash start address??

What should I fix?
Thanks. you.
标签 (1)
0 项奖励
回复
3 回复数

2,396 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

You have to change reset vector address of core0 to 0x00FC0000.

Once you change it your micro will start booting on 0x00FC0000 after reset. And you have correctly set m_text to this address so m_text section will be executed.

regards,

Peter

0 项奖励
回复

2,396 次查看
sohyunjang
Contributor III
Hi,
 

Now, cpu0_reset_vec : org = 0x00F90000+0x10

and, The reset vector is point address 0x00F94000

I am wondering how to change the address pointed to by the reset vector to 0x00FC0000.

Which part of the code should I change?

 
0 项奖励
回复

2,396 次查看
petervlna
NXP TechSupport
NXP TechSupport

You can find it in your flash_rchw section.

For example in my project I call it boot_header

pastedImage_1.png

Which I have defined in linker:

pastedImage_2.png

It starts at flash memory origin:

pastedImage_3.png

Peter

0 项奖励
回复