Other Parts Discussed in Thread: C2000WARE, UNIFLASH
Hi experts,
My customer created a custom board using the F28375D.
When they performed self-programming via EMIF on a C2000 with DCSM enabled, the software rewrite failed.
FlashAPI provided by TI is used for self-programming, and self-programming can be performed without any problems unless DCSM is enabled.
Q:Are there any settings or precautions required when performing self-flash using FlashAPI with DCSM enabled?
[DCSM settings]
- Z1-LinkPointer1~3 remain at default 0xFFFFFFFF
- Set all Z1-CSMPSWD0~3 to 0xFFFFFFF1
- Set Z1-GRAMBSECT to 0x0AAAAAAA
- Set Z1-GRABRAM to 0x10005555
- *Other than the above, leave as default
They tried setting the following registers using the sample source that supports self-programming using DCSM as a reference, but it did not improve the situation.
c2000\C2000Ware_5_01_00_00\device_support\f2837xd\examples\cpu1\flash_programming_dcsm\cpu01/flash_programming_dcsm_cpu01.c
- DcsmCommonRegs.FLSEM.all = 0xA501;
- Flash0EccRegs.ECC_ENABLE.bit.ENABLE = 0x0;
The DSP during self-programming is started from Get mode.
Best regards,
O.H