I'm using MK26FN2M0VMD18. For the configuration, I think I am using all of the default settings for now. RxD is PTA13 and TxD is PTA12. I named the component CAN0. I am using both of the K26 modules, CAN0 and CAN1. I get the error in both header files. I named the CAN1 component CAN1.
I am just getting the project started and just building frequently as I add components. I have not added much of my own code yet.
As I was typing this it occurred to me what the problem might be. I thought maybe it could be the name I used for the CAN components in PE. I changed the names of the components in PE, re-generated the PE code, and built the project. That fixed the problem. I changed the component names back to how I had them and the problem came back.
Problem solved. Resolution: The component name field CAN NOT match the Device name on the properties tab of the CAN Component Inspector.
A nice improvement to PE would be to detect this issue when the component is named. :-)