This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to know assembler variable address in C

Hi all,

I have a problem on the STR711 and ST Library to read in C an address of the T0TIMI_Addr DD written in assembler. See below example:


asm file start-----------------
// Peripherals IRQ Handlers Address Table
PUBLIC T0TIMI_Addr
PUBLIC IRQ_Vectors

IRQ_Vectors:
T0TIMI_Addr: DD T0TIMIIRQHandler
FLASH_Addr: DD FLASHIRQHandler
asm file end-------------------

C file start ------------------
void EIC_Init(void)
{
extern u32 T0TIMI_Addr;

u32 dOffset=((u32)&T0TIMI_Addr); <<<<< link error here
EIC->ICR = 0x00000000; // Disable FIQ IRQ
}
C file end --------------------

The linker say:
ERROR L102 EXTERNAL ATTRIBUTE MISMATCH
SYMBOL T0TIMI_Addr

How can I do that?

Regards
Paul

0