]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Disable Flash ECC
authorMichal Horn <hornmich@fel.cvut.cz>
Wed, 12 Nov 2014 14:28:04 +0000 (15:28 +0100)
committerMichal Horn <hornmich@fel.cvut.cz>
Wed, 12 Nov 2014 14:28:04 +0000 (15:28 +0100)
The simulink download code to the target is not working with Flash ECC
enabled, because the download script has not enabled the Auto ECC generation.
This could be fixed easily by some switch. But worse thing is, that Open
OCD stopped working as well, because of the same reason and the fix may not
be so easy as for Ti Download script.
So for now the best solution is to disable the ECC.

rpp/src/sys/sys_startup.c

index 4b508a0d13544a188dcbd9f1c2ae3d2119a9db34..28fa6d04aaf3db87dfa7c8abee67c21aa4a3d598 100644 (file)
@@ -266,10 +266,10 @@ void _c_int00()
     _coreEnableEventBusExport_();
 
     /* Enable response to ECC errors indicated by CPU for accesses to flash */
-    flashWREG->FEDACCTRL1 = 0x000A060A;
+    /*flashWREG->FEDACCTRL1 = 0x000A060A;*/
 
     /* Enable CPU ECC checking for ATCM (flash accesses) */
-    _coreEnableFlashEcc_();
+    /*_coreEnableFlashEcc_();*/
 
     /* Reset handler: the following instructions read from the system exception status register
      * to identify the cause of the CPU reset.
@@ -477,8 +477,9 @@ void _c_int00()
      * to return the code execution to the instruction following the one that was aborted.
      *
      */
+    /*
     checkFlashECC();
-    flashWREG->FDIAGCTRL = 0x000A0007;                  /* disable flash diagnostic mode */
+    flashWREG->FDIAGCTRL = 0x000A0007; */                  /* disable flash diagnostic mode */
 
     /* Wait for PBIST for CPU RAM to be completed */
     while(!pbistIsTestCompleted());