I am attempting to upload a script onto my Digispark ATTINY85. I have installed all the correct packages on Arduino IDE. However when I try upload the script, I get this error:
Compilation error: fork/exec /Users/me/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++: bad CPU type in executable
I am running on macOS Monterey 12.2.1 with Apple M1.
I have tried following this stack question, however then I am left with the following error:
bin/avr-g++: No such file or directory
I encountered the same problem and was able to fix it like this:
Delete / uninstall all previous Digispark boards
In the Arduino IDE under Preferences > Additional boards manager URLs replace the original digistump URL with https://raw.githubusercontent.com/ArminJo/DigistumpArduino/master/package_digistump_index.json
Reinstall the Digistump AVR Boards via Tools > Boards Manager. At this point I was able to compile the sketch, but not to upload it.
I had to downgrade to 1.7.2. Download the files from here.
Open ~/Library/Arduino15/packages/digistump/hardware/avr delete the content and insert the unpacked files from digistump-avr-1.7.1.zip
Go to ~/Library/Arduino15/packages/digistump/tools/micronucleus and create a folder with the name 2.5 if it does not exist yet. Delete everything else.
Go to the files that you downloaded and unpack /tools/micronucleus-cli-2.5-x86_64-apple-darwin.tar.gz it should create a new folder micronucleus
Related
First of all, I have trouble installing avrdude via Homebrew because of some network problems. So I download it manually from its website.
However, after I unarchive the avrdude-7.0.tar.gz file I just downloaded, I can find no bin directory there. It's unusual.
Then, I added its directory to my system PATH by export PATH=$PATH:/Users/myUserName/Developer/bin/avrdude-7.0/bin/. But when I tried to use avrdude in Terminal after I restarted my computer, It says zsh: command not found: avrdude.
How can I make it works?
screenshot of avrdude-7.0 directory downloaded
Apparently you downloaded the source archive of the tool, not the executable software.
Now you have two options:
Download the binary executable.
Compile the tool yourself. Make sure you understand how to do this.
I need my application to run from a USB stick and perform the installation from there.
The application is eventually installed on a Linux/Debian.
For the application installation I need a DB to be installed on that USB. I also need the DB data (tables, etc.) to be kept on that USB stick.
I read that SQLite is a good candidate to be used for such a purpose. However, I could no find the steps needed for installing it on the USB stick.
I did download the sqlite-snapshot-202002271621.tar.gz from the sqlite.org site, placed it in one of my Debian directories and used the 3 commands to install it (./configure,make,make install).
That installed SQLite on my hard disk.
What should I do in order to achieve the same on the USB stick?
Mount the USB to the Debian box, place the tar.gz file there, and run the commands from there?
Will that install SQLite on the USB?
Thanks
So the answer is indeed:
Mount the USB to the Debian box
Place the sqlite-snapshot-202002271621.tar.gz file there
Run the commands from there
./configure
make
make install
Notice just that I had to tar the sqlite-snapshot-202002271621.tar.gz file using:
tar -zvxf sqlite-snapshot-202002271621.tar.gz -C /media/usbstick/ --no-same-owner
In order to avoid the error:
"Cannot change ownership to uid 1000, gid 1000: Operation not permitted"
So i was trying to install the XP Pen Driver for my Deco 01 v2 graphics tablet on my Linux Mint 19.2 Tina when i came to encounter the following error:
./Pentablet_Driver: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by ./Pentablet_Driver)
I went on to install qt 5.10, still the same error. Others suggested to just change the path wth sudo gedit /etc/ld.so.conf.d/randomLibs.conf which didn't change a thing.
Link to drivers:
https://www.xp-pen.com/download-440.html
The manufacturer has a page describing how to set up their software on Linux with pictures. However, when following them, you end up with a folder name somewhere along the line that has spaces in it, which causes issues.
So a modified set of instructions might look like this:
Connect your XP-Pen product to the computer.
Download the Linux Beta driver from XP-Pen official website.
When the download is complete, extract the compressed folder.
Rename the extracted folder to something without spaces.
Inside the renamed folder is another compressed folder which should be extracted.
Inside the final extracted folder, ensure "Pentablet_Driver.sh" has execution permissions by right clicking on it and going to "Properties->Permissions" and verifying that "Allow executing file as program" is checked.
Open the terminal. (CTRL+ALT+T)
Type "sudo ", then drag Pentablet_Driver.sh from the file browser onto the terminal.
Type the password to complete.
Make sure that you write exactly
sudo ./Pentablet_Driver.sh
instead
sudo ./Pentablet_Driver
I had the same error until I noticed that I forgot to add .sh at the end.
I compile a sketch in Arduino IDE, the code includes sha256.h library:
...
#include "sha256.h"
...
When the codes are compiled, the error says:
fatal error: sha256.h: No such file or directory
I try to install sha256 library from Sketch > Include Library > Manage Libraries, but there are no such library listed.
Where can I get the included library?
Without having more information like the names of some of the functions being called that need this header file it's hard to pin it down. There are several Arduino libraries out there that have a sha256.h header file.
You might try:
ESP8266-Arduino-cryptolibs - not available through the library manager, so you'd copy this manually into the Arduino libraries folder
"AWS-SDK-ESP8266" - available through the library manager
There are others that aren't ESP8266-specific; a simple Google search for 'sha256.h esp8266' or 'sha256.h arduino' will find them.
I'm using Qtcreator to make GUI.
Ideally, I build the project in my local pc (CentOS virtual terminal),
and move it to remort server(CentOS).
Finally, I want to run it in windows system via X server(VcXsrv i use).
As operation verification, I create a new file and build as it is.
At first, it generates many errors in remort server, such as "./test: /lib64/libc.so.6: version GLIBC_2.14 not found (required by /users/my/Qt/5.9.1/gcc_64/lib/libQt5Gui.so.5)".
I don't have root permission and can't update /lib64/, so download latest lib64 to my directory, and add to LD_LIBRARY_PATH.
Previous error is solved but the error message "segmentation fault (core dumped)" comes to appear.
Why this problem occur even though it is a raw project?
Can anyone help me to solve the problem?
so download latest lib64 to my directory, and add to LD_LIBRARY_PATH. Previous error is solved but the error message "segmentation fault (core dumped)" comes to appear.
That will never work. This answer explains what you should do instead.