Giter Club home page Giter Club logo

insidearduinohex's Introduction

Inside Arduino Hex file

Instalamos la herramientas de avr

sudo apt

Problema: error accediendo a datos en PROGMEM

const PROGMEM byte a[]={1,2,3};
void setup(){
  Serial.begin(9600);
  for (int j=0;j<sizeof(a);j++)
     Serial.println(a[j]);
}
void loop(){}

El código correcto sería:

const PROGMEM byte a[]={1,2,3};
void setup(){
  Serial.begin(9600);
  for (int j=0;j<sizeof(a);j++)
     Serial.println(pgm_read_byte_near(a + j));
}
void loop(){}

Ver el contenido de un fichero

Como mucho veremos el ensamblador....

Vemos el volcado de memoria

avr-objdump -m avr -D file.hex

Vemos el ensamblador

avr-objdump --no-show-raw-insn -m avr -D file.hex

Desemsamblador

ReAVR https://community.atmel.com/projects/reavr http://www.jassenbaum.de/ja-tools/reavr.html DisAVR https://www.avrfreaks.net/forum/disavr-win32-101-beta-released

Clonar programa en arduino

¿Cómo extraer el contenido de un Arduino?

Instalamos las herramientas de avr (las instalamos aunque ya están en la carpeta Arduino ~/arduino-1.8.4/hardware/tools/avr/bin/ )

sudo apt install binutils-avr

https://reverseengineering.stackexchange.com/questions/125/how-do-i-figure-out-what-is-burned-on-an-arduino-rom

insidearduinohex's People

Contributors

javacasm avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.