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?
Related
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.
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.
I am using garuda linux specifically. Im getting this error
`Sketch uses 227017 bytes (17%) of program storage space. Maximum is 1310720 bytes.
Global variables use 21760 bytes (6%) of dynamic memory, leaving 305920 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port /dev/ttyUSB0
A fatal error occurred: Could not open /dev/ttyUSB0, the port doesn't exist
A fatal error occurred: Could not open /dev/ttyUSB0, the port doesn't exist
`
The usb0 port shows up when i plug in the esp32, and im able to select it on arduino. So it obviously does exist. So i thought maybe i dont have the cp2102 driver. I try to install it, and i get this error
make -C /lib/modules/uname -r/build M=/home/sovadirr/Desktop/espdriv modules
make[1]: Entering directory '/usr/lib/modules/6.0.9-zen1-1-zen/build'
CC [M] /home/sovadirr/Desktop/espdriv/cp210x.o
/home/sovadirr/Desktop/espdriv/cp210x.c:290:35: error: initialization of ‘void (*)(struct usb_serial_port )’ from incompatible pointer type ‘int ()(struct usb_serial_port *)’ [-Werror=incompatible-pointer-types]
290 | .port_remove = cp210x_port_remove,
| ^~~~~~~~~~~~~~~~~~
/home/sovadirr/Desktop/espdriv/cp210x.c:290:35: note: (near initialization for ‘cp210x_device.port_remove’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:249: /home/sovadirr/Desktop/espdriv/cp210x.o] Error 1
make[1]: *** [Makefile:1849: /home/sovadirr/Desktop/espdriv] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.0.9-zen1-1-zen/build'
make: *** [Makefile:7: all] Error 2
I am very confused, because would the esp32 not show on arduino if i didnt have the driver? I believe i have the esp32 devkit v1, it says on the back of the board.
*rom incompatible pointer type ‘int ()(struct usb_serial_port )’ [-Werror=incompatible-pointer-types]
From the looks of it, this has happened in OpenSuSE, Debian, Manjaro, and Arch.
This is a fix for Putty. I'm not sure how to apply it to the esp32 driver. I don't have much time, so don't expect results from me today. I'm not any expert. I'm just sharing my attempts.
https://github.com/xmm7360/xmm7360-pci/pull/159
These links seem to work on the issue. Watch out for the few that just turn the errors off.
https://github.com/xmm7360/xmm7360-pci/issues/141
https://github.com/xmm7360/xmm7360-pci/issues/137
Thanks,
Pat
Im Using latest arduino nightly build v 1.6.10 to compile sample program for Arduino Pro Micro Which uses ATmega32U4. I just downloaded FreeRtos Library from Library Manager. Using very simple empty sketch to compile using #include
but im getting following errror while compiling:
C:\Users\Rajendra\Documents\Arduino\libraries\FreeRTOS\src\variantHooks.c: In function 'initVariant':
C:\Users\Rajendra\Documents\Arduino\libraries\FreeRTOS\src\variantHooks.c:88:2: error: 'USBDevice' undeclared (first use in this function)
USBDevice.attach();
^
C:\Users\Rajendra\Documents\Arduino\libraries\FreeRTOS\src\variantHooks.c:88:2: note: each undeclared identifier is reported only once for each function it appears in
exit status 1
Error compiling for board SparkFun Pro Micro.
what is the possibility for getting this error?
This question was raised as Issue #22 on my FreeRTOS library, in July 2017.
Best resolved by ensuring that the latest version of the Library is installed.
Emmm..I am supposedly to plug the USB cord to the top port, but I accidentally plugged it to the bottom port. I'm really new (know nothing) on Arduino. I'm trying to upload Robot_Motor_Core from File/Example/Robot_Motor, but the program does not even compile. The error message is as follow:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Motor/ArduinoRobotMotorBoard.cpp:
In member function 'void RobotMotorBoard::_refreshMotorAdjustment()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/Robot_Motor/ArduinoRobotMotorBoard.cpp:256:
error: 'TRIM' was not declared in this scope
Now I am just panicking because even the Robot_IR_Array_Test does not even compile as well. The error message is here:
Robot_IR_Array_Test.ino: In function 'void loop()':
Robot_IR_Array_Test:22: error: 'class RobotMotorBoard' has no member
named 'readIR'
Any advice???? How to set the Arduino robot back to default??
The help doc link is here: http://arduino.cc/en/Guide/Robot
The above problems appear to be with the IDE and not the robot. A brute force method of making a new directory with a fresh install or unzip of the IDE should fix the errors. And or a reboot or restart of Java.