Error[Li005]: no definition for "__set_PRIMASK" [referenced from E:\Freescale Test\kl04_iar\Release\Obj\Cpu.o]

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

Error[Li005]: no definition for "__set_PRIMASK" [referenced from E:\Freescale Test\kl04_iar\Release\Obj\Cpu.o]

Jump to solution
5,795 Views
thoomanwang
Contributor V

error.png

ProcessorExpert generated files , use Iar6.5 compile no error in debug mode , in release mode error.

0 Kudos
Reply
1 Solution
1,982 Views
vfilip
NXP Employee
NXP Employee

Hello,

the __set_PRIMASK is intrinsic function of IAR compiler. Could you pelase double-check that you have correctly selected the IAR compiler also for Release configuration? The compiler selection property is in CPU component on Build Options tab.

Details attached.

If the problem persist could you please post here your project?

best regards

Vojtech Filip

Processor Expert Support Team


View solution in original post

0 Kudos
Reply
2 Replies
1,983 Views
vfilip
NXP Employee
NXP Employee

Hello,

the __set_PRIMASK is intrinsic function of IAR compiler. Could you pelase double-check that you have correctly selected the IAR compiler also for Release configuration? The compiler selection property is in CPU component on Build Options tab.

Details attached.

If the problem persist could you please post here your project?

best regards

Vojtech Filip

Processor Expert Support Team


0 Kudos
Reply
1,982 Views
thoomanwang
Contributor V

Thank you ! ! !
I forgot to reset the MCU release mode , so the system uses the default MCU, resulting in an error

0 Kudos
Reply