Skip to content

Commit b2ac322

Browse files
Ayush1325henrikbrixandersen
authored andcommitted
boards: beagle: pocketbeagle_2: Support splitting code and data section
The M4F allows concurrent fetch for instruction code and data via dedicated buses (I-Code and D-Code, respectively). Signed-off-by: Ayush Singh <[email protected]>
1 parent 0a9d6b8 commit b2ac322

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

boards/beagle/pocketbeagle_2/pocketbeagle_2_am6232_m4_defconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
# Platform Configuration
88
CONFIG_CORTEX_M_SYSTICK=y
99

10-
# Zephyr Kernel Configuration
11-
CONFIG_XIP=n
10+
# XIP is required to place text and data sections in I-RAM and D-RAM
11+
# respectively.
12+
CONFIG_XIP=y
1213

1314
# Serial Driver
1415
CONFIG_SERIAL=y

boards/beagle/pocketbeagle_2/pocketbeagle_2_am6254_m4_defconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
# Platform Configuration
88
CONFIG_CORTEX_M_SYSTICK=y
99

10-
# Zephyr Kernel Configuration
11-
CONFIG_XIP=n
10+
# XIP is required to place text and data sections in I-RAM and D-RAM
11+
# respectively.
12+
CONFIG_XIP=y
1213

1314
# Serial Driver
1415
CONFIG_SERIAL=y

boards/beagle/pocketbeagle_2/pocketbeagle_2_m4-common.dtsi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
compatible = "beagle,pocketbeagle_2_m4";
1313

1414
chosen {
15-
zephyr,sram = &sram0;
15+
/* Split and place TEXT and DATA in I-RAM and D-RAM respectively. `sram_icode`
16+
* is a section in internal SRAM, not an external flash.
17+
*/
18+
zephyr,flash = &sram_icode;
19+
zephyr,sram = &sram_dcode;
1620
zephyr,console = &uart0;
1721
zephyr,shell-uart = &uart0;
1822
zephyr,ipc = &ipc0;

0 commit comments

Comments
 (0)