Skip to content

Commit 58c12f1

Browse files
authored
Merge pull request #2824 from jeromecoutant/PR_F429ZI_SP
[STM32F429ZI] INITIAL_SP correction
2 parents 24f76f1 + dfbb567 commit 58c12f1

File tree

5 files changed

+6
-21
lines changed

5 files changed

+6
-21
lines changed

hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/startup_stm32f429xx.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
;
4040
;*******************************************************************************
4141

42-
__initial_sp EQU 0x20020000 ; Top of RAM
42+
__initial_sp EQU 0x20030000 ; Top of RAM
4343

4444
PRESERVE8
4545
THUMB

hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/stm32f429xx.sct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2929

30-
; 2 MB FLASH (0x200000) + 256 KB SRAM (0x40000)
30+
; 2 MB FLASH (0x200000) + 192 KB SRAM (0x30000)
3131
LR_IROM1 0x08000000 0x200000 { ; load region size_region
3232

3333
ER_IROM1 0x08000000 0x200000 { ; load address = execution address
@@ -37,7 +37,7 @@ LR_IROM1 0x08000000 0x200000 { ; load region size_region
3737
}
3838

3939
; Total: 107 vectors = 428 bytes (0x1AC) to be reserved in RAM
40-
RW_IRAM1 (0x20000000+0x1AC) (0x20000-0x1AC) { ; RW data
40+
RW_IRAM1 (0x20000000+0x1AC) (0x30000-0x1AC) { ; RW data
4141
.ANY (+RW +ZI)
4242
}
4343

hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/startup_stm32f429xx.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
;
4040
;*******************************************************************************
4141

42-
__initial_sp EQU 0x20020000 ; Top of RAM
42+
__initial_sp EQU 0x20030000 ; Top of RAM
4343

4444
PRESERVE8
4545
THUMB

hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/stm32f429xx.sct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2929

30-
; 2 MB FLASH (0x200000) + 256 KB SRAM (0x40000)
30+
; 2 MB FLASH (0x200000) + 192 KB SRAM (0x30000)
3131
LR_IROM1 0x08000000 0x200000 { ; load region size_region
3232

3333
ER_IROM1 0x08000000 0x200000 { ; load address = execution address
@@ -37,7 +37,7 @@ LR_IROM1 0x08000000 0x200000 { ; load region size_region
3737
}
3838

3939
; Total: 107 vectors = 428 bytes (0x1AC) to be reserved in RAM
40-
RW_IRAM1 (0x20000000+0x1AC) (0x20000-0x1AC) { ; RW data
40+
RW_IRAM1 (0x20000000+0x1AC) (0x30000-0x1AC) { ; RW data
4141
.ANY (+RW +ZI)
4242
}
4343

hal/targets/cmsis/TARGET_STM/mbed_rtx.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -422,21 +422,6 @@
422422
#define OS_CLOCK 100000000
423423
#endif
424424

425-
#elif defined(TARGET_STM32F429ZI)
426-
427-
#ifndef INITIAL_SP
428-
#define INITIAL_SP (0x20030000UL)
429-
#endif
430-
#ifndef OS_TASKCNT
431-
#define OS_TASKCNT 14
432-
#endif
433-
#ifndef OS_MAINSTKSIZE
434-
#define OS_MAINSTKSIZE 256
435-
#endif
436-
#ifndef OS_CLOCK
437-
#define OS_CLOCK 168000000
438-
#endif
439-
440425
#elif defined(TARGET_STM32F446RE)
441426

442427
#ifndef INITIAL_SP

0 commit comments

Comments
 (0)