Ignore:
Timestamp:
Jun 5, 2026, 1:30:00 PM (5 days ago)
Author:
f.jahn
Message:

vor cube code generierung

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fw_g473rct/SES/STM32G4xx/Source/STM32G4xx_Startup.s

    r68 r71  
    132132        // Call MemoryInit
    133133        //
    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 
     134        bl      MemoryInit
    153135#endif
    154136#ifdef __VECTORS_IN_RAM
Note: See TracChangeset for help on using the changeset viewer.