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:
- Normal Deploy & Run works perfectly — firmware runs correctly from Flash when Monitor & Tune is not used.
- 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).
- 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:
- 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?
- Is there a custom linker CMD file configuration recommended for XCP on devices without the 64KB Flash bank?
- Is F28P559SG2 officially supported for XCP-based Monitor & Tune with Flash Boot in MATLAB R2024b C2000 Blockset?
- Are there any known errata or limitations for XCP on the 64-pin LQFP package variant?
- Any guidance or example linker configuration for XCP on SG2 would be greatly appreciated.
Best Regards,
Divyesh Lodariya