mirror of
https://github.com/micropython/micropython.git
synced 2025-12-15 17:30:14 +01:00
qemu/boards: Add new MPS3_AN547 board definition.
This is a Cortex-M55 board. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
committed by
Damien George
parent
557290f49d
commit
28919abb17
16
ports/qemu/boards/MPS3_AN547/mpconfigboard.mk
Normal file
16
ports/qemu/boards/MPS3_AN547/mpconfigboard.mk
Normal file
@@ -0,0 +1,16 @@
|
||||
QEMU_ARCH = arm
|
||||
QEMU_MACHINE = mps3-an547
|
||||
|
||||
CFLAGS += -mthumb -mcpu=cortex-m55 -mfloat-abi=hard -mfpu=fpv5-d16
|
||||
CFLAGS += -DQEMU_SOC_MPS3
|
||||
CFLAGS += -DMICROPY_HW_MCU_NAME='"Cortex-M55"'
|
||||
CFLAGS += -DCPU_FREQ_HZ=32000000
|
||||
|
||||
LDSCRIPT = mcu/arm/mps3.ld
|
||||
|
||||
SRC_BOARD_O = shared/runtime/gchelper_generic.o
|
||||
|
||||
MPY_CROSS_FLAGS += -march=armv7emdp
|
||||
|
||||
MICROPY_FLOAT_IMPL ?= double
|
||||
SUPPORTS_HARDWARE_FP_DOUBLE ?= 1
|
||||
49
ports/qemu/mcu/arm/mps3.ld
Normal file
49
ports/qemu/mcu/arm/mps3.ld
Normal file
@@ -0,0 +1,49 @@
|
||||
/* This file is part of the MicroPython project, http://micropython.org/
|
||||
* The MIT License (MIT)
|
||||
* Copyright (c) 2018 Damien P. George
|
||||
*/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
ITCM : ORIGIN = 0x00000000, LENGTH = 512K
|
||||
RAM : ORIGIN = 0x01000000, LENGTH = 2M
|
||||
}
|
||||
|
||||
_estack = ORIGIN(RAM) + LENGTH(RAM);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.isr_vector : {
|
||||
KEEP(*(.isr_vector))
|
||||
. = ALIGN(4);
|
||||
} > ITCM
|
||||
|
||||
.text : {
|
||||
*(.text*)
|
||||
*(.rodata*)
|
||||
. = ALIGN(4);
|
||||
*(.ARM.exidx*)
|
||||
. = ALIGN(4);
|
||||
_etext = .;
|
||||
_sidata = _etext;
|
||||
} > RAM
|
||||
|
||||
.data : AT ( _sidata )
|
||||
{
|
||||
. = ALIGN(4);
|
||||
_sdata = .;
|
||||
*(.data*)
|
||||
. = ALIGN(4);
|
||||
_edata = .;
|
||||
} >RAM
|
||||
|
||||
.bss :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
_sbss = .;
|
||||
*(.bss*)
|
||||
*(COMMON)
|
||||
. = ALIGN(4);
|
||||
_ebss = .;
|
||||
} >RAM
|
||||
}
|
||||
Reference in New Issue
Block a user