-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Unable to load the code from arduino ide to esp8266 #2801
Comments
I've just recently installed the Arduino version 1.8.0 IDE and loaded the third party ESP8266 extensions. I've seen these same messages as well. However, it does seem that the code is being downloaded and is running on the board. There is likely a bug related to these messages, and, perhaps they are an indicator that you should retry the download. But, if you just want to continue to make progress, you should look to see if your board is actually running the software. (Perhaps you can ignore the messages and get on with it!) matthew P.S. If you want more attention given to this bug report, you should include specific details about what versions of the IDE, what board you are using, etc... |
@mcolinj , Have you got it working now ? |
Connection Diagram 1: I have various forums and they suggested that
warning: espcomm_sync failed Also seen some diagram that they connected RESET pin of Arduino is connected to GND. Please suggest what should be the exact connection diagram. |
What I was saying is that you were seeing that error message when you were trying to flash the software
onto your esp8266 board, correct?
Several days ago, I saw the same messages as well, but I was able to try it again (even seeing similar messages)
and my software was flashed onto the esp8266 board. Just to be sure, I loaded the blinky
LED software (which blinks once every 2 seconds). I modified it to blink rapidly, and, even though the I received
those error messages. This is how I determined that the resulting new code has been flashed and was running
on the board.
Yesterday, I chose a menu item under the Tools menu to set the “Upload Speed” to 115200, and it seems that the
upload/flash process is more reliable. I don’t see those messages at all any ore. I don’t know if you have that
option (I think it is board specific, but I have my board set to WeMos D1 (Retired), as that is the device configuration
recommended for developing with the NodeLink ESP8266 D1 board.
good luck,
matthew
… On Dec 31, 2016, at 7:22 PM, jyotirajsharma ***@***.***> wrote:
@mcolinj <https://github.com/mcolinj> ,
You mean esp8266 what we got does not have software flashed into it and we need to flash it externally using esptool ?
How to see if my board is actually running software or not.
I am using arduino-1.6.12 IDE and esp8266 board.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2801 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AQbN8XpVEHZPpjavOdMIUTfSi0wlSyrqks5rNvGpgaJpZM4LWb3w>.
|
Yes, while trying to flash the esp8266 (connect GPIO_0 of esp8266 to GND). Upload speed is 115200 bps only. I put more verbose logs and got following errors. warning: espcomm_sync failed |
I tried to compile and upload a code to esp-12f (ch340g) and got the same message when I didn´t put in flash mode and upload speed was 256000. Setting both mistakes right, the software was uploaded. Arduino: 1.8.0 (Windows 7), Placa:"Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 256000, 512K (64K SPIFFS), ck, Disabled, None" When I forgot only the flash mode, only the message below changed: |
I did not understand- "Setting both mistakes right, the software was uploaded." |
Do i need to supply 3.3v from external source to esp8266 ? For now, I provided it from Arduino 3.3v to esp8266? |
Please suggest if possible. |
Sorry for my english. I speak portuguese and English is a second language for me.
Yes, it´s better supply a good 3.3 v to the board, like the forums say. As I used a integrated programmer (like this<https://www.aliexpress.com/item/ESP8266-serial-WIFI-Witty-cloud-Development-Board-ESP-12F-module/32557886226.html?spm=2114.01010208.3.292.dxkXg8&ws_ab_test=searchweb0_0,searchweb201602_5_10065_10068_10000009_10084_10083_10080_10082_10081_10060_10062_10056_10055_503_10054_10059_10099_10078_501_10079_426_10103_10073_10102_10096_10052_10053_10050_10107_10051_10106-501_503,searchweb201603_4,afswitch_5&btsid=2c86b91c-85ea-40f8-9189-054123f75ac2>), it supplies my board just by an USB cable. I just used a LM1117 for this too and a cell phone adapter with a CP2102 and it works, too.
In the thread, I said I set the speed to 115.200 and keep the flash button pressed during the upload (i think the GPIO00 is used to this) and the upload was fine.
To repeat identically your error message, i set the speed to 256000 and did´nt press the flash buttton. But may be another errors to cause the same message.
I hope it could be usefull for you.
|
Try to connect The GPIO0 with a 10k resistor to ground and the CH_PD to VCC and it works :) |
I ran into same Problems with flashing esp-01 modules. But then it works like a charm. I used both Arduino IDE (1.8.0) and esptool. When you use a simple UART-USB adapter to flash the ESP-01, take care of the power supply while most UART Programmers didn't supply the needed ~200mA for flashing the ESP-01. |
Seems like this thread is basically the same problem. Did this work? Just signed up yesterday, but there should be a link to a similar problem above. Copypaste begins here: TL,DR: I solved my problems (warning: espcomm_sync failed etc.) by replacing the 10k resistor between GPIO00 and GND I used first with a 3.9k resistor. Long Version: The problem: I get the It is the Serial Monitor that will give me an idea what might be the problem: ready Testing reveals: When connecting GPIO00 to high for normal boot - the Serial Monitor shows exactly the same. Oh. Ahhhh! No wonder I can't program the chip if it isn't even in the right mode! I replaced the 10k (probably, I mean, I didn't measure it, but the other ones from the same batch from China seem to be 10k) resistor between GPIO0 and GND with a 3.9k. Voila, Also, the proper behavior of the Serial Monitor when starting the esp in UART Mode seems to be to show only one line of garbage data on 115200 Baud which is revealed as |
So I got exactly these error messages on a ESP8266 mounted on a dev board. To resolve the problem I had to keep the flash button pressed while flashing (output below). Here's a screenshot of my board with the flash button highlighted
|
For me, under Microsoft Windows, I've just changed the driver in Ports (COM and LPT) from RAMPS to USB-SERIAL CH340 (with update driver) and all works fine now ... |
@nafizb thanks, your settings solved to my ch340 esp8266 based |
What fixed it for me was uploading the bare minimum sketch to the arduino |
I had the same problem and fixed with the following 3 steps:
|
I had the same issue using NodeMCU Amica. I got it fixed just starting the upload process keeping FLASH button pressed. After upload starts the button can be released. No external supply. No external resistors. On Arduino IDE (assuming package esp8266 is installed), select Board NodeMCU 1.0, baud rate 115200. |
I had tried all of your suggestions and what made my set up work - ensure good connections and proper VCC level I have 55 Esp8266 to set up and all work now thanks to fixing poor wiring connections. TX---------------------RX |
I solved mine by connecting the reset pin to the arduino's reset. I believe connecting to gnd and a button would also solve it. I restarted and it worked. I tried another program and it did not work at first but when I reset it it worked again. |
The espcomm open failed error is documented. If what the doc says doesn't work, you either have bad wiring, or a bad board. |
error: Failed to open COM1 how to solve this error |
Select proper COM port :-( |
i have the same problem. I have done all the above methods but problem is still occured. |
This is the error. plz help me fast.! |
Yeah, another "help me fast" guy... What did you try to solve your problem? |
The following error can be rectified by ,, Better to make a switch for ch_pd pins this helps to enable flashing and rectifies the below error. baudrate supports for me is 9600,57600 that works for me, error: espcomm_open failed |
As many people wrote: basic problem with Arduino UNO is, that usb programmer isnt enough strong power. You have use external power supply (3,3V and wirted GND with usb programmer) |
Chip : New Wireless module CH340 NodeMcu V3 Lua WIFI Internet of Things development board based ESP8266 |
I had similar issue, because I used wrong programmer. |
You have no need of usb programmer to buy you can use arduino to program esp8266 |
I have wasted my 4 days to check below error, but still not succeded. Tried every solution, can someone help me please I am using ESP8266, Driver installed properly for CH340G & COM port properly reflected... Whle uploading it is throwing me error - warning: espcomm_sync failed Need URGENT Help, someone can directly contact me on [email protected] Please HELP here... |
Google this "esp8266 arduino espcomm_sync failed" and click in "I'm feeling lucky" |
Sorry, but already browsed all these, but no luck....
Actually Serial Monitor is also throwing "ERROR" when sending command as
"AT"
I checked PORT & Baud, it is fine, not getting exact rror
…On Mon, Apr 9, 2018 at 4:01 PM, ZaPpInG ***@***.***> wrote:
Google this "esp8266 arduino espcomm_sync failed" and click in "I'm
feeling lucky"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2801 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AkaNkfcWES21Nl-fXz-Qth6WfCppRbw6ks5tmziTgaJpZM4LWb3w>
.
|
|
Hi
Thanks for reply
Much Appreciate it!!!
Good News - I can able to upload the code by pressing & holding the FLUSH
button n device... It works for me
Thanks & keep supporting to me :)
…On Thu, Apr 12, 2018 at 12:51 AM, Diego Hinojosa Cordova < ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/5265771/38638204-ed0742f8-3da3-11e8-8e35-110711d5734f.png>
my config on lolin new mcu v3 using Arduino 1.8.2 and updating driver from
RAMPS to USB-SERIAL CH340 just like @WolfCreations
<https://github.com/WolfCreations> said.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2801 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AkaNkcm-dv-kFJm8YVUyUS0GaPLQMbpDks5tnlelgaJpZM4LWb3w>
.
|
Prasadgiot where is the FLUSH button? warning: espcomm_sync failed |
Hi,
There are 2 pins/buttons on ESP8266 model itself.
One is RST (Rest) and another is Flash....
Keep pressing "FLASH" pin/button and upload code...
I am sorry, I dont have much idea about "Lenoardo", but you can purchase
latest ESP8266 device which is around 500 Rupees INR
…On Thu, Apr 26, 2018 at 6:47 AM, shekarpathi ***@***.***> wrote:
Prasadgiot where is the FLUSH button?
I have an Lenoardo and trying to program the ESP8266. I continue getting
the following error.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2801 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AkaNkaNQtPxSQ8tqN_alj7MFag1bt71Oks5tsSBBgaJpZM4LWb3w>
.
|
I was getting the same error. |
About above comments: NodeMCU 1.0 doesn't need Flash button to be pressed on upload. On the others models, if there is a FLASH button, it must be pressed on upload until Dots begin to apear, when the FLASH button can be released. If there isn't a FLASH button, GPIO00 must be connected to GND. |
I have Lolin NodeMCU V3, I followed, these instructions and to upload use NodeMCU firmware programmer, you have to hold down the flash button and then press the reset button. That's the only way I go the NodeMCU Firmware programmer to work. From there I was able to upload a sketch by doing the same flash/reset buttons sequence. |
I have the same problem: I am using Ubuntu 17.10 with linux 4.13.0-37-generic kernel. I dmesg I found this line, so I assume it has something to do with the usb driver: When I use Ubuntu 16.04 with the same NodeMcu 1.0, everything works for me. |
I feel like I've tried just about everything here and it still doesn't work. There must be something I'm not seeing. I am using an arduino uno and an ESP8266 wifi module. The arduino is connected to the laptop, and I'm using 2 AA batteries as external source (they are brand new). My connection is the following: ESP GND --> Arduino GND + AA batteries GND + GPIO 0 I have tried changing the upload speed on every change I make but still same error. I have even tried wiring the reset on the ESP to the reset of the arduino. I just don't know what else to try. I still keep getting the same error. If it's any help, this is the tutorial I used. I've also tried using the ESP-01 Adapter but I haven't gotten that to work either. |
I have the same problem :( Arduino:1.8.5 (Linux), Tarjeta:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200" Archiving built core (caching) in: /tmp/arduino_cache_148097/core/core_esp8266_esp8266_nodemcuv2_CpuFrequency_80,FlashSize_4M1M,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,FlashErase_none,UploadSpeed_115200_183312692e25616796233f7b6af8a20d.a Este reporte podría tener más información con |
Read this instructions: In spanish (no official): |
For those looking for a solution, I had he same problem and I solved it with the following config: Hardware:
Software (Arduino):
Procedure:
|
Worked! Thanks. |
I encountered the same issue using MCUNode8266 (failed reading byte ) , the solution is pretty simple , push flash button when uploading file |
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:39:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:87:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6 StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:102:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6 StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'message TelegramBot::getUpdates()': C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:39:20: error: expected primary-expression before '<' token
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:39:37: error: 'jsonBuffer' was not declared in this scope
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:44:12: error: 'ArduinoJson::JsonObject' has no member named 'success'
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'String TelegramBot::sendMessage(String, String)': C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:87:19: error: expected primary-expression before '<' token StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:87:36: error: 'jsonBuffer' was not declared in this scope StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:93:8: error: 'ArduinoJson::JsonObject' has no member named 'printTo' buff.printTo(msg);
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'String TelegramBot::sendMessage(String, String, TelegramKeyboard&, bool, bool)': C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:102:19: error: expected primary-expression before '<' token StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:102:36: error: 'jsonBuffer' was not declared in this scope StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:107:68: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson691_000::ObjectRef&}' from an rvalue of type 'ArduinoJson691_000::ObjectRef' JsonObject& reply_markup = buff.createNestedObject("reply_markup");
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:108:66: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef' JsonArray& keyboard = reply_markup.createNestedArray("keyboard");
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:111:48: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
In file included from C:\Users\LENOVO\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\cores\esp8266/Arduino.h:29:0,
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:117:20: error: expected primary-expression before 'bool' reply_markup.set("one_time_keyboard", one_time_keyboard);
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:117:20: error: expected ';' before 'bool' C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:118:20: error: expected primary-expression before 'bool' reply_markup.set("resize_keyboard", resize_keyboard);
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:118:20: error: expected ';' before 'bool' C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:119:20: error: expected primary-expression before 'bool' reply_markup.set("selective", false);
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:119:20: error: expected ';' before 'bool' C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:122:8: error: 'ArduinoJson::JsonObject' has no member named 'printTo' buff.printTo(msg);
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: At global scope: C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:101:8: warning: unused parameter 'one_time_keyboard' [-Wunused-parameter] String TelegramBot::sendMessage(String chat_id, String text, TelegramKeyboard &keyboard_markup, bool one_time_keyboard, bool resize_keyboard) {
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:101:8: warning: unused parameter 'resize_keyboard' [-Wunused-parameter] C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'String TelegramBot::readPayload()': C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:148:7: warning: unused variable 'c' [-Wunused-variable] char c;
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'message TelegramBot::getUpdates()': C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:81:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'String TelegramBot::sendMessage(String, String)': C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:98:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Multiple libraries were found for "TelegramBot.h" Please help me solve this errors |
I ran into this problem a number of times already. It seems the ArduinoJson library changes
from 5 to 6 are not compatible. Whatever you are trying to build is *using* version 5, and you
have version 6 installed.
Use the library manager to load the 5.x version of ArduinoJson and you should be fine.
good luck,
matthew
… On Mar 22, 2019, at 9:05 AM, prajakta2 ***@***.***> wrote:
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:39:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:87:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:102:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'message TelegramBot::getUpdates()':
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:39:20: error: expected primary-expression before '<' token
StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:39:37: error: 'jsonBuffer' was not declared in this scope
StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:44:12: error: 'ArduinoJson::JsonObject' has no member named 'success'
if(root.success()){
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'String TelegramBot::sendMessage(String, String)':
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:87:19: error: expected primary-expression before '<' token
StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:87:36: error: 'jsonBuffer' was not declared in this scope
StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:93:8: error: 'ArduinoJson::JsonObject' has no member named 'printTo'
buff.printTo(msg);
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'String TelegramBot::sendMessage(String, String, TelegramKeyboard&, bool, bool)':
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:102:19: error: expected primary-expression before '<' token
StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:102:36: error: 'jsonBuffer' was not declared in this scope
StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:107:68: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson691_000::ObjectRef&}' from an rvalue of type 'ArduinoJson691_000::ObjectRef'
JsonObject& reply_markup = buff.createNestedObject("reply_markup");
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:108:66: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
JsonArray& keyboard = reply_markup.createNestedArray("keyboard");
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:111:48: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
JsonArray& row = keyboard.createNestedArray();
^
In file included from C:\Users\LENOVO\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\cores\esp8266/Arduino.h:29:0,
from C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.h:10,
from C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:8:
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:117:20: error: expected primary-expression before 'bool'
reply_markup.set("one_time_keyboard", one_time_keyboard);
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:117:20: error: expected ';' before 'bool'
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:118:20: error: expected primary-expression before 'bool'
reply_markup.set("resize_keyboard", resize_keyboard);
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:118:20: error: expected ';' before 'bool'
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:119:20: error: expected primary-expression before 'bool'
reply_markup.set("selective", false);
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:119:20: error: expected ';' before 'bool'
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:122:8: error: 'ArduinoJson::JsonObject' has no member named 'printTo'
buff.printTo(msg);
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: At global scope:
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:101:8: warning: unused parameter 'one_time_keyboard' [-Wunused-parameter]
String TelegramBot::sendMessage(String chat_id, String text, TelegramKeyboard &keyboard_markup, bool one_time_keyboard, bool resize_keyboard) {
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:101:8: warning: unused parameter 'resize_keyboard' [-Wunused-parameter]
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'String TelegramBot::readPayload()':
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:148:7: warning: unused variable 'c' [-Wunused-variable]
char c;
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'message TelegramBot::getUpdates()':
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:81:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp: In member function 'String TelegramBot::sendMessage(String, String)':
C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master\src\TelegramBot.cpp:98:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Multiple libraries were found for "TelegramBot.h"
Used: C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master
Not used: C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-1.2.5
Using library TelegramBot-Library-master at version 1.2.5 in folder: C:\Users\LENOVO\Documents\Arduino\libraries\TelegramBot-Library-master
Using library ArduinoJson-6.x at version 6.9.1 in folder: C:\Users\LENOVO\Documents\Arduino\libraries\ArduinoJson-6.x
Using library ESP8266WiFi at version 1.0 in folder: C:\Users\LENOVO\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
Please help me solve this errors
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2801 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AQbN8eujh8oEKEj489AFeAaw4QC5KWtjks5vZNUkgaJpZM4LWb3w>.
|
i ran into the same problem. the solution in my case was to put a 100uF capacitor between power supply (3.3 V) and ground. |
I have the same problem , i try every forum solution but no success ! |
I have de same error but my board is: UNO+WiFi R3 ATmega328P+ESP8266, 32Mb flash, USB-TTL CH340G, Micro-USB |
Hi , Try to push the reset button the moment when you load the code
Le lun. 23 mars 2020 à 15:24, Aibana17 <[email protected]> a écrit :
… I have de same error but my board is: UNO+WiFi R3 ATmega328P+ESP8266, 32Mb
flash, USB-TTL CH340G, Micro-USB
I try every solutions in the internet... no success...
I am give up. Help please!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2801 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALDZV4CG4P45RAD4X2FPG3DRI5WI5ANCNFSM4C2ZXXYA>
.
|
Hi,
I am unable to load the code from arduino ide to esp8266
Sketch uses 232,505 bytes (53%) of program storage space. Maximum is 434,160 bytes.
Global variables use 32,504 bytes (39%) of dynamic memory, leaving 49,416 bytes for local variables. Maximum is 81,920 bytes.
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
Please help me to resolve this issue.
The text was updated successfully, but these errors were encountered: