Fill the empty flash with Reset instruction

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

Fill the empty flash with Reset instruction

1,566件の閲覧回数
Mennazz
Contributor II

I need to fill the empty flash parts with reset instruction. In order to do so, I need to know the Opcode (hexadecimal) value for the reset. Thanks in advance. 

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

1,547件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

reset is not triggered by instruction.

petervlna_0-1724304915578.png

 

You have to configure it in device, usually in reset control module.

This depends on the device you are using.

Usually you do a simple mode transition to reset state.

Best regards,

Peter

0 件の賞賛
返信

1,543件の閲覧回数
Mennazz
Contributor II

Okay, is there any OPCode I can write in the empty flash memory to force the system to return to the program whenever these empty locations are accessed? What pops up in my mind is to force the system to return to the reset vector location. Do you know how to do so?

0 件の賞賛
返信

1,540件の閲覧回数
Mennazz
Contributor II

Okay, is there any OPCode I can write in the empty flash memory to force the system to return to the program whenever these empty locations are accessed? What pops up in my mind is forcing the system to return to the reset vector location, which may be by setting the PC to the reset vector location. Do you know how to do so using OPCODE? 

Note : 
My device is MPC5744P

0 件の賞賛
返信

1,516件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Okay, is there any OPCode I can write in the empty flash memory to force the system to return to the program whenever these empty locations are accessed?

Well, simple branch. That will set your PC on the desired address with label.

What pops up in my mind is forcing the system to return to the reset vector location, which may be by setting the PC to the reset vector location.

This however will put the device in some unknown state (as the reset was not performed) and you can have multiple errors active.

petervlna_0-1724401286730.png

For opcode details please refer to the EBOOK reference manual:

Table G-1. Primary opcodes (instruction bits 0:5)

Best regards,
Peter

 

0 件の賞賛
返信