[mbedmicro/pyOCD] Integrate SVD support (#618)

44 views
Skip to first unread message

Chris Reed

unread,
Apr 15, 2019, 7:18:19 PM4/15/19
to mbedmicro/pyOCD, Subscribed

For quite a while, pyOCD has supported SVD files, if the cmsis-svd package was installed. The main feature this enables is the ability to read and write peripheral registers by name in pyocd commander. However, because cmsis-svd includes 823 MB of SVD data that most users wouldn't make use of, it was never made a standard requirement.

This PR brings the SVD parser and model classes from cmsis-svd directly into pyOCD so they are always available. It also includes the SVD data for most builtin targets as a single pyocd/debug/svd/svd_data.zip file. Thankfully, XML compresses so well that 136 MB of SVD files compresses at 95.9% to 5.6 MB. Of course, SVD is also supported for CMSIS-Pack targets.


You can view, comment on, or merge this pull request online at:

  https://github.com/mbedmicro/pyOCD/pull/618

Commit Summary

  • Add svd classes from the cmsis_svd package.
  • SVD files for builtin targets.
  • Added from_builtin() to SVDFile.
  • Updated builtin targets to use builtin SVD files.

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Chris Reed

unread,
Apr 15, 2019, 7:18:23 PM4/15/19
to mbedmicro/pyOCD, Subscribed

/morph test

Chris Reed

unread,
Apr 15, 2019, 7:57:01 PM4/15/19
to mbedmicro/pyOCD, Subscribed

Merged #618 into master.

Reply all
Reply to author
Forward
0 new messages