PyCortexMDebug
PyCortexMDebug copied to clipboard
SVDRegisterCluster instance has no attribute 'parent'
https://github.com/bnahill/PyCortexMDebug/blob/f5465960711b88b712e85ee14f9f24ca7f76f6e0/cmdebug/svd_gdb.py#L273
In the above line there is an error causing gdb to print this error:
Python Exception <type 'exceptions.AttributeError'> SVDRegisterCluster instance has no attribute 'parent':
Error occurred in Python: SVDRegisterCluster instance has no attribute 'parent'
when accessing register cluster.
Tested on nrf52840 chip + black magic probe. With command:
svd POWER RAM[0]
changing line 273 to:
container = peripheral.name + ' > ' + cluster.name
solves the issue
Good catch. The fix should work as far as I can tell.