radareorg / radare2

UNIX-like reverse engineering framework and command-line toolset
https://www.radare.org/
GNU Lesser General Public License v3.0
20.61k stars 3k forks source link

SVD file parser-mapper into r2 - Memory layout/map configuration database #15484

Closed radare closed 4 years ago

radare commented 4 years ago

This issue is a sub-task of #8467

like this: but shipped with r2 to make it easy to use https://github.com/haystack-ia/radare-funhouse/blob/master/STM32F103XX.r2 https://blogs.coreboot.org/blog/2019/08/22/gsoc-ghidra-firmware-utilities-wrap-up/ https://awesomeopensource.com/project/al3xtjames/ghidra-firmware-utils https://github.com/posborne/cmsis-svd https://github.com/posborne/cmsis-svd/pull/86/files

brainstorm commented 4 years ago

https://github.com/leveldown-security/SVD-Loader-Ghidra

XVilka commented 4 years ago

Related to https://github.com/radareorg/radare2/issues/8467

Maijin commented 4 years ago

Yes this is #8467 so closing here and moving the URL there.

Maijin commented 4 years ago

Duplicate of #8467

radare commented 4 years ago

that's not a duplicate and i was actually not finding this issue because it was closed :<<<<<<<<<

radare commented 4 years ago

here's an svd parser in Rust, maybe we can use it in r2-extras to parse the svd files and map the devies in r2 from here https://github.com/rust-embedded/svd

radare commented 4 years ago

maybe this should be moved to r2-extras

XVilka commented 4 years ago

Not really, it's a core feature for the embedded.

On Fri, Jan 24, 2020, 04:48 radare notifications@github.com wrote:

maybe this should be moved to r2-extras

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/radareorg/radare2/issues/15484?email_source=notifications&email_token=AABRT7MZYPYKQYHUFAIKAKTQ7H7DTA5CNFSM4JPEIYIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJYZRTA#issuecomment-577870028, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABRT7OYQ7RLSQOKSE3EPHDQ7H7DTANCNFSM4JPEIYIA .

radare commented 4 years ago

Then we need a parser in c. Any link to chk those svd files handy?

On 23 Jan 2020, at 21:57, Anton Kochkov notifications@github.com wrote:

Not really, it's a core feature for the embedded.

On Fri, Jan 24, 2020, 04:48 radare notifications@github.com wrote:

maybe this should be moved to r2-extras

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/radareorg/radare2/issues/15484?email_source=notifications&email_token=AABRT7MZYPYKQYHUFAIKAKTQ7H7DTA5CNFSM4JPEIYIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJYZRTA#issuecomment-577870028, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABRT7OYQ7RLSQOKSE3EPHDQ7H7DTANCNFSM4JPEIYIA .

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or unsubscribe.

Maijin commented 4 years ago

Ok I've added references on both. Now this one is a "sub-task" of the old one - problem solved.

radare commented 4 years ago

done in https://github.com/radareorg/radare2-extras/tree/master/r2svd