MPC574XG RAM can't parse the Flash Driver VLE code

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

MPC574XG RAM can't parse the Flash Driver VLE code

870 Views
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

Labels (1)
0 Kudos
Reply
2 Replies

774 Views
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

774 Views
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 Kudos
Reply