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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,092件の閲覧回数
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,003件の閲覧回数
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 件の賞賛
返信