Skip to content

Commit faa26f4

Browse files
authored
hslink: fix: some error in part cfg (#40)
* fix: some error in part cfg * fix: ld
1 parent e516d54 commit faa26f4

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

projects/HSLink-Pro/common/fal/fal_cfg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ extern const struct fal_flash_dev hpm_internal_flash;
3838
#define FAL_PART_TABLE \
3939
{ \
4040
{FAL_PART_MAGIC_WORD, "bl", "hpm_internal", 0x400, 127 * 1024, 0}, \
41-
{FAL_PART_MAGIC_WORD, "app", "hpm_internal", 128 * 1024, 704 * 1024, 0}, \
42-
{FAL_PART_MAGIC_WORD, "flashdb", "hpm_internal", 800 * 1024, 16 * 1024, 0}, \
41+
{FAL_PART_MAGIC_WORD, "app", "hpm_internal", 128 * 1024, 752 * 1024, 0}, \
42+
{FAL_PART_MAGIC_WORD, "flashdb", "hpm_internal", 880 * 1024, 16 * 1024, 0}, \
4343
{FAL_PART_MAGIC_WORD, "bl_b", "hpm_internal", 896 * 1024, 128 * 1024, 0}, \
4444
}
4545
#else

projects/HSLink-Pro/src/flash_uf2.ld

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66
ENTRY(_start)
77

88
STACK_SIZE = _stack_size;
9-
BL_SIZE = 128 * 1024;
10-
BL_B_SLOT_SIZE = 128 * 1024;
11-
E2P_EM_SIZE = 128 * 1024;
129

1310
MEMORY
1411
{
15-
XPI0 (rx) : ORIGIN = 0x80000000 + BL_SIZE, LENGTH = _flash_size - BL_SIZE - BL_B_SLOT_SIZE - E2P_EM_SIZE
12+
XPI0 (rx) : ORIGIN = 0x80000000 + 128K, LENGTH = 752K /* see `common/fal/fal_cfg.h` */
1613
ILM (wx) : ORIGIN = 0x00000000, LENGTH = 128K
1714
DLM (w) : ORIGIN = 0x00080300, LENGTH = 128K - 768
1815
AHB_SRAM (w) : ORIGIN = 0xF0400000, LENGTH = 32k

0 commit comments

Comments
 (0)