Difference between revisions of "Arduino"

From Steak Wiki
Jump to navigationJump to search
Line 10: Line 10:
 
window)
 
window)
  
<code>avr-objdump -S code.ino.elf > output</code>
+
<code>avr-objdump -S code.ino.elf > output.asm </code>
  
 
See gas sensor, or ph sensor in 2019 projects for more details
 
See gas sensor, or ph sensor in 2019 projects for more details
  
 
Ref: https://forum.arduino.cc/index.php?topic=50169.0
 
Ref: https://forum.arduino.cc/index.php?topic=50169.0
 +
 +
While you are at it also do,
 +
<pre> readelf -a code.ino.elf > output.elf
 +
 +
</pre>

Revision as of 02:51, 25 August 2020

Arduino is a software library for AVR microcontrollers (and others). It is aimed at fast prototyping, sometimes at the cost of performance. It has extensive libraries and software for many popular ICs. Elitists will hate on Arduino, but that's mostly because they don't want you to be successful.


Arduino Nano as flammable gas sensor.

Convert Uno code to ASM

apt-get install binutils-avr

compile program in IDE. find .elf file (was in deb 9 /tmp/arduino-build.#####/) (can look at verbose arduino compile window)

avr-objdump -S code.ino.elf > output.asm

See gas sensor, or ph sensor in 2019 projects for more details

Ref: https://forum.arduino.cc/index.php?topic=50169.0

While you are at it also do,

 readelf -a code.ino.elf > output.elf