Hello, my application writes to the flash via the boot loader, but the jump application fails;
The following is the relevant code, how can we successfully jump to the application?
The application program linker file was modified as follows:
MEMORY
{
flash_rchw : org = 0x00FB0000, len = 0x4
cpu0_reset_vec : org = 0x00FB0004, len = 0x4
m_text : org = 0x1100000, len = 256K
m_data : org = 0x40000000, len = 384K
int_dram : org = 0x50800000, len = 64K
}
The bootloader program linker file was modified as follows:
MEMORY
{
flash_rchw : org = 0x00FA0000, len = 0x4
cpu0_reset_vec : org = 0x00FA0004, len = 0x4
m_text : org = 0x1000000, len = 256K
m_data : org = 0x40000000, len = 384K
int_dram : org = 0x50800000, len = 64K
}
The bootloader program used the address jump code as follows:
asm("e_lis %r12,0x00FB");
asm("e_or2i %r12,0x0004");
asm("e_lwz %r0,0(%r12)");
asm("se_mtlr %r0");
asm("se_blrl");
Thank you!