mirror of https://github.com/wolfSSL/wolfBoot.git
Expanded RAM space for App 64->128 KB
parent
ed0357289c
commit
e4abcbd78b
|
@ -119,18 +119,25 @@ void hal_tz_release_nonsecure_area(void)
|
|||
void hal_gtzc_init(void)
|
||||
{
|
||||
int i;
|
||||
/* Configure lower half of total RAM as secure */
|
||||
/* Configure lower half of total RAM as secure
|
||||
* 0x3000 0000 : 0x3001 FFFF - 128KB
|
||||
*/
|
||||
for (i = 0; i < 16; i++) {
|
||||
SET_GTZC_MPCBBx_S_VCTR(1, i, 0xFFFFFFFF);
|
||||
}
|
||||
/* Configure rest of SRAM1 as non-secure */
|
||||
|
||||
/* Configure high portion of SRAM1 as non-secure
|
||||
* 0x2002 0000 : 0x2002 FFFF - 64 KB
|
||||
*/
|
||||
for (i = 16; i < 24; i++) {
|
||||
SET_GTZC_MPCBBx_S_VCTR(1, i, 0x0);
|
||||
}
|
||||
|
||||
/* Configure SRAM2 as secure */
|
||||
/* Configure SRAM2 as non-secure
|
||||
* 0x2003 0000 : 0x2003 FFFF - 64 KB
|
||||
*/
|
||||
for (i = 0; i < 8; i++) {
|
||||
SET_GTZC_MPCBBx_S_VCTR(2, i, 0xFFFFFFFF);
|
||||
SET_GTZC_MPCBBx_S_VCTR(2, i, 0x0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 7ebebbc1bf8e687983771cf600831ce92b49baf5
|
||||
Subproject commit 97a21988946187e4a3587d2fc20de59ae268117c
|
|
@ -1,7 +1,7 @@
|
|||
MEMORY
|
||||
{
|
||||
FLASH (rx) : ORIGIN = @WOLFBOOT_TEST_APP_ADDRESS@, LENGTH = @WOLFBOOT_TEST_APP_SIZE@
|
||||
RAM (rwx) : ORIGIN = 0x20020000, LENGTH = 0x10000
|
||||
RAM (rwx) : ORIGIN = 0x20020000, LENGTH = 0x20000
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
|
|
|
@ -25,15 +25,11 @@
|
|||
/* Option to enable sign tool debugging */
|
||||
/* Must also define DEBUG_WOLFSSL in user_settings.h */
|
||||
//#define DEBUG_SIGNTOOL
|
||||
//
|
||||
|
||||
#include "signtools.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#define _CRT_NONSTDC_NO_DEPRECATE /* unlink */
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
|
|
Loading…
Reference in New Issue