Hi all, I've a new question that could seem so simple, but I didn't find any way out, so I'm asking one more time help to the forum.
I've declared in my source just two section, a ".text" and a ".data" one, but it seems that I cannot acces the datas, and variables stored in the ".data" section, from within the text section.
Thi is the ".data" section:
.data
LCDVar: .byte 0x03
.align 0x02
And this one should be the ".text":
.text main: ldr r3,LCDVar
Both section seems so simple but, when I'm in the the text section, assembler generates the error: "Address must be defined in the current section".
It seems that from the text section can't access the variables in the data.
I tried many workaround: "ldr r3,[LCDVar]", "ldr r3,#LCDVar","mov r3,LCDVar", a so more, but the error is similar.
So the question now is: How can be possible access the variables in the data section? In the assembly manual is written that the "ldr" instruction,
can access even the other section over its own, but I still don't.
Any help will be appreciated.
Thanks