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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,221 次查看
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 回复数

800 次查看
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 项奖励

799 次查看
webbersun
Contributor III

Hi,

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

0 项奖励

799 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 项奖励