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

Atmel SVD files not working. #208

Closed
martin31821 opened this issue Sep 24, 2019 · 6 comments
Closed

Atmel SVD files not working. #208

martin31821 opened this issue Sep 24, 2019 · 6 comments

Comments

@martin31821
Copy link

I tried to load the newest SVD file for the ATSAM C21 and I'm seeing the following error message:

mainThreadExtensionService.ts:65 TypeError: Cannot read property '0' of undefined
	at Function.parsePeripheral (/home/martin/.vscode…tension.bundle.js:1)
	at module.exports.parseSVD.u.readFile.c.parseString (/home/martin/.vscode…tension.bundle.js:1)
	at h.<anonymous> (/home/martin/.vscode…nsion.bundle.js:211)
	at h.emit (events.js:182)
	at r.onclosetag (/home/martin/.vscode…nsion.bundle.js:211)
	at _ (/home/martin/.vscode…nsion.bundle.js:212)
	at F (/home/martin/.vscode…nsion.bundle.js:212)
	at B (/home/martin/.vscode…nsion.bundle.js:212)
	at r.write (/home/martin/.vscode…nsion.bundle.js:211)
	at h.module.exports.t.Parser.h.parseString (/home/martin/.vscode…nsion.bundle.js:211)
	at h.module.exports.p [as parseString] (/home/martin/.vscode…nsion.bundle.js:211)
	at Object.module.exports.t.parseString (/home/martin/.vscode…nsion.bundle.js:211)
	at module.exports.parseSVD.u.readFile (/home/martin/.vscode…tension.bundle.js:1)
	at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53)
@haneefdm
Copy link
Collaborator

Could you attach a link to the svd file?

@martin31821
Copy link
Author

http://packs.download.atmel.com/Atmel.SAMC21_DFP.1.2.176.atpack
(ATPack is a tar or zip, I could just extract it)

@haneefdm
Copy link
Collaborator

It is a zip file with a whole bunch of SVD files. Which particular one were you using? The problem probably exists with most/all of them, but it would make it faster for me to know.

@martin31821
Copy link
Author

yeah, sorry. I'm using ATSAMC21E18A.svd

@haneefdm
Copy link
Collaborator

It is a problem with a peripheral "PTC" with no registers at all. I fixed the problem and hopefully will be available in the next release of Cortex-Debug.

A workaround is to delete the peripheral "PTC" or add an empty registers block. "PTC" has nothing else interesting for this extension.

@martin31821
Copy link
Author

Thanks for the quick fix, I just tried the branch and it works fine!

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

2 participants