Assembly error

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

Assembly error

1,180 次查看
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 回复

1,034 次查看
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 项奖励
回复