Arduino WiFi shield - Updating firmware - arduino

I am new in arduino and I am trying to update the firmware in my Arduino WiFi shield but I am facing some problems. I did exactly what the instructions said about the update(MacPorts, dfu-programmer, jumper) but when I am trying to run the installation there were some problems that I cannot find out. I haven't change anything in the script, and I really don't know what is going on.
Any help it will be great!!! That's exactly what I get. The problem is in lines 55, 56, 57.
Arduino WiFi Shield upgrade
Disclaimer: to access to the USB devices correctly, the dfu-programmer needs to be used as root. Run this script as root.
ArduinoWifiShield_upgrade_mac.sh: line 55: cd: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/firmwares/wifishield/scripts/hardware/tools/avr/bin: No such file or directory
ArduinoWifiShield_upgrade_mac.sh: line 56: ./avr-objcopy: No such file or directory
ArduinoWifiShield_upgrade_mac.sh: line 57: ./avr-objcopy: No such file or directory
****Upgrade WiFi Shield firmware****
Error opening the file.
Something went wrong with creating the memory image.
Done. Remove the J3 jumper and press the RESET button on the shield.
Thank you!
Thank you very much in advance.

Related

VSCode: Arduino Board Configuration offers no boards to select

After I used VSCode (current version 1.61.0) and the Arduino IDE (1.8.13 / 1.8.16 - WIndows installer version) for about a year on two Windows 10 devices both devices stopped showing available Arduino / ESP8266 board types yesterday.
The Arduino board configuration only shows one item "Selected Board:" with an empty drop down.
The Arduino IDE on both devices still works (Tools - Boards show the familiar collection of boards)
My settings (searched for Arduino) are
{
"arduino.path": "C:\\Program Files (x86)\\Arduino"
}
on both devices - I have not changed this since the setup about a year ago and the Arduino IDE is still there und my c-drive.
What else can I check or what settings might lead to an empty board selector?
Its a bug in v0.4.6 of vscode arduino extention. Roll back to v0.4.5 and before, Works fine.
Same problem here. I think its a bug in the vscode extension. My workaround is to manually set the Bord type in the .vscode/arduino.json file. Simply add the
"board": "arduino:avr:uno", line to your json and it will work.
{
"port": "COM5",
"board": "arduino:avr:uno",
"sketch": "example.ino"
}
First you need to install the board you need from:
View / Command Palette / Arduino: Board Manager
Then you can select your board from:
View / Command Palette / Arduino: Board Configuration

Ardino-Nano-BLE-Sense "Send Data With Sound" Chirp Project Issue

I am having some issues with the Send Data with Sound Project on Arduino. I have my Arduino nano BLE sense, ChirpSDK by Asio Ltd Version 3.4.0 installed, I put in the CHIRP_APP_KEY, CHIRP_APP_SECRET, CHIRP_APP_CONFIG from the chirp website, and I also have the Arduino nano BLE board selected when uploading the code. But for some reason I keep getting this error below:
ChirpColor:22:10: error: chirp_connect.h: No such file or directory
#include "chirp_connect.h"
^~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
chirp_connect.h: No such file or directory
Any help would be very much appreciated, thanks.
The SDK functions have been renamed in the latest release. So connect is replaced with sdk.
With the latest version, you need to
#include "chirp_sdk.h"
See the latest header file for the function declarations - https://github.com/chirp/chirp-arduino/blob/develop/src/chirp_sdk.h

Arduino code won't upload

I'm working on a small weather station and yesterday everything was working well. This morning I changed some code and suddenly this came up when I wanted to upload the code to my Adafruit:
java.io.IOException: Cannot run program "{runtime.tools.bossac-
1.7.0.path}/bossac": CreateProcess error=2, The system cannot find the file
specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:207)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.SketchController.upload(SketchController.java:713)
at processing.app.SketchController.exportApplet(SketchController.java:686)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2168)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot
find
the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 8 more
An error occurred while uploading the sketch
Even simple code won't upload anymore. Could someone help me with this? I tried so many things already and I can't figure it out.
Thanks.
I had the same problem with my Adafruit Feather M0. I opened the platform.txt file (running Wordpad as an administrator) located at
C:\Users\[yourPC]\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.2.9\platform.txt
and changed the line
tools.bossac.path={runtime.tools.bossac-1.7.0.path}
to reflect the actual path of the bossac.exe file (mine was at)
C:\Users\[yourPC]\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.2.9\tools\
After restarting Arduino, I was finally able to upload a sketch to my M0.
I have been experiencing the same issue. I found that if I went to my Board Manager and downgraded my Feather boards from 1.6.18 to 1.6.17 it fixed the problem.
java.io.IOException: Cannot run program "{runtime.tools.bossac-
1.7.0.path}/bossac": CreateProcess error=2, The system cannot find the file
specified
The above line says the path to bossac.exe command line application for ATSAMD micro was not found.
Simply Goto --> C:\Users[yourPCnamehere]\AppData\Local\Arduino15\packages\arduino\tools\bossac
Did you find bossac.exe file there?
If not then that's the problem. Simply uninstall the Arduino from your PC and delete the above directory Arduino15 if you have an offline copy of Arduino and then install new version. bossac.exe tool will come with the Arduino package.
Please try this and see if it helps.

Arduino Clone CH340G 'Error Compiling for Board Arduino/Genuino Uno

I brought a cheap Arduino board from AilExpress and after searching around the forum rooms ,installed the drivers for CH340G board. For some reason I am still unable to compile and run the code on the board.
The IDE keeps stating 'Error compiling for board Arduino/Genuino Uno.
Any help would be most welcome.
I have checked my COM port its COM6 and does state (CH430G) next to it.
Kind regards.
Not sure how it happened but the answer was in the error message which was " Show verbose output during compilation" option enabled in File -> Preferences."
so I went into File --> Preferences and selected the following
"Show verbose output during [x] compilation [x] upload" both are tick
"Check for updates on startup" tick
Enable code folding tick
I then moved my sketch file from Onedrive to G:\Documents\Arduino\Wifi-Test
compile and upload , "bob's your uncle" it works
ensure you have selected in your board manager "Arduino / Genuino Uno"

Processing to Arduino "IllegalAccessError"

I hope this exact issue was not addressed already. I did search for a while.
So I'm using the Arduino library for Processing, testing it by simply having it blink an LED that I have connected to my Arduino UNO. I'm following this tutorial, but am having a problem a little different than the ones covered on that tutorial page. Here's my Processing code:
import processing.serial.*;
import cc.arduino.*;
Arduino arduino;
int ledPin = 13;
void setup()
{
//println(Arduino.list());
arduino = new Arduino(this, Arduino.list()[0], 57600); //error here
arduino.pinMode(ledPin, Arduino.OUTPUT);
}
void draw()
{
arduino.digitalWrite(ledPin, Arduino.HIGH);
delay(1000);
arduino.digitalWrite(ledPin, Arduino.LOW);
delay(1000);
}
Here's my error:
IllegalAccessError: tried to access class processing.core.PApplet$RegisteredMethods from class cc.arduino.Arduino$SerialProxy
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Exception in thread "Animation Thread" java.lang.IllegalAccessError: tried to access class processing.core.PApplet$RegisteredMethods from class cc.arduino.Arduino$SerialProxy
at cc.arduino.Arduino$SerialProxy.<init>(Arduino.java:119)
at cc.arduino.Arduino.<init>(Arduino.java:168)
at sketch_130206a.setup(sketch_130206a.java:29)
at processing.core.PApplet.handleDraw(PApplet.java:2117)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:193)
at processing.core.PApplet.run(PApplet.java:2020)
at java.lang.Thread.run(Thread.java:680)
Since my error apparently has to do with access permissions, I tried doing what it says at the tutorial page I was following by going to /var/lock folder, but the /lock folder doesn't exist! I'm using a Mac 10.8.2. I searched around and found this thread (arduino dot cc/forum/index.php?topic=135164.0) and decided to try "sudo mkdir -p /var/lock" and "sudo chmod 777 /var/lock" in terminal, but it didn't change the error I have in Processing, even after restarting it. I also tried opening the Arduino app and uploading the StandardFirmata sketch as mentioned at the ProcessngxArduino library download page (playground.arduino dot cc/interfacing/processing) while trying to run the processing sketch, but same error. The fact that I'm using the Arduino UNO instead of the Duemilanove shouldn't be the issue as the UNO is apparently just an updated version of it. Any ideas what I could try to do next?
UPDATE: Okay so the highlighted error in my code is what opens the serial port I'm using at whatever rate (57600 bits/sec in this case I think). So I think the problem lies in this particular step in the instructions at the adrunio x processing info page mentioned earlier(playground dot arduino dot cc/interfacing/processing), step 3: "Configure Processing for serial: processing dot org/reference/libraries/serial/"... the link goes to processing's 'serial' reference page. I'm confused about what is meant by "configure"? How exactly do I figure out my "correct serial port"? I went through the rest of the instructions and the examples on the serial reference page, and still have no idea what I'm looking for.
UPDATE #2: My serial port for the arduino is "/dev/tty.usbmodem1411". I am still confused about how to plug this in to my code in Processing though. The things I just learned in these last 2 updates might be irrelevant to my error, I'm still unsure.
The problem was that I was using the beta version of Processing (2.0). Use the latest stable version (1.5.1) and it should work.

Resources