I'm using Keil to write Assembly for ARM 7.
I have the following runtime error:
Non-aligned Access: ARM Instruction at 000000F8H, Memory Access at 7F7F7F7FH
Data Abort: ARM Instruction at 000000F8H, Memory Access at 7F7F7F7FH
This doesn't really help me, because I don't know what 'non-aligned access' is, (other than the obvious, but I don't really understand what it means) and I am trying to access (store) to 0x7F7F7F7F
, what's the issue?
Searching I only found a couple of similar issues, both using C, and resolved by some means very specific to their code and which didn't relate to this issue.
I'm doing:
LDR R0, =0x7F7F7F7F
LDR R1, LABEL
STR R1, [R0]
I then do a similar thing with a different label, and offsets of R0
, but it fails here first.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…