an issue about memory config in the file of MPC5744P_flash.ld

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

an issue about memory config in the file of MPC5744P_flash.ld

911件の閲覧回数
1067929469
Contributor I

Hi NXP:

Now I want come true the function of IAP through CAN interface, The first I should configure the diffrent flash partition to Bootloader and App.

The configuration is blew:

/*Bootloader configure*/
MEMORY
{
    flash_rchw     : org = 0x00FA0000,        len = 0x4
    cpu0_reset_vec : org = 0x00FA0004,        len = 0x4
    m_text         :  org = 0x00FA0400,              len = 382K
    m_vectors_ram  :  org = 0x40000000,             len = 0xC00
    m_data         :  org = (0x40000000+0xC00),        len = 384K-0xC00
}
/*App configure*/
MEMORY
{
    flash_rchw     : org = 0x1000000,                        len = 0x4
    cpu0_reset_vec : org = 0x1000004,                        len = 0x4
    m_text         :  org = 0x1000400,                        len = 2047K
    m_vectors_ram  :  org = 0x40000000,                       len = 0xC00
    m_data         :  org = (0x40000000+0xC00),               len = 384K-0xC00
}
The same source code with diffrent flash partition, when MEMORY be configure App flash partition, It work will.
when I configure to Bootloader flash partition, It shows various abnormalities, such as GPIO does not output the expected state, Can started to work normally, but suddenly stopped working after a few seconds. The hex file which bulid out from my source code is 215K Bytes. I decided to use Medium flash memory blocks and Large flash memory blocks based on the size of Hex file. What's the problem?  Please give me same advice on flash partition usage about Bootloader and App. Thanks!
0 件の賞賛
返信
1 返信

851件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

I'm not sure if I can understand, so let me ask: does it mean that the application works as expected if you load it to flash memory without bootloader? And it doesn't work if the application is called by the bootloader?

Regards,

Lukas

0 件の賞賛
返信