Content originally posted in LPCWare by cwpjr on Sun Jan 27 18:50:16 MST 2013
in a *.s module I declare an uninitialized variable:
.bss
// .align 2 or 4 or commented out no matter
ABASE: .word 1
NBASE: .word 1
XBASE: .word 1
I then load the address to a register:
LDR r0, =NBASE
I get a address like 0x1000003E
such that my initialization code for the NBASE variable HardFaults.
EX:
STR r1, [r0]
.word help says the 1 argument I give is an expression, with no examples there, so where can I find what I'm missing?