Hi James,
Please note there is a MQX4.1.1 update.
I looked at release notes and do not see any issue for compiling. There was note about hardware issue with TWR_K70F120M as follows:
FlexCan Driver Issues
Several issues are identified during the development of the FlexCAN driver: On TWR-K70F120M board, the TX/RX signals
are not routed to the elevator by default and the FlexCAN example does not work. To enable the FlexCAN operation, solder
the zero-ohm resistors, R22 and R23, on TWR-K70F120M board. The 10-kbit baudrate doesn‟t generally work. FlexCAN
detects bit0 errors in its own transmitted messages.
In MQX4.x the FlexCAN demo is the only example and is in the MQX4.1.1/mqx/examples/can folder path.
I loaded this example using CW10.6 and MQX.4.1.1 and the GCC compiler and build without error.
Console output:
**** Build of configuration Int Flash SramData Debug for project fsl_flexcan_twrk70f120m ****
"C:\\Freescale\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j16 all
'Building file: C:/Freescale/Freescale_MQX_4_1_0_GA/mqx/examples/can/flexcan/fsl_flexcan_test.c'
'Executing target #1 C:/Freescale/Freescale_MQX_4_1_0_GA/mqx/examples/can/flexcan/fsl_flexcan_test.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
"C:/Freescale/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "C:/Freescale/Freescale_MQX_4_1_0_GA/mqx/examples/can/flexcan/fsl_flexcan_test.c" @"Source/fsl_flexcan_test.args" -MMD -MP -MF"Source/fsl_flexcan_test.d" -o"Source/fsl_flexcan_test.o"
'Finished building: C:/Freescale/Freescale_MQX_4_1_0_GA/mqx/examples/can/flexcan/fsl_flexcan_test.c'
' '
'Building target: C:/Freescale/Freescale_MQX_4_1_0_GA/mqx/examples/can/flexcan/build/cw10gcc/fsl_flexcan_twrk70f120m/Int Flash SramData Debug/fsl_flexcan.elf'
'Executing target #2 C:/Freescale/Freescale_MQX_4_1_0_GA/mqx/examples/can/flexcan/build/cw10gcc/fsl_flexcan_twrk70f120m/Int Flash SramData Debug/fsl_flexcan.elf'
'Invoking: ARM Ltd Windows GCC C Linker'
"C:/Freescale/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" @"fsl_flexcan.args" -o"C:/Freescale/Freescale_MQX_4_1_0_GA/mqx/examples/can/flexcan/build/cw10gcc/fsl_flexcan_twrk70f120m/Int Flash SramData Debug/fsl_flexcan.elf"
'Finished building target: C:/Freescale/Freescale_MQX_4_1_0_GA/mqx/examples/can/flexcan/build/cw10gcc/fsl_flexcan_twrk70f120m/Int Flash SramData Debug/fsl_flexcan.elf'
Hope this helps.
Regards,
David