Skip to content

Commit ed463ed

Browse files
iabdalkaderdpgeorge
authored andcommitted
qemu/boards/MPS2_AN500: Configure and enable ROMFS.
Using the last 2MBs of PSRAM. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
1 parent a22d9da commit ed463ed

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ports/qemu/boards/MPS2_AN500/mpconfigboard.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ CFLAGS += -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16
55
CFLAGS += -DQEMU_SOC_MPS2
66
CFLAGS += -DMICROPY_HW_MCU_NAME='"Cortex-M7"'
77

8+
MICROPY_HW_ROMFS_PART0_START = 0x60C00000
9+
MICROPY_HW_ROMFS_PART0_SIZE = 0x00400000
10+
CFLAGS += -DMICROPY_HW_ROMFS_ENABLE_PART0=1
11+
CFLAGS += -DMICROPY_HW_ROMFS_PART0_START=$(MICROPY_HW_ROMFS_PART0_START)
12+
CFLAGS += -DMICROPY_HW_ROMFS_PART0_SIZE=$(MICROPY_HW_ROMFS_PART0_SIZE)
13+
814
LDSCRIPT = mcu/arm/mps2.ld
915

1016
SRC_BOARD_O = shared/runtime/gchelper_native.o shared/runtime/gchelper_thumb2.o

0 commit comments

Comments
 (0)