AnsweredAssumed Answered

Compile time error with PE generated flexcan code

Question asked by Thomas Olenik on Jan 3, 2016
Latest reply on Jan 3, 2016 by Thomas Olenik

I'm using KDS 3.1.0, KSDK 1.3, and Processor Expert 3.0.2.

 

I am getting a compile time error in the PE generated code.The source of the error was line 82 of the the flexcan header files. Original code read "#define CAN0_IDX CAN0_IDX" The error generated was "'CAN0_IDX' undeclared (first use in this function)". By changing the line to "#define CAN0_IDX 0" I was then able to build the project, but have a warning that states ""CAN0_IDX" redefined [enabled by default]".

 

I have not yet tried to pick through the generated code to see how this macro is used.

 

Is this a bug or an oversight on my part?

Outcomes