Part Number: TMS570LC4357
Hi experts,
I am currently trying to implent the FLA11 test listed in the safety manual. I started by reading the description in the Technical Reference (chapter 7.7.2.2) and then looked at the implementation in the Safe TI Library.
My Problem now, is that I cannot get it to work and I do not fully understand the values used in the Safe Ti Library.
The following is my understanding of this test:
Testing for 2-Bit-Errors:
1. Branch to non flash region
2. FDIAGCTRL = 0x00050007
3. (From Ti-Library:) FEMU_DMSW = 0x0 and FEMU_DLSW = 0x0
4. (From Ti-Library:) FEMU_ECC = 0x03
5. Select Port
6. Set DIAG_TRIG to 1
7. Read from flash (Safe TI Library uses Address 0x000000016)
8. Check if ESM 2.3 is set.
(Q1) Why is in step 4 the vector FEMU_ECC = 0x03?
(Q2) Is there a reason why in step 7 the Address is 0x000000016?
(Q3) If I understand this correctly a 2-Bit Error leads to a Data-Abort and ESM 2.3 correct?
Testing for 1-Bit-Errors:
Prerequisites:
- EPC configuration: SERRENA = Ah
- 4th bit of PMU PMCR must be 0x1
1. Branch to non flash region
2. FDIAGCTRL = 0x00050007
3. (From Ti-Library:) FEMU_DMSW = 0x0 and FEMU_DLSW = 0x0
4. (From Ti-Library:) FEMU_ECC = 0xCE
5. Select Port
6. Set DIAG_TRIG to 1
7. Read from flash (Safe TI Library uses Address 0x00000008)
8. Check if ESM 1.4 is set.
9. clear CAM and FIFO in EPC
(Q4) Why is in step 4 the vector FEMU_ECC = 0xCE?
(Q5) Is there a reason why in step 7 the Address is 0x00000008u?
(Q6) If I understand this correctly a 1-Bit Error does not lead to a Data-Abort but to ESM 1.4, correct?
Thank you and best regards,
Max
