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??
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
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?
You can find it in your flash_rchw section.
For example in my project I call it boot_header
Which I have defined in linker:
It starts at flash memory origin:
Peter