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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,257 Views
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?

Labels (1)
0 Kudos
3 Replies

836 Views
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 Kudos

835 Views
webbersun
Contributor III

Hi,

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

0 Kudos

835 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 Kudos