Skip to content

arduino-cli upload fail #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
usijeff opened this issue May 16, 2019 · 3 comments
Closed

arduino-cli upload fail #209

usijeff opened this issue May 16, 2019 · 3 comments
Labels
conclusion: invalid Issue/PR not valid

Comments

@usijeff
Copy link

usijeff commented May 16, 2019

Hi all,
after i use arduino-cli compile

[root@localhost Arduino]# arduino-cli compile --fqbn arduino:avr:uno /root/Arduino/LED_ON/
Alternatives for Wire.h: [[email protected]]
Alternatives for Wire.h: [[email protected]]
ResolveLibrary(Wire.h)
  -> candidates: [[email protected]]
Sketch uses 3766 bytes (11%) of program storage space. Maximum is 32256 bytes.
Global variables use 412 bytes (20%) of dynamic memory, leaving 1636 bytes for local variables. Maximum is 2048 bytes.

looks compile success, and upload

[root@localhost Arduino]# arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno root/Arduino/LED_ON
Compiled sketch not found: root/Arduino/LED_ON/LED_ON.arduino.avr.uno.hex. Please compile first.

it say no .hex, but .hex is exist

[root@localhost LED_ON]# ls
LED_ON.arduino.avr.uno.elf  LED_ON.arduino.avr.uno.hex  LED_ON.ino

where is the problem?
Thanks all!

@NormanDunbar
Copy link

Looks like you compiled in /root/... but tried to upload in just root/... with no leading '/'.

arduino-cli compile --fqbn arduino:avr:uno /root/Arduino/LED_ON/

and

arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno root/Arduino/LED_ON

However, what are you doing running as root? That's really a bad idea!

HTH

Cheers,
Norm.

@usijeff
Copy link
Author

usijeff commented May 17, 2019

Yes, you are right, solve.
thanks!
and i will running not as root.

@per1234 per1234 added the conclusion: invalid Issue/PR not valid label May 17, 2019
@per1234 per1234 closed this as completed May 17, 2019
@NormanDunbar
Copy link

@usijeff You are welcome.

per1234 added a commit that referenced this issue Aug 9, 2021
Format output text for rule results to improve readability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid
Projects
None yet
Development

No branches or pull requests

3 participants