Why am I getting a 'XCP internal error: timeout expired' error during 'Monitor and Tune' for TI F28002x with specific clocking options?

160 views (last 30 days)
I am using the Embedded Coder Hardware Support Package for Texas Instruments C2000 and LAUNCHXL-F280025C development board (Model Settings > Hardware Implementation > Hardware Board: TI F28002x) with the shipped example model below.
When running 'Monitor and Tune' for specific clocking configuration options, I get an 'XCP internal error: timeout expired' error.
The configuration options that cause the error are:
  • Model Settings > Hardware Implementation > Hardware Board > Target hardware resources > Clocking: Use internal oscillator: CLEARED (Unchecked)
  • Model Settings > Hardware Implementation > Hardware Board > Target hardware resources > Clocking: Oscillator clock (OSCCLK) frequency in MHz: 10
The full error text is below:
"External Mode Open Protocol Connect command failed
Caused by: Could not connect to target application: XCP internal error: timeout expired, in response to XCP CONNECT command
Component:Simulink | Category:Block diagram error
Unable to connect to the 'TI F280025C LaunchPad' target for 'c28x_xcp_packed'."

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 13 Apr 2023
For the TI F280025C Launchpad board, the external oscillator mentioned in user guide is 20 MHz and not 10 MHz. 20 MHz is the default value for the oscillator clock frequency when using external oscillator for the TI F280025C Launchpad.
If you switch to internal oscillator and then switch back to external oscillator, you will need to manually update the configuration box to reflect the oscillator clock (OSCCLK) frequency appropriate for the specific board you are using. Please change the oscillator clock frequency from 10 MHz to 20MHz in the configuration settings.

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!