Assembly error

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

Assembly error

688件の閲覧回数
qiminggong
Contributor II

There are two lines in S32DS Power Project,

__asm void EXCEP_InitExceptionHandlers(void);

__asm void INTC_InitINTCInterrupts(void);

Build the project notice me:expected'(' before 'void',

What's wrong?

ラベル(1)
0 件の賞賛
1 返信

542件の閲覧回数
stanish
NXP Employee
NXP Employee

Hello,

You are probably trying to migrate a project from CodeWarrior into S32DS for Power (GCC).

Function level in line assembly is a feature specific to CodeWarrior project and cannot be migrated as-is into S32DS.

You can either create an asm function in .s file or "C" function with inline __asm(" ") statements.

I'd recommend you to create a new project using S32DS New project Wizard for your device. It also includes the interrupt controller initialization so you might use new project as a template.

Hope it helps.

Stan

0 件の賞賛