If you are getting an error about serial communication definitions in ROS, replace line 44 in ArduinoHardware.h with:
#if defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__) || defined(__MKL26Z64__)
For current documentation see the wiki