Skip to content

Commit

Permalink
Add more space to non-secure world in Hello_World_TZ example
Browse files Browse the repository at this point in the history
  • Loading branch information
sihyung-maxim committed Jul 1, 2024
1 parent b92507d commit b8d7aff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Examples/MAX32657/Hello_World_TZ/NonSecure/max32657_ns.ld
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ENTRY(Reset_Handler)

MEMORY {
FLASH (rx) : ORIGIN = 0x01080000, LENGTH = 0x00080000 /* User-selected Non-Secure Flash settings */
SRAM (rwx) : ORIGIN = 0x20032000, LENGTH = 0x0000e000 /* User-selected Non-Secure SRAM settings */
SRAM (rwx) : ORIGIN = 0x20020000, LENGTH = 0x00020000 /* User-selected Non-Secure SRAM settings */
}

SECTIONS {
Expand Down
2 changes: 1 addition & 1 deletion Examples/MAX32657/Hello_World_TZ/Secure/max32657_s.ld
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MEMORY {
FLASH (rx) : ORIGIN = 0x11000000, LENGTH = 0x00078000 /* User-selected Secure Flash */
FLASH_NS (rx) : ORIGIN = 0x01080000, LENGTH = 0x00080000 /* User-selected Non-Secure Flash */
SRAM (rwx) : ORIGIN = 0x30000000, LENGTH = 0x30000000 /* User-selected Secure SRAM */
SRAM_NS (rwx) : ORIGIN = 0x20032000, LENGTH = 0x0000e000 /* User-selected Non-Secure SRAM */
SRAM_NS (rwx) : ORIGIN = 0x20020000, LENGTH = 0x00020000 /* User-selected Non-Secure SRAM */

NSC_REGION (rx) : ORIGIN = 0x11078000, LENGTH = 0x11078000 /* User-selected Non-Secure Callable Region */
}
Expand Down
4 changes: 2 additions & 2 deletions Examples/MAX32657/Hello_World_TZ/Secure/partition_max32657.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
/*
// <o>End Address <0x1F-0xFFFFFFFF>
*/
#define SAU_INIT_END2 0x30031fff
#define SAU_INIT_END2 0x3001ffff

/*
// <o>Region is
Expand All @@ -194,7 +194,7 @@
/*
// <o>Start Address <0-0xFFFFFFE0>
*/
#define SAU_INIT_START3 0x20032000
#define SAU_INIT_START3 0x20020000

/*
// <o>End Address <0x1F-0xFFFFFFFF>
Expand Down
4 changes: 2 additions & 2 deletions Examples/MAX32657/Hello_World_TZ/Secure/project.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ USE_CUSTOM_MEMORY_SETTINGS = 1
# *_SIZE required if USE_CUSTOM_MEMORY_SETTINGS=1
S_FLASH_SIZE=0x00080000
NS_FLASH_SIZE=0x00080000
S_SRAM_SIZE=0x00032000
NS_SRAM_SIZE=0x0000E000
S_SRAM_SIZE=0x00020000
NS_SRAM_SIZE=0x00020000

NSC_SIZE=0x00008000 # Not required.

Expand Down

0 comments on commit b8d7aff

Please sign in to comment.