Index: trunk/fw_g473rct/SES/STM32G4xx/Source/STM32G4xx_Startup.s
===================================================================
--- trunk/fw_g473rct/SES/STM32G4xx/Source/STM32G4xx_Startup.s	(revision 20)
+++ trunk/fw_g473rct/SES/STM32G4xx/Source/STM32G4xx_Startup.s	(revision 68)
@@ -132,5 +132,23 @@
         // Call MemoryInit
         //
-        bl      MemoryInit
+        //bl      MemoryInit
+        ldr r1, =0x20000000  // start address of SRAM
+        ldr r2, =0x20008000  // end address of SRAM
+        movs r3, #0   // we want to write 0 to all address
+SRAM1:
+        str r3, [r1]   // store 0 at address
+        adds r1, r1, #4  // increment to next address
+        cmp r1, r2   // update flags
+        bne SRAM1 // branch if write address equals end of SRAM
+
+        ldr r1, =0x20018000  // start address of CCM-SRAM
+        ldr r2, =0x20020000  // end address of CCM-SRAM
+        movs r3, #0   // we want to write 0 to all address
+CCM_SRAM:
+        str r3, [r1]   // store 0 at address
+        adds r1, r1, #4  // increment to next address
+        cmp r1, r2   // update flags
+        bne CCM_SRAM // branch if write address equals end of CCM-SRAM
+
 #endif
 #ifdef __VECTORS_IN_RAM
