MPC574XG RAM can't parse the Flash Driver VLE code

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

MPC574XG RAM can't parse the Flash Driver VLE code

1,366 次查看
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 回复数

1,270 次查看
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

1,270 次查看
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 项奖励
回复