S12VR - Fill Free Memory Space

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

S12VR - Fill Free Memory Space

1,043件の閲覧回数
carlocurotto
Contributor II

Hello everybody,

 

I'm using the tomar microcontroller S12VR for my application.

I need to fill the flash memory not used with NOP and JMP at start up address instructions.

I have modified the .prm file with the FILL directive.

The fill directive required hexadecimal values but I don't know which are the corrispettive values.

I have tested the FILL directive with an example value (0x55) and it is work.

Could you help me?

Thanks in advance

タグ(1)
0 件の賞賛
返信
1 返信

977件の閲覧回数
lama
NXP TechSupport
NXP TechSupport

Hi,

for mor details please look into https://www.nxp.com/docs/en/reference-manual/S12XCPUV2.pdf 

NOP has machine code 0xA7

JMP  has two different machine codes on the basis of operand:

JMP opr16a                        06 hh ll
JMP oprx0_xysp                 05 xb
JMP oprx9,xysp                  05 xb ff
JMP oprx16,xysp                05 xb ee ff  
JMP [D,xysp]                      05 xb
JMP [oprx16,xysp]              05 xb ee ff

If you want to jump to a direct address, if I understand you well, then you should put there 05 hh ll where hh ll represents address of the function in a non banked memory.

Best regards,

Ladislav

0 件の賞賛
返信