Fill the empty flash with Reset instruction

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

Fill the empty flash with Reset instruction

1,599 Views
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 Kudos
Reply
4 Replies

1,580 Views
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 Kudos
Reply

1,576 Views
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 Kudos
Reply

1,573 Views
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 Kudos
Reply

1,549 Views
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 Kudos
Reply