AnsweredAssumed Answered

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

Question asked by keith tang on Aug 7, 2012
Latest reply on Aug 7, 2012 by keith tang

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?

 

 

Outcomes