Skip to content

Commit 28de6ed

Browse files
coresight: discovery: fix offset address for APv2
- offset address is applied twice which results in wrong address (seen on Alif Ensebmle E7)
1 parent 04b60b0 commit 28de6ed

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pyocd/coresight/discovery.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pyOCD debugger
2-
# Copyright (c) 2019-2020 Arm Limited
2+
# Copyright (c) 2019-2020,2025 Arm Limited
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -258,8 +258,9 @@ def _create_root_component(self, cmpid):
258258
"""
259259
try:
260260
# Create a memory interface for this component.
261-
ap_address = APv2Address(cmpid.address)
262-
memif = APAccessMemoryInterface(self.dp, ap_address)
261+
# ap_address = APv2Address(cmpid.address)
262+
# memif = APAccessMemoryInterface(self.dp, ap_address)
263+
memif = APAccessMemoryInterface(self.dp)
263264

264265
# Instantiate the component and attach to the target.
265266
component = cmpid.factory(memif, cmpid, cmpid.address)

0 commit comments

Comments
 (0)