Skip to content

Commit

Permalink
re-add qemu platform
Browse files Browse the repository at this point in the history
  • Loading branch information
mkannwischer committed Oct 20, 2024
1 parent 83452ee commit 155ccb1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def parse_arguments():
"-p",
"--platform",
help="The PQM4 platform",
choices=["nucleo-f767zi"],
choices=["nucleo-f767zi", "mps2-an386"],
default="nucleo-f767zi",
)
parser.add_argument(
Expand Down Expand Up @@ -49,6 +49,10 @@ def get_platform(args):
if args.platform == "nucleo-f767zi":
bin_type = "hex"
platform = platforms.OpenOCD("board/st_nucleo_f7.cfg", args.uart)
elif args.platform == 'mps2-an386':
bin_type = 'bin'
platform = platforms.Qemu('qemu-system-arm', 'mps2-an386')

else:
raise NotImplementedError("Unsupported Platform")
settings = M7Settings(
Expand All @@ -70,6 +74,7 @@ class M7Settings(mupq.PlatformSettings):

platform_memory = {
"nucleo-f767zi": 384 * 1024,
'mps2-an386': 4096*1024,
}

def __init__(
Expand Down

0 comments on commit 155ccb1

Please sign in to comment.