0

I successful installed arduino, added me to uucp and lock and loaded cdc_acm module.

I use Arduino Uno R3, so I also installed arduino-avr-core.

I have Arduino on /dev/ttyUSB0.

I configured with:

stty -F /dev/ttyUSB0 cs8 9600 ignbrk -brkint -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts

I have this folder with these files: ~/Documents/Arduino

build.options.json
------------------------------------------------------------
{
 "fqbn": "archlinux-arduino:avr:uno",
 "hardwareFolders": "/usr/share/arduino/hardware",
 "toolsFolders": "/usr/bin"
}
sketch.ino
------------------------------------------------------------
void setup() {
 pinMode(13, OUTPUT);
}
void loop() {
 digitalWrite(13, HIGH);
 delay(1000);
 digitalWrite(13, LOW);
 delay(1000);
}

After this commands I got output:

arduino-builder -build-options-file build.options.json sketch.ino
Sketch uses 914 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

But nothing happened on my Arduino, what's my problem?

Thanks.

P.S. I don't have external LED, I try to use bultin LED.

asked Sep 15, 2018 at 19:14
3
  • did you try Arduino IDE? Commented Sep 15, 2018 at 19:45
  • I don't wanna use Arduino IDE. And when I tried it, I got error with avrdude. Commented Sep 15, 2018 at 19:47
  • there is no way around avrdude Commented Sep 15, 2018 at 19:52

1 Answer 1

2

You invoked the builder, but not an upload to the board. The builder created a hex file.You should use avrdude for upload.

Or use Arduino IDE which does it with a click on a button

answered Sep 15, 2018 at 19:49
2
  • I don't have hex file. I try to search, but I cannot find it. Commented Sep 15, 2018 at 20:14
  • turn on verbose output of the builder Commented Sep 16, 2018 at 5:07

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.