Assembly error

cancel
Showing results for 
Search instead for 
Did you mean: 

Assembly error

149 Views
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

3 Views
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