mpc5744p烧录不成功

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mpc5744p烧录不成功

485 Views
zhiming
Contributor I

我打算采用mpc5744p做基于模型的设计,matlab是2023B ,我路径,安装包什么都配置了,但是就是不行,一直报错,端口号也改了,但是就是不行,救救我,好几天了。help me god.

在simulink中报错的信息是loss communction with ccp mcu..........

Thank for you much to resolve my question.

0 Kudos
Reply
3 Replies

461 Views
petervlna
NXP TechSupport
NXP TechSupport

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:

  • Check Toolchain Compatibility

    • Run ver in MATLAB.
    • Confirm your NXP MBDT version supports MATLAB R2023b (or install matching versions).
  • Verify Transport

    • Decide: Serial (COM) or CAN.
    • For Serial: find correct COM port (serialportlist("all")), set baud rate, ensure drivers installed.
    • For CAN: confirm dongle drivers, bitrate, termination, and channel.
  • Match Settings

    • External mode: correct transport, COM/CAN channel, baud/bitrate, station address.
    • Disable seed & key initially.
    • Enable Verbose diagnostics.
  • Check Firmware

    • Flash a known-good External mode CCP example for MPC5744P.
    • Ensure CCP server is running on target.
  • Test Basic Connectivity

    • For Serial: open COM in MATLAB and read data.
    • For CAN: use vendor tool (CANalyzer, PCAN-View) to confirm CCP frames.
  • Eliminate Common Issues

    • No other app using COM/CAN.
    • Correct drivers installed (PEMicro, CAN vendor).
    • Bitrate and station address match.
    • Proper termination on CAN bus.
  • Start Simple

    • Use official example → build → flash → connect.
    • Then add your custom logic.

 

Best regards,

Peter

0 Kudos
Reply

454 Views
zhiming
Contributor I

老哥,那我问一下现在我看网上最新是3.2.0,你推荐用哪款matlab,可以说一下吗? 还有就是我要烧录程序,一开始板子上的跳键帽应该是怎么样的,可以拍张图吗,会不会是我跳键帽插错了。不过用S32ds的话可以正常下载调试LED灯。

0 Kudos
Reply

306 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I see the latest version online is 3.2.0. Which MATLAB version do you recommend?Could you tell me?

Use MATLAB R2020a (or up to R2020b if needed) with Simulink Coder and Embedded Coder, which offers:

  • Full compatibility with MBDT 3.2.0
  • Official support through documented flows
  • Better stability compared to later releases

Also, I need to program the LEDs. What should the jumper caps on the board look like initially?

I do not know which EVB you are using, but there is always quick start guide or schematics available for that board. There you will find if LEDs need a routing or they are directly routed to the pins.

Could you take a picture? Maybe I've inserted the jumper caps incorrectly? However, I can download and debug the LEDs normally using the S32ds.

https://www.nxp.com/document/guide/getting-started-with-the-devkit-mpc5744p:NGS-DEVKIT-MPC5744P

petervlna_0-1768205943574.png

Best regards,

Peter

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2290661%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3Empc5744p%20burn-in%20unsuccessful%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290661%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20going%20to%20use%20mpc5744p%20to%20do%20model%20based%20design%2C%20matlab%20is%202023B%20%2CI%20have%20configured%20the%20path%2C%20installer%20and%20everything%2C%20but%20it%20just%20doesn't%20work%2C%20it%20keeps%20reporting%20errors%2C%20the%20port%20number%20has%20been%20changed%2C%20but%20it%20just%20doesn't%20work%2C%20help%20me%20god%2C%20it's%20been%20a%20few%20days.%20help%20me%20god.%3C%2FP%3E%3CP%3EThe%20error%20message%20reported%20in%20simulink%20is%20loss%20communction%20with%20ccp%20mcu..........%3C%2FP%3E%3CP%3EThank%20for%20you%20much%20to%20resolve%20my%20question.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290846%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20mpc5744p%E7%83%A7%E5%BD%95%E4%B8%8D%E6%88%90%E5%8A%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290846%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EOlder%20brother%2C%20then%20I%20ask%20now%20I%20see%20online%20the%20latest%20is%203.2.0%2C%20which%20matlab%20you%20recommend%20to%20use%2C%20can%20you%20say%3F%20There%20is%20also%20I%20want%20to%20burn%20the%20program%2C%20at%20first%20the%20board%20on%20the%20jump%20key%20cap%20should%20be%20how%2C%20can%20you%20take%20a%20picture%20of%20it%2C%20will%20not%20be%20my%20jump%20key%20cap%20inserted%20wrong.%20But%20with%20the%20S32ds%20you%20can%20download%20and%20debug%20the%20LEDs%20normally.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290726%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20mpc5744p%E7%83%A7%E5%BD%95%E4%B8%8D%E6%88%90%E5%8A%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290726%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EI'm%20planning%20to%20use%20the%20MPC5744P%20for%20model-based%20design%2C%20and%20MATLAB%20is%20version%202023B.%20I've%20configured%20the%20installation%20path%20and%20packages%2C%20but%20it%20just%20won't%20work%3B%20I%20keep%20getting%20errors.%20I've%20even%20changed%20the%20port%20number%2C%20but%20it%20still%20doesn't%20work.%20Please%20help%20me%2C%20it's%20been%20like%20this%20for%20days.%20The%20error%20message%20in%20Simulink%20is%20%22loss%20communction%20with%20ccp%20mcu...%22.%20Thank%20you%20so%20much%20for%20resolving%20my%20question.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3Ethat%20%E2%80%9Closs%20communication%20with%20ccp%20mcu%E2%80%A6%E2%80%9D%20message%20almost%20always%20means%20the%20host%20(MATLAB%2FSimulink)%20can%E2%80%99t%20talk%20to%20the%20target%20over%20the%20CCP%20link%20(Serial%20or%20CAN).%3C%2FP%3E%0A%3CP%3ECCP%20(CAN%20Calibration%20Protocol)%20%2F%20XCP%20%E2%80%9CExternal%20mode%E2%80%9D%20relies%20on%20a%20very%20specific%20chain%3A%3CBR%20%2F%3ESimulink%20(External%20mode)%20%E2%87%84%20PC%20driver%20(Serial%2FCAN)%20%E2%87%84%20Interface%20(COM%20%2F%20CAN%20dongle)%20%E2%87%84%20Transceiver%2FUSB%20bridge%20%E2%87%84%20MCU%20firmware%20with%20CCP%2FXCP%20server%3CBR%20%2F%3EIf%20any%20of%20these%20pieces%20has%20a%20mismatch%20(wrong%20COM%2FCAN%20channel%2C%20baud%2Fbitrate%2C%20station%20address%2C%20missing%20driver%2Ffirmware%2C%20unsupported%20MATLAB%2FMBDT%20version%2C%20etc.)%2C%20Simulink%20drops%20the%20link%20and%20you%20see%20that%20error.%3C%2FP%3E%0A%3CP%3EWhich%20toolbox%20are%20you%20using%20for%20MPC5744P%3F%3CBR%20%2F%3EMost%20people%20use%20NXP%20Model-Based%20Design%20Toolbox%20(MBDT)%20for%20MPC57xx.%20That%20toolbox%20only%20supports%20specific%20MATLAB%20releases.%20If%20your%20MATLAB%20is%20R2023b%2C%20but%20your%20MPC5744P%20MBDT%20package%20only%20supports%20up%20to%20(say)%20R2021a%2FR2022a%2C%20External%20mode%20%2F%20build%20%2F%20deploy%20can%20fail%20in%20confusing%20ways%20(including%20CCP%20loss).%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EVerify%20that%20the%20right%20firmware%20is%20running%3C%2FP%3E%0A%3CP%3EBuild%20and%20flash%20a%20known-good%20example%20that%20specifically%20states%20support%20for%20External%20mode%20via%20CCP%20for%20MPC5744P.%3CBR%20%2F%3EIn%20a%20lot%20of%20setups%2C%20the%20%E2%80%9Cexternal%20mode%E2%80%9D%20capability%20is%20not%20present%20unless%20you%20use%20a%20specific%20board-support%20Simulink%20example%2C%20which%3A%3C%2FP%3E%0A%3CP%3EInitializes%20the%20UART%2FCAN%20correctly%2C%3CBR%20%2F%3EStarts%20the%20CCP%20server%20on%20the%20MCU%2C%3CBR%20%2F%3ESets%20the%20DAQ%2Fevent%20configuration%20Simulink%20expects.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAction%20(quick%20test)%3A%3C%2FP%3E%0A%3CP%3ECreate%20a%20brand-new%20model%20from%20the%20vendor%E2%80%99s%20%E2%80%9CExternal%20mode%20CCP%20(Serial%2FCAN)%20example%E2%80%9D%20for%20MPC5744P.%3CBR%20%2F%3EChange%20just%20one%20thing%20(e.g.%2C%20blink%20a%20pin%20or%20run%20a%20counter%20Scope)%20and%20try%20Connect%20%E2%86%92%20External%20mode.%3CBR%20%2F%3EIf%20the%20example%20works%20but%20your%20project%20doesn%E2%80%99t%2C%20the%20difference%20is%20in%20init%20code%20%2F%20pin%20mux%20%2F%20clock%20%2F%20peripheral%20init%20%2F%20CCP%20server%20task.%3C%2FP%3E%0A%3CP%3EHere%20is%20a%20quick%20list%20of%20steps%20you%20can%20check%3A%3C%2FP%3E%0A%3CDIV%20style%3D%22font-family%3A%20'Segoe%20UI'%3B%20font-size%3A%2014px%3B%20font-style%3A%20normal%3B%20font-weight%3A%20400%3B%20line-height%3A%2020px%3B%22%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3ECheck%20Toolchain%20Compatibility%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ERun%20ver%20in%20MATLAB.%3C%2FLI%3E%0A%3CLI%3EConfirm%20your%20NXP%20MBDT%20version%20supports%20MATLAB%20R2023b%20(or%20install%20matching%20versions).%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3EVerify%20Transport%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDecide%3A%20Serial%20(COM)%20or%20CAN.%3C%2FLI%3E%0A%3CLI%3EFor%20Serial%3A%20find%20correct%20COM%20port%20(serialportlist(%22all%22))%2C%20set%20baud%20rate%2C%20ensure%20drivers%20installed.%3C%2FLI%3E%0A%3CLI%3EFor%20CAN%3A%20confirm%20dongle%20drivers%2C%20bitrate%2C%20termination%2C%20and%20channel.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3EMatch%20Settings%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EExternal%20mode%3A%20correct%20transport%2C%20COM%2FCAN%20channel%2C%20baud%2Fbitrate%2C%20station%20address.%3C%2FLI%3E%0A%3CLI%3EDisable%20seed%20%26amp%3B%20key%20initially.%3C%2FLI%3E%0A%3CLI%3EEnable%20Verbose%20diagnostics.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3ECheck%20Firmware%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EFlash%20a%20known-good%20External%20mode%20CCP%20example%20for%20MPC5744P.%3C%2FLI%3E%0A%3CLI%3EEnsure%20CCP%20server%20is%20running%20on%20target.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3ETest%20Basic%20Connectivity%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EFor%20Serial%3A%20open%20COM%20in%20MATLAB%20and%20read%20data.%3C%2FLI%3E%0A%3CLI%3EFor%20CAN%3A%20use%20vendor%20tool%20(CANalyzer%2C%20PCAN-View)%20to%20confirm%20CCP%20frames.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3EEliminate%20Common%20Issues%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ENo%20other%20app%20using%20COM%2FCAN.%3C%2FLI%3E%0A%3CLI%3ECorrect%20drivers%20installed%20(PEMicro%2C%20CAN%20vendor).%3C%2FLI%3E%0A%3CLI%3EBitrate%20and%20station%20address%20match.%3C%2FLI%3E%0A%3CLI%3EProper%20termination%20on%20CAN%20bus.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3EStart%20Simple%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EUse%20official%20example%20%E2%86%92%20build%20%E2%86%92%20flash%20%E2%86%92%20connect.%3C%2FLI%3E%0A%3CLI%3EThen%20add%20your%20custom%20logic.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FDIV%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPeter%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2291555%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20mpc5744p%E7%83%A7%E5%BD%95%E4%B8%8D%E6%88%90%E5%8A%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2291555%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EI%20see%20the%20latest%20version%20online%20is%203.2.0.%20Which%20MATLAB%20version%20do%20you%20recommend%3FCould%20you%20tell%20me%3F%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CDIV%3E%0A%3CP%3EUse%20MATLAB%20R2020a%20(or%20up%20to%20R2020b%20if%20needed)%20with%20Simulink%20Coder%20and%20Embedded%20Coder%2C%20which%20offers%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EFull%20compatibility%20with%20MBDT%203.2.0%3C%2FLI%3E%0A%3CLI%3EOfficial%20support%20through%20documented%20flows%3C%2FLI%3E%0A%3CLI%3EBetter%20stability%20compared%20to%20later%20releases%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FDIV%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EAlso%2C%20I%20need%20to%20program%20the%20LEDs.%20What%20should%20the%20jumper%20caps%20on%20the%20board%20look%20like%20initially%3F%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3EI%20do%20not%20know%20which%20EVB%20you%20are%20using%2C%20but%20there%20is%20always%20quick%20start%20guide%20or%20schematics%20available%20for%20that%20board.%20There%20you%20will%20find%20if%20LEDs%20need%20a%20routing%20or%20they%20are%20directly%20routed%20to%20the%20pins.%3C%2FP%3E%0A%3CP%3ECould%20you%20take%20a%20picture%3F%20Maybe%20I've%20inserted%20the%20jumper%20caps%20incorrectly%3F%20However%2C%20I%20can%20download%20and%20debug%20the%20LEDs%20normally%20using%20the%20S32ds.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocument%2Fguide%2Fgetting-started-with-the-devkit-mpc5744p%3ANGS-DEVKIT-MPC5744P%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocument%2Fguide%2Fgetting-started-with-the-devkit-mpc5744p%3ANGS-DEVKIT-MPC5744P%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22petervlna_0-1768205943574.png%22%20style%3D%22width%3A%20561px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22petervlna_0-1768205943574.png%22%20style%3D%22width%3A%20561px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F372426iFE5A4396AA1C73F1%2Fimage-dimensions%2F561x306%3Fv%3Dv2%22%20width%3D%22561%22%20height%3D%22306%22%20role%3D%22button%22%20title%3D%22petervlna_0-1768205943574.png%22%20alt%3D%22petervlna_0-1768205943574.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPeter%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E