Sharing C/C++ Header Files With Assembly Source in IAR compiler

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Sharing C/C++ Header Files With Assembly Source in IAR compiler

1,107 次查看
SreejithN
Contributor I

Hi,

I tried to include S32k146.h header on a assembly file to get the interrupt vector address (S32_SCB->VTOR) But the compiler showing below error 

Error[2]: Failed to open #include file 'stdint.h'  

Already given included directives for assembler

标记 (1)
0 项奖励
回复
1 回复

1,018 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

the C header file can't be used in Assembly code. If you like to get VTOR address you can simply read it from the register address - 0xE000ED08. 

 

Jiri 

0 项奖励
回复