Open enzheng128 opened 1 year ago
Try editing this file:
C:\Users\zhengen\AppData\Local\Programs\Python\Python310\lib\site-packages\pyocd\target\pack\pack_target.py
At line 511, change this:
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.
Try editing this file:
C:\Users\zhengen\AppData\Local\Programs\Python\Python310\lib\site-packages\pyocd\target\pack\pack_target.py
At line 511, change this:
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.
I'm using version 0.34.3, it's working partially. Give a try.
Error Log
Steps to Reproduce
Environment
Any help would be appreciated. Thank you!