radare2 plugin for UF2 file format
aviciano / uf2-plugin Goto Github PK
View Code? Open in Web Editor NEWradare2 plugin for UF2 file format
radare2 plugin for UF2 file format
Set asm.arch
, asm.bits
, asm.cpu
based on the board family ID. See uf2families file
Main function analysis produces different results for flash_xip_stream.elf
and flash_xip_stream.uf2
files (examples from pico-examples)
$ r2 -N -q -c 's main; s' flash_xip_stream.elf
0x1000035c
$ r2 -N -q -c "s 0x1000035c; af; p8f" flash_xip_stream.elf
f8b5ce46474680b503f004fe314f00213800314a03f0e2fb8023304e9b059e4250d231002e4803f0e9fda0235b059a68920704d40221da699a681142fbd0a023d8245b05ff345e6126489c6103f034fda0218022244bc9050b60244b4f6052048c60cb600b691c0014401342fad1204803f022fd072398461e4b0025994609e02022484603f0bafdd8230135ff3304349d4213d031593b59994205d143462b40072bedd10a22ece70a001348190003f0a5fd0020c0bcb946b046f8bd0f4803f0fbfcf6e70e4803f0f7fc0120404200f0d3ff
$ r2 -N -q -c "s 0x1000035c; af; p8f" -l uf2_plugin.so uf2://flash_xip_stream.uf2
f8b5ce46474680b503f004fe314f00213800314a03f0e2fb8023304e9b059e4250d231002e4803f0e9fda0235b059a68920704d40221da699a681142fbd0a023d8245b05ff345e6126489c6103f034fda0218022244bc9050b60244b4f6052048c60cb600b691c0014401342fad1204803f022fd072398461e4b0025994609e02022484603f0bafdd8230135ff3304349d4213d031593b59994205d143462b40072bedd10a22ece70a001348190003f0a5fd0020c0bcb946b046f8bd0f4803f0fbfcf6e70e4803f0f7fc0120404200f0d3ffc0466c0500205c070000ac410010244100104041001000004050298012005041001094410010604100109c410010f8400010094a830094464022634410b51c68c0006240c02414408022520113431c60034b9c466044416010bd
1c1
< f8b5ce46474680b503f004fe314f00213800314a03f0e2fb8023304e9b059e4250d231002e4803f0e9fda0235b059a68920704d40221da699a681142fbd0a023d8245b05ff345e6126489c6103f034fda0218022244bc9050b60244b4f6052048c60cb600b691c0014401342fad1204803f022fd072398461e4b0025994609e02022484603f0bafdd8230135ff3304349d4213d031593b59994205d143462b40072bedd10a22ece70a001348190003f0a5fd0020c0bcb946b046f8bd0f4803f0fbfcf6e70e4803f0f7fc0120404200f0d3ff
---
> f8b5ce46474680b503f004fe314f00213800314a03f0e2fb8023304e9b059e4250d231002e4803f0e9fda0235b059a68920704d40221da699a681142fbd0a023d8245b05ff345e6126489c6103f034fda0218022244bc9050b60244b4f6052048c60cb600b691c0014401342fad1204803f022fd072398461e4b0025994609e02022484603f0bafdd8230135ff3304349d4213d031593b59994205d143462b40072bedd10a22ece70a001348190003f0a5fd0020c0bcb946b046f8bd0f4803f0fbfcf6e70e4803f0f7fc0120404200f0d3ffc0466c0500205c070000ac410010244100104041001000004050298012005041001094410010604100109c410010f8400010094a830094464022634410b51c68c0006240c02414408022520113431c60034b9c466044416010bd
See libr/io/p/io_ihex.c & uf2conv.c
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.