Go Down

Topic: Problem Uploading (Read 1 time) previous topic - next topic

anhellon

Hello,

I am trying to upload a file to my arduino uno but this problem happens:

arduino-cli upload -b arduino:avr:uno -p /dev/ttyACM0 l5.ino
avrdude: can't open input file build/arduino.avr.uno/..ino.hex: No such file or directory
avrdude: read from file 'build/arduino.avr.uno/..ino.hex' failed
Error during Upload: uploading error: uploading error: exit status 1

I am using Linux Ubuntu and i've installed arduino-cli by using brew.In addition ,the hex file exists.

anhellon

I've already solved this problem.
Code: [Select]

arduino-cli upload -b arduino:avr:uno -p /dev/ttyACM0 l5.ino

  • I must write only the name of the project folder where the .ino file is in.
  • Moreover,i mustn´t execute the comand not inside the project folder.I have to make my current working directory up a level



anhellon

  • Moreover,i mustn´t execute the comand not inside the project folder.I have to make my current working directory up a level


It is possible to upload if your current working directory is the project folder,all you have to do is leave out the name of the .ino file. For example :

Code: [Select]
arduino-cli upload -b arduino:avr:uno -p /dev/ttyACM0

Go Up