Hello,
I'm planning to use the MPC5744P for model-based design, and MATLAB is version 2023B. I've configured the installation path and packages, but it just won't work; I keep getting errors. I've even changed the port number, but it still doesn't work. Please help me, it's been like this for days. The error message in Simulink is "loss communction with ccp mcu...". Thank you so much for resolving my question.
that “loss communication with ccp mcu…” message almost always means the host (MATLAB/Simulink) can’t talk to the target over the CCP link (Serial or CAN).
CCP (CAN Calibration Protocol) / XCP “External mode” relies on a very specific chain:
Simulink (External mode) ⇄ PC driver (Serial/CAN) ⇄ Interface (COM / CAN dongle) ⇄ Transceiver/USB bridge ⇄ MCU firmware with CCP/XCP server
If any of these pieces has a mismatch (wrong COM/CAN channel, baud/bitrate, station address, missing driver/firmware, unsupported MATLAB/MBDT version, etc.), Simulink drops the link and you see that error.
Which toolbox are you using for MPC5744P?
Most people use NXP Model-Based Design Toolbox (MBDT) for MPC57xx. That toolbox only supports specific MATLAB releases. If your MATLAB is R2023b, but your MPC5744P MBDT package only supports up to (say) R2021a/R2022a, External mode / build / deploy can fail in confusing ways (including CCP loss).
Verify that the right firmware is running
Build and flash a known-good example that specifically states support for External mode via CCP for MPC5744P.
In a lot of setups, the “external mode” capability is not present unless you use a specific board-support Simulink example, which:
Initializes the UART/CAN correctly,
Starts the CCP server on the MCU,
Sets the DAQ/event configuration Simulink expects.
Action (quick test):
Create a brand-new model from the vendor’s “External mode CCP (Serial/CAN) example” for MPC5744P.
Change just one thing (e.g., blink a pin or run a counter Scope) and try Connect → External mode.
If the example works but your project doesn’t, the difference is in init code / pin mux / clock / peripheral init / CCP server task.
Here is a quick list of steps you can check:
Best regards,
Peter