8 years, 1 month ago.

FDRM-K64F and CAN

Hello,

Does the FDRM-k64F support CAN? if yes, what pins and how to compile a CAN example program?

Regards,

Tom

1 Answer

8 years, 1 month ago.

Hi Tom,

The FRDM-K64F has a CAN peripheral, but it has not been ported to the mbed CAN API at this time.

The Kinetis SDK (the K64F HAL that lives underneath the mbed HAL and API) has CAN support, you could try using that. I haven't tried it myself though. Here's the header file for it: https://github.com/mbedmicro/mbed/blob/master/libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/can/fsl_flexcan_hal.h

Hope that helps!

Brian

Brian,

Thanks for the reply. I did find the the CAN support info in the Kinetis SDK. However, the reason I posted the question was when you apply the CAN filter on the MBED Platform page you get the K64F (and other FreeScale boards). I don't understand why.

Regards,

Tom

posted by Tom Doyle 15 Mar 2016

Ah I see, good point! I've removed that feature from the K64F platform listing so it won't show up anymore when you tick the "CAN" box.

Thanks, Brian

posted by Brian Daniels 15 Mar 2016