Marc Poulhiès
de42c4ec04
Add root dir to search path when importing from uninstalled sources
...
This allows the use of PyCortexMDebug without installing it.
2 years ago
Marc Poulhiès
8fcba4d138
Better error handling and handle more variant of SVD
...
Try to avoid silencing raised exception as sometime it masks real
errors.
Make the SVD parser to accept register without fields (and display the
full content of register)
2 years ago
Marc Poulhiès
46dc5449c4
WIP. Take backtrace code from 'gef'
...
https://github.com/hugsy/gef/blob/master/gef.py
2 years ago
Ben Nahill
77e9717a0e
Merge pull request #27 from looran/fix-clusters-no-dim
...
Fix handling non dimensioned clusters
2 years ago
Laurent Ghigonis
b713e9e946
Fix typo when handling clusters with no 'dim' field
...
Now ATSAMD21E18A.svd has a lot more peripherals supported
Also display exception if cluster parsing fails, instead of ignoring silently
2 years ago
Ben Nahill
6fc1e6b537
Merge pull request #23 from grevaillot/to_merge/cmsys_svd_file_loading
...
svd_gdb.py: allow to load svd based on vendor+model, using cmsis_svd resources if present.
3 years ago
Ben Nahill
cbbcb4f7a0
Merge pull request #26 from tannewt/dim_clusters
...
Support dimensioned clusters
3 years ago
Ben Nahill
4a6940775a
Changed default register display format to unsigned for #24
3 years ago
Scott Shawcroft
a6e09a4bed
Support dimensioned clusters
3 years ago
Ben Nahill
c31915ae34
Merge pull request #25 from Palmitoxico/python3-fix
...
Convert a map to a list [python3]
3 years ago
Augusto Fraga Giachero
56242e5edc
Convert a map to a list [python3]
...
In python3, map objects are iterators and can't be accessed as an
simple list. The list() function converts the iterator to a list and
keeps compatibility with python2.
3 years ago
Guillaume Revaillot
07004ba662
svd_gdb.py: allow to load svd based on vendor+model, using cmsys_svd resources if present.
...
cmsys_svd package aggregates svd descriptors: allow loading these if package is
installed, with autocomplete:
svd_load STMicro STM32F103xx.svd
svd_load fallbacks to svd file loading if only one argument is given or if cmsis_svd is not available.
This patch is based on on "svd-dump.py".
3 years ago
Ben Nahill
c914af85bb
Merge pull request #22 from tannewt/nrf
...
Fix load of nRF52840.svd
4 years ago
Scott Shawcroft
76fe009847
Fix load of nRF52840.svd
4 years ago
Ben Nahill
daa8e397ef
Fixed some things for more SVD files and Python 2/3 compat
4 years ago
Scott Shawcroft
03db68cc39
Support enums and default dimIndex
4 years ago
Scott Shawcroft
6c78fe3826
Don't print the cluster object repr.
4 years ago
Scott Shawcroft
d95d3d70ce
Support clusters (used in the Atmel SAMD21)
4 years ago
Ben Nahill
65e8b5028a
Merge pull request #17 from dkm/pr-lsb-msb
...
Support for the bitRangeLsbMsbStyle field description
4 years ago
Ben Nahill
f697e9957d
Merge pull request #18 from dkm/pr-fix-field
...
Skip PeripheralRegister creation only when there is no children
4 years ago
Ben Nahill
8387bfc73d
Merge pull request #19 from dkm/pr-expand-home
...
Pr expand home
4 years ago
Ben Nahill
05591e30b2
Merge pull request #16 from wose/master
...
Support non C/C++ inferiors
4 years ago
Marc
2c4bc0e5a6
Skip PeripheralRegister creation only when there is no children
...
Do not 'pass' all exception as it could mask some bugs (and in my
case, it did)
4 years ago
Marc
139545d336
fix indentation
...
All code uses tabs for indentation.
4 years ago
Marc
ebd75a904d
expand home dir in svd_load command
4 years ago
Marc
e94d2c16d3
Support for the bitRangeLsbMsbStyle field description
...
Support for lsb/msb field nodes to describe bit fields in register.
4 years ago
Sebastian Woetzel
8c48077af1
makes dwt module language agnostic
5 years ago
Sebastian Woetzel
3469537325
fixes docs
5 years ago
Sebastian Woetzel
9149bb17d3
makes memory read/write operations language agnostic
5 years ago
Ben Nahill
fde8d93777
Fixed some big issues from recent patches after testing
5 years ago
Ben Nahill
efeea2e18a
Added checking for access types in SVD files
...
GDB accesses should respect these access rules, but this is untested
This fixes #15
5 years ago
Ben Nahill
032db9aa3f
Fixed unused imports and some poor indentation
5 years ago
Ben Nahill
af90371306
Bug fixes!
...
Fixed a number of failures that come up with previously unntried SVD files
- Some from bit ranges being specified as a bitrange rather than
bitoffset and bitwidth
- Most fail due to comments embedded in the XML which obviously
shouldn't be parsed
5 years ago
Ben Nahill
d3a4a5459b
Merge pull request #13 from Palmitoxico/import-fix
...
Fixes the No module named 'svd' error
6 years ago
Augusto Fraga Giachero
eb6426c569
Fixes the No module named 'svd' error
...
Is necessary to use the library namespace when importing other modules of the same library.
6 years ago
Ben Nahill
5cc670e99b
Merge pull request #12 from schultetwin/svd_write_python_ints
...
[svd_write] Allow strings python can convert to int
6 years ago
Mark Schulte
35739e43dc
[svd_write] Fix order of operations issue
...
Need to negate the bits after the shift, not before, or everything
below the bit you want set will be cleared.
6 years ago
Mark Schulte
051ee9b207
[svd_write] Allow strings python can convert to int
...
Allow numbers such as 0xfea or 0b01 to be used to set values in SVD
registers.
6 years ago
Ben Nahill
12b40a18f1
Merge pull request #10 from schultetwin/python3_integration
...
[python3] Make files compatible with python3
6 years ago
Ben Nahill
f088ec1fac
Merge pull request #11 from schultetwin/svd_register_write
...
[svd_write] Add support to write to svd registers
6 years ago
Mark Schulte
023e181807
[svd_write] Add support to write to svd registers
...
Add functionality to allow writing bits to svd registers. This is
helpful if you want to update bits.
6 years ago
Mark Schulte
94f1e5e8a5
[python3] Make files compatible with python3
...
Many systems are now updating to python3. itervalues() and iterkeys()
are python2 constructs, that are not compatible with python3. This
commit allows us to use both python2 and python3.
6 years ago
Ben Nahill
fd8c7d85d4
Merge pull request #9 from tom-van/master
...
Implementation of dimElementGroup
7 years ago
Tomas Vanek
7ec63e9c05
Make description element optional.
...
It is not required by CMSIS-SVD_Schema_1_1.xsd
However it makes possible to easy filter out useless descriptions
like <description>no description available</description>
directly from original svd using grep -v
7 years ago
Tomas Vanek
25b88ec916
Implementation of dimElementGroup
7 years ago
Ben Nahill
2812b2866e
Merge pull request #8 from tom-van/master
...
Replace gdb.execute("print ..") by gdb.eval() in read method
7 years ago
Tomas Vanek
69849e6a6f
Replace gdb.execute("print ..") by gdb.eval() in read method
...
Parsing of print output did not work for byte sized registers.
gdb print shows character equivalent after numeric value for a byte variable.
7 years ago
bnahill
69b5e6bc01
Update README.md
...
Totally fudged the bucket on section ordering
8 years ago
bnahill
154263af34
Update README.md
...
DWT stuff
8 years ago
Ben Nahill
4fbae9e83f
Added completion for DWT
8 years ago