This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28P559SG-Q1: TMS320F28P559SG2-Q1: XCP Monitor & Tune Timeout Error with Flash Boot

Part Number: TMS320F28P559SG-Q1
Other Parts Discussed in Thread: C2000WARE

I am writing to report an issue with XCP-based Monitor & Tune (External Mode) on the TMS320F28P559SG2-Q1 using MATLAB R2024b and CCS.

 

Hardware & Software Setup:

MCU: TMS320F28P559SG2-Q1 (512KB Flash, custom board)

MATLAB: R2024b (24.2)

C2000 Microcontroller Blockset: Latest

CCS: 12.7.0

C2000Ware: 5.02.00.00

CGT: TI C28x CGT 22.6.0 LTS

XCP Transport: XCP on Serial (SCI-A, GPIO28/GPIO29)

 

Issue Description:

When using Monitor & Tune with Boot From Flash enabled, MATLAB throws the following error:

Error: 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


Key Observations:

  1. Normal Deploy & Run works perfectly — firmware runs correctly from Flash when Monitor & Tune is not used.
  2. Same model works on F28P550SJ9(LaunchPad MCU) — Monitor & Tune with Flash Boot works without any issues on the SJ9 variant (1MB Flash, 64KB dedicated bank).
  3. SG2 variant has no 64KB Flash Bank — The F28P559SG2 has only 512KB Flash (2×256KB banks) with no dedicated 64KB bank. We suspect the XCP stack or its boot stub requires this 64KB Flash bank which is unavailable on SG2.

 

Questions:

  1. Does XCP Monitor & Tune with Flash Boot require the 64KB dedicated Flash bank that is present in SG9 but absent in SG2? If yes, is there a workaround to redirect XCP sections to main Flash banks on SG2?
  2. Is there a custom linker CMD file configuration recommended for XCP on devices without the 64KB Flash bank?
  3. Is F28P559SG2 officially supported for XCP-based Monitor & Tune with Flash Boot in MATLAB R2024b C2000 Blockset?
  4. Are there any known errata or limitations for XCP on the 64-pin LQFP package variant?
  5. Any guidance or example linker configuration for XCP on SG2 would be greatly appreciated.

Flash_test.zip 

Best Regards,

Divyesh Lodariya