You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue while using pyOCD with a Cortex-M33 microcontroller. The error occurs during the session initialization and seems to be related to the AP (Access Port) address.
#1637
Open
enzheng128 opened this issue
Oct 16, 2023
· 3 comments
def _pack_target_add_core(_self, core: CoreTarget) -> None:
"""@brief Override to set node name of added core to its pname."""
pname = _self._pack_device.processors_ap_map[cast(CortexM, core).ap.address].name
core.node_name = pname
CoreSightTarget.add_core(_self, core)
to this:
def _pack_target_add_core(_self, core: CoreTarget) -> None:
"""@brief Override to set node name of added core to its pname."""
if( cast(CortexM, core).ap.address in _self._pack_device.processors_ap_map ):
pname = _self._pack_device.processors_ap_map[cast(CortexM, core).ap.address].name
core.node_name = pname
CoreSightTarget.add_core(_self, core)
I'm investigating a similar problem (#1642) with my EFR32BG24.
def _pack_target_add_core(_self, core: CoreTarget) -> None:
"""@brief Override to set node name of added core to its pname."""
pname = _self._pack_device.processors_ap_map[cast(CortexM, core).ap.address].name
core.node_name = pname
CoreSightTarget.add_core(_self, core)
to this:
def _pack_target_add_core(_self, core: CoreTarget) -> None:
"""@brief Override to set node name of added core to its pname."""
if( cast(CortexM, core).ap.address in _self._pack_device.processors_ap_map ):
pname = _self._pack_device.processors_ap_map[cast(CortexM, core).ap.address].name
core.node_name = pname
CoreSightTarget.add_core(_self, core)
I'm investigating a similar problem (#1642) with my EFR32BG24.
I'm still having issues. I suspect it's a problem with the EFR32 pack.
Error Log
Steps to Reproduce
Environment
Any help would be appreciated. Thank you!
The text was updated successfully, but these errors were encountered: