MC51QE128 RAM Function alignment

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

MC51QE128 RAM Function alignment

428 次查看
JaseMachine
Contributor I

I debugged an issue related to a RAM function failing after seemingly unrelated changes caused the starting address of a block of RAM used to hold a function to shift. When the block was aligned to even bytes the function executed flawlessly, but starting at an odd location caused Illegal Address (or Illegal Opcode, I don't remember) resets. My question is why does 16-bit alignment work?

标签 (1)
0 项奖励
回复
1 回复

312 次查看
J2MEJediMaster
Specialist I

I know that the 68K processors (from which the ColdFire is derived) required 16-bit alignment on the code. ColdFire has variable-length instructions, but they might require that a function start on an even address. I would check the reference manual for your particular processor as to alignment restrictions on the code.

 

---Tom

0 项奖励
回复