MPC5748G: How can switch different application codes in different Flash address

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

MPC5748G: How can switch different application codes in different Flash address

1,515件の閲覧回数
webbersun
Contributor III

Hi,

 

     Our own Bootload occupies 16K memory block starting at 0x00F8C000. It makes a decision which one firmare to executed in Flash by state of any pins.

How to directly execute new firmare,that starting at 0x00F90000, without repeating power-on  or reset the device?

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,094件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

you can write short asm code in bootloader project which will be executed immediately after reset. It can check state of a pin to decide if bootloader or user application will be executed.

If bootloader is supposed to be executed, just continue in execution of bootloader. If user application is supposed to be executed, jump to entry point of application.

If bootloader downloads new firmware to flash and you want to run it now, there are two options:

1. Ensure that the state of pin is set accordingly and trigger software reset.

2. Jump directly to entry point of application without reset. In this case, it is necessary to disabled all interrupts and put all the modules to default reset state. Or the user application must be aware that it is possible that modules are not necessarily in reset state.

Regards,

Lukas

0 件の賞賛
返信

1,093件の閲覧回数
webbersun
Contributor III

Hi,

     How to jump to entry point of application that store at Flash 0x00F9_0000 in the monent.

0 件の賞賛
返信

1,093件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信