Skip to content

Commit 0a63586

Browse files
committed
[ion/ld] Fixed running slot B
1 parent 0c92f5d commit 0a63586

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ion/src/device/n0110/internal_flash.ld

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
MEMORY {
44
INTERNAL_FLASH (rx) : ORIGIN = 0x00200000, LENGTH = 64K
5+
INTERNAL_FLASH_AXIM (rx) : ORIGIN = 0x08000000, LENGTH = 64K
56
SRAM (rw) : ORIGIN = 0x20000000, LENGTH = 256K
67
}
78

@@ -40,11 +41,11 @@ SECTIONS {
4041
} >INTERNAL_FLASH
4142

4243
.exam_mode_buffer ORIGIN(INTERNAL_FLASH) + FLASH_SECOND_SECTOR_OFFSET : {
43-
_exam_mode_buffer_start = .;
44+
_exam_mode_buffer_start = ORIGIN(INTERNAL_FLASH_AXIM) + FLASH_SECOND_SECTOR_OFFSET;
4445
KEEP(*(.exam_mode_buffer))
4546
/* Note: We don't increment "." here, we set it. */
4647
. = ORIGIN(INTERNAL_FLASH) + FLASH_SECOND_SECTOR_OFFSET + FLASH_SECOND_SECTOR_SIZE;
47-
_exam_mode_buffer_end = .;
48+
_exam_mode_buffer_end = ORIGIN(INTERNAL_FLASH_AXIM) + FLASH_SECOND_SECTOR_OFFSET + FLASH_SECOND_SECTOR_SIZE;
4849
} >INTERNAL_FLASH
4950

5051
.text : {

0 commit comments

Comments
 (0)