leveldown-security / SVD-Loader-Ghidra

GNU General Public License v3.0
468 stars 95 forks source link

Failed to load SVD file GD32F30X_HD.svd #13

Open gabrielrozn opened 2 years ago

gabrielrozn commented 2 years ago

The script failed to load the file GD32F30X_HD.svd downloaded from: (http://gd32mcu.com/data/documents/pack/GigaDevice.GD32F30x_DFP.2.0.0.pack)

The output is:

Traceback (most recent call last): File "C:\Ghidra\SVD-Loader-Ghidra-master\SVD-Loader.py", line 101, in length = peripheral.address_block.offset + peripheral.address_block.size AttributeError: 'NoneType' object has no attribute 'offset'

I looked at the svd file, initially it had blank spaces in the beginning of the file, after removing the white spaces I got the error above. I cannot see any obvious problems apart from the NVIC peripheral which has two \<addressBlock> tags. Commenting the second one did not solve the issue.

wxz222123 commented 8 months ago

How is this problem solved