Assembly error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Assembly error

649 Views
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?

Labels (1)
0 Kudos
1 Reply

503 Views
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 Kudos