sc7-testo-firmware/pyocd_user.py

18 lines
433 B
Python
Raw Normal View History

# Add missing memory region for peripherals.
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="PPB",
start=0xE0000000,
length=0x20000000,
access='rw'
))