Modified the linker script to support the masked 32K extra untrusted FLASH space. Ideally, a total of 64K FLASH space is available to use.
This commit is contained in:
+11
-2
@@ -62,13 +62,22 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
|
|||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K
|
||||||
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 32K
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 32K
|
||||||
|
UNTRUSTED_FLASH (rx) : ORIGIN = 0x08008000, LENGTH = 32K /* 被屏蔽的不可信Flash区域 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Define output sections */
|
/* Define output sections */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
|
/* 指定不可信区域数据段存储 */
|
||||||
|
.untrusted_data :
|
||||||
|
{
|
||||||
|
. = ALIGN(4);
|
||||||
|
*(.untrusted_data)
|
||||||
|
*(.untrusted_data.*)
|
||||||
|
} > UNTRUSTED_FLASH
|
||||||
|
|
||||||
/* The startup code goes first into FLASH */
|
/* The startup code goes first into FLASH */
|
||||||
.isr_vector :
|
.isr_vector :
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user