Skip to content

Commit 28919ab

Browse files
iabdalkaderdpgeorge
authored andcommitted
qemu/boards: Add new MPS3_AN547 board definition.
This is a Cortex-M55 board. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
1 parent 557290f commit 28919ab

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
QEMU_ARCH = arm
2+
QEMU_MACHINE = mps3-an547
3+
4+
CFLAGS += -mthumb -mcpu=cortex-m55 -mfloat-abi=hard -mfpu=fpv5-d16
5+
CFLAGS += -DQEMU_SOC_MPS3
6+
CFLAGS += -DMICROPY_HW_MCU_NAME='"Cortex-M55"'
7+
CFLAGS += -DCPU_FREQ_HZ=32000000
8+
9+
LDSCRIPT = mcu/arm/mps3.ld
10+
11+
SRC_BOARD_O = shared/runtime/gchelper_generic.o
12+
13+
MPY_CROSS_FLAGS += -march=armv7emdp
14+
15+
MICROPY_FLOAT_IMPL ?= double
16+
SUPPORTS_HARDWARE_FP_DOUBLE ?= 1

ports/qemu/mcu/arm/mps3.ld

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/* This file is part of the MicroPython project, http://micropython.org/
2+
* The MIT License (MIT)
3+
* Copyright (c) 2018 Damien P. George
4+
*/
5+
6+
MEMORY
7+
{
8+
ITCM : ORIGIN = 0x00000000, LENGTH = 512K
9+
RAM : ORIGIN = 0x01000000, LENGTH = 2M
10+
}
11+
12+
_estack = ORIGIN(RAM) + LENGTH(RAM);
13+
14+
SECTIONS
15+
{
16+
.isr_vector : {
17+
KEEP(*(.isr_vector))
18+
. = ALIGN(4);
19+
} > ITCM
20+
21+
.text : {
22+
*(.text*)
23+
*(.rodata*)
24+
. = ALIGN(4);
25+
*(.ARM.exidx*)
26+
. = ALIGN(4);
27+
_etext = .;
28+
_sidata = _etext;
29+
} > RAM
30+
31+
.data : AT ( _sidata )
32+
{
33+
. = ALIGN(4);
34+
_sdata = .;
35+
*(.data*)
36+
. = ALIGN(4);
37+
_edata = .;
38+
} >RAM
39+
40+
.bss :
41+
{
42+
. = ALIGN(4);
43+
_sbss = .;
44+
*(.bss*)
45+
*(COMMON)
46+
. = ALIGN(4);
47+
_ebss = .;
48+
} >RAM
49+
}

0 commit comments

Comments
 (0)