Skip to content

Commit f6b49e7

Browse files
committed
[BSP] Update to IRAM2 in frdm-k64f
1 parent 0f3563f commit f6b49e7

File tree

4 files changed

+65
-291
lines changed

4 files changed

+65
-291
lines changed

bsp/frdm-k64f/applications/startup.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ extern void finsh_set_device(const char* device);
3030
#endif
3131

3232
#ifdef __CC_ARM
33-
extern int Image$$RW_IRAM1$$ZI$$Limit;
34-
#define K64_SRAM_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
33+
extern int Image$$RW_IRAM2$$ZI$$Limit;
34+
#define K64_SRAM_BEGIN (&Image$$RW_IRAM2$$ZI$$Limit)
3535
#elif __ICCARM__
3636
#pragma section="HEAP"
3737
#define K64_SRAM_BEGIN (__segment_end("HEAP"))

bsp/frdm-k64f/board/board.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
// <o> Internal SRAM memory size[Kbytes] <8-64>
2525
// <i>Default: 64
26-
#define K64_SRAM_SIZE 256
27-
#define K64_SRAM_END (0x1FFF0000 + (K64_SRAM_SIZE * 1024))
26+
#define K64_SRAM_SIZE 192
27+
#define K64_SRAM_END (0x20000000 + (K64_SRAM_SIZE * 1024))
2828

2929
//#define RT_USING_UART1
3030
#define RT_USING_UART0

0 commit comments

Comments
 (0)