Hi :
Currently, we want to use freemaster over CAN bus so that I need to change setting from LPUART to CAN. I already check the related post by other author. The following is my setting in freemaster_cfg.h file for now.
// Select communication interface
//#define FMSTR_TRANSPORT FMSTR_SERIAL // Use serial transport layer
//#define FMSTR_SERIAL_DRV FMSTR_SERIAL_S32_LPUART/*FMSTR_SERIAL_S32K3XX_LPUART*/ // Use serial driver for UART
#define FMSTR_TRANSPORT FMSTR_CAN // Use serial transport layer
#define FMSTR_CAN_DRV FMSTR_CAN_S32_FLEXCAN // Use serial driver for CAN
/* Select RX and TX FlexCAN Message buffers */
#define FMSTR_FLEXCAN_TXMB 2
#define FMSTR_FLEXCAN_RXMB 0
in main.c
/* Initializes FreeMASTER */
//FMSTR_SerialSetBaseAddress((FMSTR_ADDR)IP_LPUART_1_BASE);
FMSTR_CanSetBaseAddress((FMSTR_ADDR)IP_CAN_0_BASE);
FMSTR_Init();
I have some question:
1. I already can send or receive can message by Can0, I want to send can message in other task and communicate freemaster by different can hardwareobject in the same time, is it possible?
2. I need define can hardware object for FMSTR_FLEXCAN_TXMB and FMSTR_FLEXCAN_RXMB?
3. Where should I add FMSTR_CanIsr function for interrupt?
4. Freemaster can detect my board when I use S32DS to debug in the beginning but can't detect board after a while, the following is my test result


Can you help me to check if I miss any setting in side my project? Really need help, thanks.
Thanks
BR, BillWen