Fill the empty flash with Reset instruction

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

Fill the empty flash with Reset instruction

1,574 次查看
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,555 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

reset is not triggered by instruction.

petervlna_0-1724304915578.pngpetervlna_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,551 次查看
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,548 次查看
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,524 次查看
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.pngpetervlna_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 项奖励
回复