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",