Hello
What im doing wrong... to get this erroor
Arduino: 1.8.12 (Windows 7), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
menu_file.cpp:53:1: error: 'File' does not name a type
File fileToShow ; // this contains the file being sent from SD
^
sketch\menu_file.cpp: In function 'uint16_t fileCnt(uint8_t)':
menu_file.cpp:138:3: error: 'File' was not declared in this scope
File file ;
^
sketch\menu_file.cpp:138:3: note: suggested alternative:
In file included from sketch\TFT_eSPI_ms/TFT_eSPI.h:114:0,
from sketch\config.h:4,
from sketch\menu_file.cpp:13:
C:\Users\delavnica\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\FS\src/FS.h:47:7: note: 'fs::File'
class File : public Stream
^
menu_file.cpp:140:11: error: 'file' was not declared in this scope
while ( file.openNext( &aDir[level] ) ) {
^
menu_file.cpp:145:3: error: 'file' was not declared in this scope
file.close();
^
sketch\menu_file.cpp: In function 'boolean updateFilesBtn()':
menu_file.cpp:165:3: error: 'File' was not declared in this scope
File file ;
^
sketch\menu_file.cpp:165:3: note: suggested alternative:
In file included from sketch\TFT_eSPI_ms/TFT_eSPI.h:114:0,
from sketch\config.h:4,
from sketch\menu_file.cpp:13:
C:\Users\delavnica\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\FS\src/FS.h:47:7: note: 'fs::File'
class File : public Stream
^
menu_file.cpp:168:12: error: 'file' was not declared in this scope
if ( ! file.openNext( &aDir[dirLevel] ) ) { // ouvre le prochain fichier dans le répertoire courant ; en cas d'erreur, retour à la page info avec un message d'erreur
^
menu_file.cpp:174:5: error: 'file' was not declared in this scope
file.close() ;
^
menu_file.cpp:182:12: error: 'file' was not declared in this scope
if ( ! file.openNext( &aDir[dirLevel] ) ) {
^
menu_file.cpp:189:10: error: 'file' was not declared in this scope
if ( file.isDir() ) {
^
menu_file.cpp:193:12: error: 'file' was not declared in this scope
if ( ! file.getName( pfileNames , 21 ) ) { // Rempli fileNames avec le nom du fichier
^
menu_file.cpp:203:5: error: 'file' was not declared in this scope
file.close() ;
^
sketch\menu_file.cpp: In function 'boolean setFileToRead(uint8_t)':
menu_file.cpp:257:3: error: 'fileToShow' was not declared in this scope
fileToShow.close() ;
^
sketch\menu_file.cpp: In function 'void setShowBuffer()':
menu_file.cpp:376:3: error: 'fileToShow' was not declared in this scope
fileToShow.seek( sdMillPos ) ; // set the same position for the file used for display
^
sketch\menu_file.cpp: In function 'void setPrevShowBuffer()':
menu_file.cpp:421:3: error: 'fileToShow' was not declared in this scope
fileToShow.seek( sdShowBeginPos ) ; // set this position for the file used for display
^
sketch\menu_file.cpp: In function 'void setNextShowBuffer()':
menu_file.cpp:432:3: error: 'fileToShow' was not declared in this scope
fileToShow.seek( sdShowBeginPos ) ; // set this position for the file used for display
^
browser.cpp:38:1: error: 'File' does not name a type
File root ; // used for Directory
^
sketch\browser.cpp: In function 'void DownloadFile(String)':
browser.cpp:327:7: error: 'File' was not declared in this scope
File download ;
^
sketch\browser.cpp:327:7: note: suggested alternative:
In file included from sketch\TFT_eSPI_ms/TFT_eSPI.h:114:0,
from sketch\config.h:4,
from sketch\browser.cpp:12:
C:\Users\delavnica\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\FS\src/FS.h:47:7: note: 'fs::File'
class File : public Stream
^
browser.cpp:328:7: error: 'download' was not declared in this scope
download = sd.open( filename.c_str() );
^
sketch\browser.cpp: At global scope:
browser.cpp:356:1: error: 'File' does not name a type
File UploadFile;
^
sketch\browser.cpp: In function 'void handleFileUpload()':
browser.cpp:366:9: error: 'UploadFile' was not declared in this scope
UploadFile.close() ;
^
browser.cpp:372:12: error: 'UploadFile' was not declared in this scope
if(UploadFile) {
^
browser.cpp:381:12: error: 'UploadFile' was not declared in this scope
if(UploadFile && ( errorWhileUploading == false) ) // If the file was successfully created
^
sketch\browser.cpp: In function 'void sd_dir()':
browser.cpp:403:5: error: 'root' was not declared in this scope
root.close() ;
^
sketch\browser.cpp: In function 'void printDirectory(const char*, uint8_t)':
browser.cpp:428:3: error: 'File' was not declared in this scope
File root1 = sd.open(dirname);
^
sketch\browser.cpp:428:3: note: suggested alternative:
In file included from sketch\TFT_eSPI_ms/TFT_eSPI.h:114:0,
from sketch\config.h:4,
from sketch\browser.cpp:12:
C:\Users\delavnica\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\FS\src/FS.h:47:7: note: 'fs::File'
class File : public Stream
^
browser.cpp:431:7: error: 'root1' was not declared in this scope
if(!root1){
^
browser.cpp:435:7: error: 'root1' was not declared in this scope
if(!root1.isDir()){
^
browser.cpp:439:3: error: 'root1' was not declared in this scope
root1.rewind();
^
browser.cpp:441:8: error: expected ';' before 'file1'
File file1 ;
^
browser.cpp:442:9: error: 'file1' was not declared in this scope
while(file1.openNext(&root1)){
^
browser.cpp:468:3: error: 'file1' was not declared in this scope
file1.close();
^
sketch\browser.cpp: In function 'void SD_file_delete(String)':
browser.cpp:482:5: error: 'File' was not declared in this scope
File dataFile = sd.open( filename.c_str() ); //
^
sketch\browser.cpp:482:5: note: suggested alternative:
In file included from sketch\TFT_eSPI_ms/TFT_eSPI.h:114:0,
from sketch\config.h:4,
from sketch\browser.cpp:12:
C:\Users\delavnica\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\FS\src/FS.h:47:7: note: 'fs::File'
class File : public Stream
^
browser.cpp:483:9: error: 'dataFile' was not declared in this scope
if (dataFile) {
^
Multiple libraries were found for "WiFi.h"
Used: C:\Users\delavnica\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
'File' does not name a type
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
grbl esp32 error
Re: grbl esp32 error
did you install the sdfat library?
Take care to install the right version (not the latest).
I expect it is explained in the manual.
Take care to install the right version (not the latest).
I expect it is explained in the manual.
Re: grbl esp32 error
Yeap, I update the sub-manual of the ESP-32 but still not updated it in the online assembly manual.
Here, it is.
See ya
Here, it is.
See ya
Gilles, aéromodéliste (RC aeromodeller)
Contributions sur thingiverse (contributions on thingiverse)
Assembly manual of the RS-CNC32
Service de dépannage / Troubleshooting service
Contributions sur thingiverse (contributions on thingiverse)
Assembly manual of the RS-CNC32
Service de dépannage / Troubleshooting service
-
- Messages : 16
- Enregistré le : 02 févr. 2018 23:14
Re: grbl esp32 error
Hello thanks.. im load proper version, but now I get this error:
Arduino: 1.8.12 (Windows 7), Board: "ESP32 Dev Module, Disabled, Default, 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Sketch uses 890966 bytes (67%) of program storage space. Maximum is 1310720 bytes.
Global variables use 48456 bytes (14%) of dynamic memory, leaving 279224 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6-beta1
Serial port COM3
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Arduino: 1.8.12 (Windows 7), Board: "ESP32 Dev Module, Disabled, Default, 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Sketch uses 890966 bytes (67%) of program storage space. Maximum is 1310720 bytes.
Global variables use 48456 bytes (14%) of dynamic memory, leaving 279224 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6-beta1
Serial port COM3
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Re: grbl esp32 error
The solution should be in the sub-manual I gave you the link (point 4 of the step 5). Try to press and hold the boot button on the ESP-32, when you see: "Connecting........_____....._____....._____....._____....._____....._____....._____" at the screen. Release the button, as soon as ARDUINO IDE established the connexion with the ESP-32.fullspeed1236 a écrit : ↑06 déc. 2020 20:21 Hello thanks.. im load proper version, but now I get this error:
Arduino: 1.8.12 (Windows 7), Board: "ESP32 Dev Module, Disabled, Default, 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Sketch uses 890966 bytes (67%) of program storage space. Maximum is 1310720 bytes.
Global variables use 48456 bytes (14%) of dynamic memory, leaving 279224 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6-beta1
Serial port COM3
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
If this first solution doesn't work, try to completely erase the ESP-32, even if it is new, prior programming it. Procedure is described at step 4.
Gilles, aéromodéliste (RC aeromodeller)
Contributions sur thingiverse (contributions on thingiverse)
Assembly manual of the RS-CNC32
Service de dépannage / Troubleshooting service
Contributions sur thingiverse (contributions on thingiverse)
Assembly manual of the RS-CNC32
Service de dépannage / Troubleshooting service
-
- Messages : 16
- Enregistré le : 02 févr. 2018 23:14
Re: grbl esp32 error
Hello
It looks like ESP32 can't connect to the COM port. How do I even know which COM port is right - via USB? And how to install the right driver for COM port.
I bought a new ESP 32 but it's the same
Arduino: 1.8.12 (Windows 7), Board: "ESP32 Dev Module, Disabled, Default, 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 115200, None"
C:\\Users\\delavnica\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32-elf-gcc\\1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-size" -A "C:\\Users\\DELAVN~1\\AppData\\Local\\Temp\\arduino_build_136230/grbl_controller_esp32.ino.elf"
Sketch uses 890966 bytes (67%) of program storage space. Maximum is 1310720 bytes.
Global variables use 48456 bytes (14%) of dynamic memory, leaving 279224 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6-beta1
Serial port COM7
Connecting........_____....._____....._____....._____....._____....._____.....____An error occurred while uploading the sketch
_
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
It looks like ESP32 can't connect to the COM port. How do I even know which COM port is right - via USB? And how to install the right driver for COM port.
I bought a new ESP 32 but it's the same
Arduino: 1.8.12 (Windows 7), Board: "ESP32 Dev Module, Disabled, Default, 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 115200, None"
C:\\Users\\delavnica\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32-elf-gcc\\1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-size" -A "C:\\Users\\DELAVN~1\\AppData\\Local\\Temp\\arduino_build_136230/grbl_controller_esp32.ino.elf"
Sketch uses 890966 bytes (67%) of program storage space. Maximum is 1310720 bytes.
Global variables use 48456 bytes (14%) of dynamic memory, leaving 279224 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6-beta1
Serial port COM7
Connecting........_____....._____....._____....._____....._____....._____.....____An error occurred while uploading the sketch
_
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Re: grbl esp32 error
Hi fullspeed1236,
Check your private messages please, and come back here if the issue still remains.
In my opinion, you have to install/reinstall the CP210x USB to UART bridge VCP drivers, from Silicon Labs.
See ya
You also contacted me in private about your problem and I replied to you.fullspeed1236 a écrit : ↑08 déc. 2020 16:59 It looks like ESP32 can't connect to the COM port. How do I even know which COM port is right - via USB? And how to install the right driver for COM port.
I bought a new ESP 32 but it's the same
Check your private messages please, and come back here if the issue still remains.
In my opinion, you have to install/reinstall the CP210x USB to UART bridge VCP drivers, from Silicon Labs.
See ya
Modifié en dernier par HTheatre le 08 déc. 2020 17:18, modifié 2 fois.
Gilles, aéromodéliste (RC aeromodeller)
Contributions sur thingiverse (contributions on thingiverse)
Assembly manual of the RS-CNC32
Service de dépannage / Troubleshooting service
Contributions sur thingiverse (contributions on thingiverse)
Assembly manual of the RS-CNC32
Service de dépannage / Troubleshooting service
Re: grbl esp32 error
In arduino IDE there is a menu named Tool.
One item in this menu is Port.
You can open this menu when ESP32 is not connected to the PC and look at the list.
Afterwards you connect the ESP32 to the PC. You close and reopen the menu Tool.
There should now be one more item in the list.
The newer com is the one to be used.
If there are no new item in the list, it means that your pc does not recognize the ESP32 device
The reason can be that:
- one driver is missing on the pc. Looking on internet should probably help you installing the driver.
- the cable that you use is not correct. Some cables are foreseen only to upload GSM and does not contains the wires to transport the data.
One item in this menu is Port.
You can open this menu when ESP32 is not connected to the PC and look at the list.
Afterwards you connect the ESP32 to the PC. You close and reopen the menu Tool.
There should now be one more item in the list.
The newer com is the one to be used.
If there are no new item in the list, it means that your pc does not recognize the ESP32 device
The reason can be that:
- one driver is missing on the pc. Looking on internet should probably help you installing the driver.
- the cable that you use is not correct. Some cables are foreseen only to upload GSM and does not contains the wires to transport the data.