0

Hello I have been using Arduino's for a really long time and I have made a mini computer that uses an Atmega328p and a nokia 5110 screen. I wrote a load of Arduino code to make a basic operating system. I'm 99.9% sure that when you compile and send the code to the Arduino it is converted to binary, stored as binary and run as binary. I was wondering if it's possible to skip the 'write code in Arduino process' and just write a ton of binary and send that to the chip. I'm sure that is difficult and hard but I jut want to know if it is possible. Please let me know if it is possible to send binary directly to the Atmega328p.

jack kennedy
  • 17
  • 1
  • 9

1 Answers1

1

Yes, the Arduino IDE compiles your Arduino code into a binary (or hex) file that it uses to program the chip. You can find the hex file that the Arduino IDE created like this.

If you already have a hex file, you can program your Arduino directly without the IDE using a tool such as AVRdude.

While it's technically possible to write Arduino firmware in binary, this would be extraordinarily tedious. If you want to write your code in something lower level than the Arduino language, you could use C/C++ or assembly. Some discussion on the Arduino forums.

Community
  • 1
  • 1
lhagan
  • 49
  • 3