Hello,
I am currently trying to test CAN TX using the Model-Based Design (MBD) approach, but the CAN transmission is not working. I would appreciate your support.
My test environment is as follows:
- Board: S32K344EVB-T172
- MBD Version: MBD Ver 1.8.0 (RTD V7.0.0)
- MATLAB: 2025b
- Configuration Tool: S32CT (V2025.R1.8)
- CAN Tool: VehicleSPY Basic with ValueCAN4
- FreeMASTER: Version 3.2
Reference document:
https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Interacting-with-Digital-Inputs-Outputs-on...
Test Description :
The test reads an ADC value from a potentiometer, converts it to voltage (in mV), and transmits it via CAN with ID 0x100.
The ADC result (ADC_Voltage_mv, 0–5000 mV) is verified to be working correctly in FreeMASTER.
CAN transceiver (TJA1443) initial configuration:
- CAN0_EN (PTC21) = HIGH
- CAN0_STB_N (PTC20) = HIGH
CAN configuration:
- FlexCAN0
- 500 kbps (Sampling Point: 87.5%)
- Standard ID (11-bit)
- 8-byte payload
- CAN TX Polling mode
Hardware Connection
- S32K344EVB-T172 board J32: Pin 1 (CAN_HIGH), Pin 2 (CAN_LOW)
- Connected to ValueCAN4 Channel 1: Pin 2 → CAN_LOW, Pin 7 → CAN_HIGH
- Bitrate set to 500 kbps
- 120-ohm termination resistor enabled
- CAN DB configuration:
ID 0x100 (8 bytes)
ID 0x101 (8 bytes)
Factor = 1, Offset = 0
Test Result
- No simulation errors
- Build and deployment completed successfully
- ADC works correctly
- CAN TX is not observed on VehicleSPY
I have attached the source files for review. I would appreciate any expert advice regarding the possible cause.
Attachment: CAN_TX_TEST.zip
- Model: CAN_TX_TEST.slx
- Executable: CAN_TX_TEST.elf
- Configuration file: CAN_TX_TESTConfig.mex
- CAN DB: CAN_DB_TEST_20260227.dbc
- FreeMASTER project: CAN_TX_TEST.pmpx
Thank you in advance for your support.