Skip to content

Beta 4.4: No such file or directory avrdude error on Ubuntu 20.04 #1301

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
robamu opened this issue Feb 15, 2021 · 7 comments · Fixed by #1302
Closed

Beta 4.4: No such file or directory avrdude error on Ubuntu 20.04 #1301

robamu opened this issue Feb 15, 2021 · 7 comments · Fixed by #1302
Labels
beta 4.4 beta 4.4 release testing

Comments

@robamu
Copy link
Contributor

robamu commented Feb 15, 2021

This problem occurs when I tested the new beta release of Ubuntu 20.04.
I was able to build an application in Sloeber, but I am not able to flash the board on Ubuntu because there is a "No such file or directory error" when launching avrdude. This was not an issue on Windows 10.

Here is a screenshot:
ubuntu_screenshot

I ran the command displayed in the Sloeber console in the command line and that worked without issues..

@robamu robamu changed the title Beta 4.4: No such file or directory error ob Ubuntu 20.04 Beta 4.4: No such file or directory avrdude error on Ubuntu 20.04 Feb 15, 2021
@jantje
Copy link
Member

jantje commented Feb 15, 2021

I see 2 possible reasons:

  1. The installation of the avr platform failed to install avrdude
  2. Sloeber point to a bad location

Is the path (with the .../Sloeber/Sloeber/... ) correct?
Can you dump the path of the installed avrdude?

@jantje jantje added the beta 4.4 beta 4.4 release testing label Feb 15, 2021
@jantje
Copy link
Member

jantje commented Feb 15, 2021

And thanks for testing :-)

@robamu
Copy link
Contributor Author

robamu commented Feb 15, 2021

The avrdude binary is located here

/home/rmueller/Sloeber/Sloeber/arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino17/bin

The following command

"/home/rmueller/Sloeber/Sloeber/arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" 
"-C/home/rmueller/Sloeber/Sloeber/arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" 
-patmega4809 -cjtag2updi -P/dev/ttyACM0 -b115200 -e 
-D "-Uflash:w:/home/rmueller/Sloeber/sloeber-repository/NanoEveryTest/Release/NanoEveryTest.hex:i" 
"-Ufuse2:w:0x01:m" "-Ufuse5:w:0xC9:m" "-Ufuse8:w:0x00:m"

works in the command line and I also checked the folder manually, avrdude is installed. If I do it in command line, I still have to run the Sloeber upload before each upload because Sloeber it is also forcing some required reset (see console output in the screenshot above). This is really odd, the command does not seem to depend on paths being set or using relativ paths, so if it works in the command line, it should also work in the IDE..

Here is also the command line error:

error

Possible related to these? #884 #772

@jantje
Copy link
Member

jantje commented Feb 15, 2021

After some thinking I assume this change causes the problem
d1edd47#diff-8f40796928c32b6418568f97c8547fdc5c080c49410de1cd8297daf3d3ab29ad
Later on (after testing on windows) I deleted the whole lot. But maybe this is needed for Linux.
Note that this code is not used for the build but only for uploads. As you upload command contains quite a bit of quotes this may be the root cause.
Can you test this on your own?

@jantje
Copy link
Member

jantje commented Feb 15, 2021

You can even see the double quotes in you last error.
So it must be that.
afbeelding

@robamu
Copy link
Contributor Author

robamu commented Feb 15, 2021

I can confirm adding back those lines solved the issue for me.

@jantje
Copy link
Member

jantje commented Feb 15, 2021

great :-)

jantje pushed a commit that referenced this issue Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta 4.4 beta 4.4 release testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants