From a048921c5444f2a89fb50e012aa9adec2e87abb4 Mon Sep 17 00:00:00 2001 From: true Date: Sat, 21 Oct 2023 07:53:25 -0700 Subject: [PATCH] Use vendor pack Now that debug is working, we can use the vendor provided pack instead of a custom one. --- py32f030x6.ld | 2 -- pyocd.yaml | 2 +- pyocd_user.py | 12 ++++++------ 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/py32f030x6.ld b/py32f030x6.ld index 4664fb4..84187c7 100644 --- a/py32f030x6.ld +++ b/py32f030x6.ld @@ -31,8 +31,6 @@ MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 4K FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 32K - PERIPHERAL (rw): ORIGIN = 0x40000000, LENGTH = 512M - PPB (rw) : ORIGIN = 0xe0000000, LENGTH = 512M } /* Define output sections */ diff --git a/pyocd.yaml b/pyocd.yaml index 3949a6e..c1303ae 100644 --- a/pyocd.yaml +++ b/pyocd.yaml @@ -1,4 +1,4 @@ pack: - - boards/pack/Puya.PY32F0xx_DFP.1.1.3a.pack + - boards/pack/Puya.PY32F0xx_DFP.1.1.3.pack script: pyocd_user.py \ No newline at end of file diff --git a/pyocd_user.py b/pyocd_user.py index 5d99db6..93d198c 100644 --- a/pyocd_user.py +++ b/pyocd_user.py @@ -3,12 +3,12 @@ def will_connect(board): print("notice: adding peripheral memory map..."); -# target.memory_map.add_region(DeviceRegion( -# name="Peripheral", -# start=0x40000000, -# length=0x20000000, -# access='rw' -# )) + target.memory_map.add_region(DeviceRegion( + name="Peripheral", + start=0x40000000, + length=0x20000000, + access='rw' + )) target.memory_map.add_region(DeviceRegion( name="PPB",