PyCortexMDebug icon indicating copy to clipboard operation
PyCortexMDebug copied to clipboard

SVDRegisterCluster instance has no attribute 'parent'

Open mczerski opened this issue 4 years ago • 1 comments

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

mczerski avatar Feb 09 '21 08:02 mczerski

Good catch. The fix should work as far as I can tell.

bnahill avatar Feb 10 '21 01:02 bnahill