TWR-K60F120M MQX 3.8.1 Error: Instruction not legal for current target processor(s)

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

TWR-K60F120M MQX 3.8.1 Error: Instruction not legal for current target processor(s)

452 Views
keithtang
Contributor IV

I am using TWR-K60F120M and recently updated from MQX 3.8 to 3.8.1. I am facing compilation error:

Error: Instruction not legal for current target processor(s)

 

It happens at /psp_twrk60f120m/PSP Cortex/dispatch.s file, lines:

423: vmrs r1, FPSCR

425: vstm r12, {s0-s31}                      ; restore fpu registers

498: vmsr FPSCR, r3

500: vldm r12!, {s0-s31}                     ; restore fpu registers

 

These codes were wrapped by MQXCFG_ENABLE_FP && PSP_HAS_FPU preprocessor keys. In MQX3.8 PSP_HAS_FPU was not enabled in kinetis.h file, so these lines were not compiled. In MQX 3.8.1, however, it is enabled, causing these errors.

 

Can anyone help? Have these codes been tested? Shall I disable it?

 

 

Tags (3)
0 Kudos
2 Replies

264 Views
c0170
Senior Contributor III

Hello keith tang,

 

Which IDE are you using ? PSP projects are definitely tested. I did sanity check in CW 10.2, without any error. The hardware floating point was enabled in MQX 3.8.1. You also can check in settings the option Floating point. It's set to Hardware vfpv4.

 

Regards,

MartinK

0 Kudos

264 Views
keithtang
Contributor IV

Hello MartinK,

 

Thanks for the reply. I am using CW10.2 too.

 

You also can check in settings the option Floating point. It's set to Hardware vfpv4.

Sorry I do not catch you, what do you mean by the above? Also, what is vfpv4?

0 Kudos