Cannot program Google Coral Dev Board through Arduino on Windows 10 - arduino

I can see the Coral Dev Board through the serial interface / putty, and it does show as Universal Serial Bus devices/'USB download gadget', in Windows 10 device manager. But when I try to download a program through Arduino (it compiles fine), I get the following error message when entering uploading:
[15748] Failed to execute script 'flashtool' due to unhandled exception!
Traceback (most recent call last):
File "flashtool.py", line 16, in <module>
ModuleNotFoundError: No module named 'progress'
Failed uploading: uploading error: exit status 1
I can nowhere find a reference to a 'flashtool' in any manual for this board, or online. How to fix this?
I reinstalled the Coral board in Arduino, and retried compiling & uploading several times, to no avail.

Related

Error message when uploading code to my Arduino board on apple silicon Mac

I have an m1 MacBook Air and every time I try to upload my code I get an error message stating:
fork/exec
/Users/Ammar_Mohamedali/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++:
bad CPU type in executable
Compilation error: fork/exec
/Users/Ammar_Mohamedali/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++:
bad CPU type in executable
apparently my avr-g++ is not compatible with a newer cpu but I have no idea what that means or how to fix it. Can anyone help?
I tried going to the Arduino page but there was nothing to help.

cc1plus.exe: fatal error: CommonHFile.h: No such file or directory compilation terminated. while used esp8266 and arduino

I tried to use esp8266 with my Uno board. when I start the basic example "hellosever", the IDE sends me back this message :
cc1plus.exe: fatal error: C:\Users\PropriƩtaire\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\cores\esp8266\CommonHFile.h: No such file or directory
I look at the directory and the file is there and there is no file/folder with space or things like this. Can you help me with this?

How to fix the '[Network] module not found' error in Micropython on Raspberry Pi?

I recently installed Micropython on my Raspberry Pi model 3. I followed all the steps mentioned in the Raspberry pi - how to guide. https://www.raspberrypi.org/forums/viewtopic.php?t=191744
But, when I try to import the network module, it throws a 'module not found' error. I have searched a lot for the solution to my problem, but haven't found a solution yet.
I searched for the micropython-network module but it is not available on https://pypi.org/search/?q=micropython+network
The closest ones are micropython-cpython-network and network. I tried using the network module but it doesn't contain the functions that I require (e.g.: WLAN).
Also, I have used Micropython on the ESP32. It works fine. No errors.
I think this is something Raspberry Pi-specific.
When I write this:
import network
The error message shows:
Traceback (most recent call last):
File "<stdin>" ,line 1, in <module>
ImportError: no module named 'network'

esp8266 12E doesn't connect to internet

This is my first Arduino application, and I have programmed it and learned on it.
It runs and can create a blinking app, and even by entering through Serial.
But when I try to connect it to the internet, it gives
Fatal Exception 12
.
The board I am using is D1 Wemos (Retired). I am programming it using Arduino. I am currently running 1.6.8 version, but tried 1.6.5, and the same happens.
I tried to run the examples from esp8266 library... they as well don't run. sometimes I get
est Jan 8 2013 errors and then in the end wdt reset
but now, I get
warning: espcomm_sync failed error: espcomm_open failed error:
espcomm_upload_mem failed
I am not sure what is the issue? any body that has an idea?

Using serial port within monkeyrunner

I'd like to be able to access serial port from within monkeyrunner script. I've got separate python script that talks via rs232 to a device, and I've got a monkeyrunner script that drives an Android smartphone.
Now. After implementing the python script inside my monkeyrunner script and adding a specific path to the python serial module, the script reutrns the following error msg:
121219 10:40:51.630:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] Script terminated due to an exception
121219 10:40:51.630:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]Traceback (most recent call last):
File "C:\Android\android-sdk\tools\serial_test.py", line 13, in <module>
import serial
File "c:\Python27\Lib\site-packages\serial\__init__.py", line 23, in <module>
from serialjava import *
File "c:\Python27\Lib\site-packages\serial\serialjava.py", line 35, in <module>
comm = detect_java_comm([
File "c:\Python27\Lib\site-packages\serial\serialjava.py", line 29, in detect_java_comm
raise ImportError("No Java Communications API implementation found")
ImportError: No Java Communications API implementation found
serial_test.py:
import sys
sys.path.append("c:\\Python27\\Lib\\site-packages")
import serial
Google pointed to a number of websites :
From: Java Comm API Package download
through : http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-misc-419423.html
to: http://mho.republika.pl/java/comm/
I've dowlnoaded and installed JavaComm from http://code.google.com/p/smslib/downloads/list
I also tried http://rxtx.qbang.org/wiki/index.php/Using_RXTX
But none of the sites actually had library that simply worked. Unless I messed up the installation but I find it hard to believe as it's just a matter of copying the files (apparently). From what I understand the Java Comms API package is now obsolete and not supported any more. There is contradicting info on the official Oracle FAQ. You can download java_comm_api-30u1-linux.zip and inside you'll find readme saying "We do not provide a linux implementation.
So here's the question: how can I use serial port inside monkeyrunner script ? Where can I find a simple example of using serial port in monkeyrunner/jython ?

Resources