MPC574XG RAM can't parse the Flash Driver VLE code

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

MPC574XG RAM can't parse the Flash Driver VLE code

670件の閲覧回数
julieliu
Contributor I

Hi,

before the code copied to RAM, the ASM code can be parsed to instruction.

150223_150223.pngpastedImage_5.png

After copy the code to  RAM, it can't be parsed to the same instruction.

150222_150222.pngpastedImage_4.png

Can you help me  to fix this issue?

Thanks in advance.

BR.

Julie

ラベル(1)
0 件の賞賛
2 返答(返信)

574件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

e_bl is relative jump instruction, not absolute:

pastedImage_0.png

CIA is the Current Instruction Address. If you write asm code, you can use label or immediate sign-extended number. For example:

loop:

e_bl loop

If the code is already compiled and you watch it by debugger, debugger will translate it to absolute address. If you move the instruction to another address, debugger will show you updated absolute address. You can check the opcode and you will see that it is still the same. It's just about debugger interpretation of instruction.

Regards,

Lukas

574件の閲覧回数
julieliu
Contributor I

hello Lukas,

Thanks for your reply.

I forgot to tell you the compiler is ghs.

My colleague add a compiler option and it works:

pastedImage_0.png

Br,

Julie

0 件の賞賛