MPC5746C flash memory partition 6 and partition 7 swap

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

MPC5746C flash memory partition 6 and partition 7 swap

ソリューションへジャンプ
1,186件の閲覧回数
kimdukyu
Contributor II

Hi.

 

Inquiry about the swap method of partition6(0x01000000) and partition7(0x01400000) of MPC5746C. Application A is stored on partition6 and application B is stored on partition7. I was wondering if there is a way to call the desired partition during the boot process. Or please let me know if it is swappable.

 

Thank you

0 件の賞賛
返信
1 解決策
1,178件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,
Usually there's a bootloader which is always started after reset. This bootloader should check the presence of application(s), check their integrity if needed (CRC or Flash Array Integrity Check), check which application is the more recent one and jump to it.
Another option is to change the boot header after loading of new application but there's a risk that this operation will be interrupted by unexpected reset / power-down. Using a bootloader is more common way.
Regards,
Lukas

lukaszadrapa_0-1659354096346.png

 

元の投稿で解決策を見る

2 返答(返信)
1,179件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,
Usually there's a bootloader which is always started after reset. This bootloader should check the presence of application(s), check their integrity if needed (CRC or Flash Array Integrity Check), check which application is the more recent one and jump to it.
Another option is to change the boot header after loading of new application but there's a risk that this operation will be interrupted by unexpected reset / power-down. Using a bootloader is more common way.
Regards,
Lukas

lukaszadrapa_0-1659354096346.png

 

1,172件の閲覧回数
kimdukyu
Contributor II

How to change boot header? Are you changing the address of the boot header? Or are you changing the data in the boot header? I tried to change the data in the boot header (0x00FA0000) using the flash_erase_program_mpc5746c example. But it didn't work properly.

 

I have two questions. I want to know how to check and boot the latest application and how to change the value of boot header. Finally, if I need a bootloader, do I have to implement a bootloader program?

 

Thank lukaszadrapa

0 件の賞賛
返信