Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicting data exists at address 40000000 to 400005b7 #11

Open
ifohancroft opened this issue May 10, 2021 · 3 comments
Open

Conflicting data exists at address 40000000 to 400005b7 #11

ifohancroft opened this issue May 10, 2021 · 3 comments

Comments

@ifohancroft
Copy link

ifohancroft commented May 10, 2021

It may be my binary, but I thought it's worth reporting just in case.

Here is the output I get when generating for nRF52840:

Loading SVD file...
	Done!
Generating memory regions...
	Done!
Generating peripherals...
	FICR
	UICR
	CLOCK
	POWER
Traceback (most recent call last):
  File "/home/ifohancroft/Downloads/SVD-Loader-Ghidra/SVD-Loader.py", line 165, in <module>
    listing.createData(addr, peripheral_struct, False)
	at ghidra.program.database.code.CodeManager.checkValidAddressRange(CodeManager.java:1945)
	at ghidra.program.database.code.CodeManager.createCodeUnit(CodeManager.java:2030)
	at ghidra.program.database.ListingDB.createData(ListingDB.java:431)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
ghidra.program.model.util.CodeUnitInsertionException: ghidra.program.model.util.CodeUnitInsertionException: Conflicting data exists at address 40000000 to 400005b7
SVD-Loader.py> Finished!```
@abhigkar
Copy link

abhigkar commented May 22, 2021

I also getting the same error for nrf52832

SVD-Loader.py> Running...
Loading SVD file...
	Done!
Generating memory regions...
	Done!
Generating peripherals...
	FICR
	UICR
	BPROT
	POWER
Traceback (most recent call last):
  File "E:\nRF5_projects\tools\ghidra_9.1.1_PUBLIC_20191218\SVD-Loader-Ghidra\SVD-Loader.py", line 165, in <module>
    listing.createData(addr, peripheral_struct, False)
	at ghidra.program.database.code.CodeManager.checkValidAddressRange(CodeManager.java:1947)
	at ghidra.program.database.code.CodeManager.createCodeUnit(CodeManager.java:2032)
	at ghidra.program.database.ListingDB.createData(ListingDB.java:431)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
ghidra.program.model.util.CodeUnitInsertionException: ghidra.program.model.util.CodeUnitInsertionException: Conflicting data exists at address 40000000 to 40000617
SVD-Loader.py> Finished!

@marsfan
Copy link

marsfan commented Jun 9, 2021

I have the same issue. Looking at the SVD file and the documentation that Nordic Provides, it seems that they have overlapping peripheral registers somehow. See Chapter 10 of https://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.pdf

@marsfan
Copy link

marsfan commented Jun 9, 2021

Yup. Seems that they have different peripherals that have interwoven registers, thus they have the same base address, which is screwing up the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants