-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Format code - Add settings to control comments and bitfield structuring
- Loading branch information
Showing
6 changed files
with
139 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SVD Mapper (svdmap) | ||
|
||
Support loading SVD files into Binary Ninja. | ||
|
||
## Usage | ||
|
||
1. Open binary in Binary Ninja | ||
2. Run `Import SVD info` command. | ||
3. Select SVD file (i.e. `TC37XPD.svd`). | ||
4. New segments should now be automatically created for each peripheral along with the structure. | ||
|
||
## Configuration | ||
|
||
### Enable Bitfield Structuring | ||
As Binary Ninja does not support bitfields, all bitfields will become unions, most will find this undesired so by default | ||
this will be disabled. | ||
|
||
To _enable_ bitfield structuring set `SVDMapper.enableBitfieldStructuring` to **true**. | ||
|
||
### Disable Comments | ||
|
||
Comments can be displayed poorly in some instances so if that is the case you can turn comments off. | ||
|
||
To _disable_ comments set `SVDMapper.enableComments` to **false**. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"pluginmetadataversion": 3, | ||
"name": "SVD Mapper", | ||
"type": [ | ||
"helper" | ||
], | ||
"api": [ | ||
"python3" | ||
], | ||
"description": "SVD Mapper is a plugin for Binary Ninja that helps automate the process of mapping in SVD peripherals", | ||
"license": { | ||
"name": "Apache-2.0", | ||
"text": "Copyright 2020-2024 Vector 35 Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License." | ||
}, | ||
"platforms": [ | ||
"Darwin", | ||
"Linux", | ||
"Windows" | ||
], | ||
"version": "0.1.1", | ||
"author": "Vector 35 Inc", | ||
"minimumbinaryninjaversion": 4860 | ||
} |
Oops, something went wrong.