Boot Loader for MPC5777C

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

Boot Loader for MPC5777C

3,006件の閲覧回数
GeethanjaliGC
Contributor I

we are developing a custom bootloader for MPC5777C. The bootloader code is loaded to 0x00800000 base address , the fuctionality is to receive the srec file (i.e application code ) and store in 0x00840000 address later it is mapped to flash memory.

Later it is not required to load the srec file to the address 0x00840000, when reset is done it should automatically point to the application baseaddress and excecute the code present.

We are unable to execute the reset function , can I get any further reference to execute the above function.   

0 件の賞賛
返信
4 返答(返信)

2,902件の閲覧回数
GeethanjaliGC
Contributor I

Hi @lukaszadrapa 

we are developing a bootloader for MPC5777C taking the reference of MPC5748 code workspace, where some .c extension files such as FlashCheckStatus, FlashErase, FlashProgram are in the form of lookup table. Are these files same for MPC5777C microcontroller ??? because we are getting certain errors as attached in the link below.

Please provide some references to solve the above errors.

0 件の賞賛
返信

2,954件の閲覧回数
GeethanjaliGC
Contributor I

Hi @lukaszadrapa 

Using the above command the entire main program starts from first, but the condition I need is when hardware reset is done the Program Counter has to be updated to 0x00840000 address and execute the code present in it.

Thank you for your previous response and please do provide some reference for the above condition.

0 件の賞賛
返信

2,941件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

This is a task for bootloader. Common way is that bootloader is always started after reset. The bootloader is supposed to make a decision if application should be started. If yes, bootloader should jump to the entry point of application.

If you don't want to use the bootloader anymore after application update, it would be necessary to delete RCHW of the bootloader. And then it would be necessary to have RCHW of application available on one of the following addresses:

lukaszadrapa_0-1726481402875.png

But this approach is usually not used.

Regards,

Lukas

 

 

0 件の賞賛
返信

2,974件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @GeethanjaliGC 

You can use following command to trigger software reset:

SIU.SRCR.R = 0x80000000;

 

Here's the description:

lukaszadrapa_0-1726215104089.png

 

Regards,

Lukas