Exporting C global variables to Cortex-M vector table
Asked by
Prakash K Balasubramanian
I have in my C program two global variables defined.
const uint32_t gVar1 = 25;
const uint32_t gVar2 = 35;
The vector table is defined in an assembly file and I would like the values from the aforesaid global variables to be assigned as individual entries in the cortex vector table
Vector Table:
.long InterruptHandler1
.long InterruptHandler2
.long gVar1
.long gVar2
.long InterruptHandler3 and so ob
When a dump of the generated elf is taken, it is found that the vector table contains the addresses of the two variables rather than the values assigned to them.
The following also doesnt quite help.
.long =gVar1
.long =gVar2
How can this be accomplished?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- chengbin
- Solved:
- Last query:
- Last reply:
To post a message you must log in.