AnsweredAssumed Answered

Freemaster 2.0 and S32 FLEXCAN

Question asked by gearhead1107 on Aug 7, 2017
Latest reply on Aug 8, 2017 by gearhead1107

I'm trying to use Freemaster 2.0 over CAN, however the configuration method isn't exactly clear.


I got Freemaster to work over UART (and it's excellent), but when I instead go to freemaster_cfg.h and make the following changes:
#define FMSTR_USE_FLEXCAN      1 

/* Select RX and TX FlexCAN Message buffers */
#define FMSTR_FLEXCAN_RXMB 5 //MB0-3 are used by application


There doesn't appear to be any activity from Freemaster. What's not clear is:

-How do I set the actual TX and RX ID's for Freemaster to use? I see private functions, however it's not clear how I'm "supposed" to manipulate those commands

-Do I need to put FMSTR_ISR(); in the existing CAN interrupt handler?


Is there a setup guide to help with the CAN configuration? It was relatively straightforward with UART, however I haven't seen much for using CAN.


Thank you,