Hi
@iulian_stan:
I have the same question about Freemaster over Can bus.
My project is based on NXP HVBMS_Integration_Project_0_8_0 with RTD 3.0.0, we use LPUART to communicate Freemaster originally, and we want to change it to can bus.
According to your answer, I have few question.
1. Do I need create FMSTR_CAN_S32_FLEXCAN by myself? I can't find this define inside my project.
2. About the following setting, I already config Can hardwareobject in MCAL setting. I need set this define according to my MCAL setting about hardwareobject or how to set this ?
/* Select RX and TX FlexCAN Message buffers */
#define FMSTR_FLEXCAN_TXMB 0 (?)
#define FMSTR_FLEXCAN_RXMB 1 (?)
3. I can't find this "FMSTR_CanSetBaseAddress" API inside my source code, do I need add other source code?
The following is my setting right now :
#define FMSTR_PLATFORM_S32 1 // Automotive S32 platform (see freemaster.h for list of all supported platforms)
#define FMSTR_DEMO_ENOUGH_ROM 1 // Platform has enough ROM to show most of the FreeMASTER features
#define FMSTR_DEMO_LARGE_ROM 1 // Platform has large ROM enough to store the extended data structures used in FreeMASTER demo
#define FMSTR_DEMO_SUPPORT_I64 1 // support for long long type
#define FMSTR_DEMO_SUPPORT_FLT 1 // support for float type
#define FMSTR_DEMO_SUPPORT_DBL 1 // support for double type
// Enable/Disable FreeMASTER support as a whole
#define FMSTR_DISABLE 0 // To disable all FreeMASTER functionalities
// Select interrupt or poll-driven serial communication
#define FMSTR_LONG_INTR 0 // Complete message processing in interrupt
#define FMSTR_SHORT_INTR 1 // Queuing done in interrupt
#define FMSTR_POLL_DRIVEN 0 // No interrupt needed, polling only
// Select communication interface
#define FMSTR_TRANSPORT FMSTR_SERIAL // Use serial transport layer
#define FMSTR_SERIAL_DRV FMSTR_SERIAL_S32K3XX_LPUART // Use serial driver for UART
// Input/output communication buffer size
#define FMSTR_COMM_BUFFER_SIZE 0 // Set to 0 for "automatic"
// Receive FIFO queue size (use with FMSTR_SHORT_INTR only)
#define FMSTR_COMM_RQUEUE_SIZE 32 // Set to 0 for "default"
Thanks
BR, BillWen