MPC5748G Bootloader flash start address

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

MPC5748G Bootloader flash start address

1,180 Views
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.
Labels (1)
0 Kudos
3 Replies

941 Views
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 Kudos

941 Views
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 Kudos

941 Views
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 Kudos