Changeset 68 for trunk/fw_g473rct/SES/STM32G4xx
- Timestamp:
- Apr 2, 2026, 5:02:38 PM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/fw_g473rct/SES/STM32G4xx/Source/STM32G4xx_Startup.s
r20 r68 132 132 // Call MemoryInit 133 133 // 134 bl MemoryInit 134 //bl MemoryInit 135 ldr r1, =0x20000000 // start address of SRAM 136 ldr r2, =0x20008000 // end address of SRAM 137 movs r3, #0 // we want to write 0 to all address 138 SRAM1: 139 str r3, [r1] // store 0 at address 140 adds r1, r1, #4 // increment to next address 141 cmp r1, r2 // update flags 142 bne SRAM1 // branch if write address equals end of SRAM 143 144 ldr r1, =0x20018000 // start address of CCM-SRAM 145 ldr r2, =0x20020000 // end address of CCM-SRAM 146 movs r3, #0 // we want to write 0 to all address 147 CCM_SRAM: 148 str r3, [r1] // store 0 at address 149 adds r1, r1, #4 // increment to next address 150 cmp r1, r2 // update flags 151 bne CCM_SRAM // branch if write address equals end of CCM-SRAM 152 135 153 #endif 136 154 #ifdef __VECTORS_IN_RAM
Note:
See TracChangeset
for help on using the changeset viewer.
