Skip to content

[STM32F429ZI] INITIAL_SP correction #2824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
;
;*******************************************************************************

__initial_sp EQU 0x20020000 ; Top of RAM
__initial_sp EQU 0x20030000 ; Top of RAM

PRESERVE8
THUMB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
;
;*******************************************************************************

__initial_sp EQU 0x20020000 ; Top of RAM
__initial_sp EQU 0x20030000 ; Top of RAM

PRESERVE8
THUMB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

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

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

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

Expand Down
15 changes: 0 additions & 15 deletions hal/targets/cmsis/TARGET_STM/mbed_rtx.h
Original file line number Diff line number Diff line change
Expand Up @@ -422,21 +422,6 @@
#define OS_CLOCK 100000000
#endif

#elif defined(TARGET_STM32F429ZI)

#ifndef INITIAL_SP
#define INITIAL_SP (0x20030000UL)
#endif
#ifndef OS_TASKCNT
#define OS_TASKCNT 14
#endif
#ifndef OS_MAINSTKSIZE
#define OS_MAINSTKSIZE 256
#endif
#ifndef OS_CLOCK
#define OS_CLOCK 168000000
#endif

#elif defined(TARGET_STM32F446RE)

#ifndef INITIAL_SP
Expand Down