Hello, i have a problem with the ide. It’s the first time for me this ide.
When i execute the build command it comes a problem with “pins_arduino.h”.
this is the terminal:
** Exécution de la tâche : C:\Users\nijju.platformio\penv\Scripts\platformio.exe run --environment nodemcu-32s
Processing nodemcu-32s (platform: espressif32; board: nodemcu-32s; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https//docs.platformio.org/page/boards/espressif32/nodemcu-32s.html
PLATFORM: Espressif 32 (5.2.0) > NodeMCU-32S
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20005.220925 (2.0.5)
- tool-esptoolpy @ 1.40201.0 (4.2.1)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder → https//bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 35 compatible libraries
Scanning dependencies…
Dependency Graph
|-- ESP32 WIFI Car @ 0.0.1+sha.872de5c
| |-- ESP Async WebServer @ 1.2.3
| | |-- AsyncTCP @ 1.1.1
| | |-- FS @ 2.0.0
| | |-- WiFi @ 2.0.0
| |-- AsyncTCP @ 1.1.1
| |-- SPIFFS @ 2.0.0
| | |-- FS @ 2.0.0
| |-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- WiFi @ 2.0.0
|-- SPIFFS @ 2.0.0
| |-- FS @ 2.0.0
Building in release mode
Compiling .pio\build\nodemcu-32s\src\main.cpp.o
Compiling .pio\build\nodemcu-32s\liba2d\AsyncTCP\AsyncTCP.cpp.o
In file included from C:/Users/nijju/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal.h:79,
from C:/Users/nijju/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:36,
from src/main.cpp:1:
C:/Users/nijju/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-gpio.h:29:10: fatal error: pins_arduino.h: No such file or directory
- Looking for pins_arduino.h dependency? Check our library registry!
-
- CLI > platformio lib search “header:pins_arduino.h”
- Web > PlatformIO Registry
-
#include “pins_arduino.h”
^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\nodemcu-32s\src\main.cpp.o] Error 1
In file included from C:/Users/nijju/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal.h:79,
from C:/Users/nijju/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:36,
from .pio/libdeps/nodemcu-32s/AsyncTCP/src/AsyncTCP.cpp:22:
C:/Users/nijju/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-gpio.h:29:10: fatal error: pins_arduino.h: No such file or directory
- Looking for pins_arduino.h dependency? Check our library registry!
-
- CLI > platformio lib search “header:pins_arduino.h”
- Web > PlatformIO Registry
-
#include “pins_arduino.h”
^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\nodemcu-32s\liba2d\AsyncTCP\AsyncTCP.cpp.o] Error 1
================================================================== [FAILED] Took 12.65 seconds ==================================================================
- Arrêt du processus de terminal “C:\Users\nijju.platformio\penv\Scripts\platformio.exe ‘run’, ‘–environment’, ‘nodemcu-32s’”. Code de sortie : 1.
- Le terminal sera réutilisé par les tâches, appuyez sur une touche pour le fermer. **
and also i have this problem:
Can anyone help me?
And thx
Remove this folder and C:/Users/nijju/.platformio/.cache
and rebuild the project. It seems like you have a broken package.
I tried this solition but It didn’t work with me💔
What’s your exact platformio.ini
?
Does the file C:/Users/nijju/.platformio/packages/framework-arduinoespressif32/variants/nodemcu-32s/pins_arduino.h
exist and match this?
I don’t even have the variants folder in framework-arduinoexpressif32
And you 100% remove the framework-arduinoespressif32
like I told you, saw it redownload it on the next build, and you still don’t have that folder?
thx this worked but konw i have another problem. when i upload the file system imge this happens.
Processing nodemcu-32s (platform: espressif32; board: nodemcu-32s; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: Redirecting...
PLATFORM: Espressif 32 (5.2.0) > NodeMCU-32S
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20005.220925 (2.0.5)
- tool-esptoolpy @ 1.40201.0 (4.2.1)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 35 compatible libraries
Scanning dependencies…
Dependency Graph
|-- ESP32 WIFI Car @ 0.0.1+sha.872de5c
| |-- ESP Async WebServer @ 1.2.3
| | |-- AsyncTCP @ 1.1.1
| | |-- FS @ 2.0.0
| | |-- WiFi @ 2.0.0
| |-- AsyncTCP @ 1.1.1
| |-- SPIFFS @ 2.0.0
| | |-- FS @ 2.0.0
| |-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- WiFi @ 2.0.0
|-- SPIFFS @ 2.0.0
| |-- FS @ 2.0.0
Building in release mode
Building FS image from ‘data’ directory to .pio\build\nodemcu-32s\spiffs.bin
error: can’t read source directory
*** [.pio\build\nodemcu-32s\spiffs.bin] Error 1
=================================================================== [FAILED] Took 4.41 seconds ===================================================================
-
Arrêt du processus de terminal “C:\Users\nijju.platformio\penv\Scripts\platformio.exe ‘run’, ‘–target’, ‘uploadfs’, ‘–environment’, ‘nodemcu-32s’”. Code de sortie : 1.
-
Le terminal sera réutilisé par les tâches, appuyez sur une touche pour le fermer.
-
Exécution de la tâche dans le dossier tt : C:\Users\nijju.platformio\penv\Scripts\platformio.exe run --target uploadfs --environment nodemcu-32s
Processing nodemcu-32s (platform: espressif32; board: nodemcu-32s; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https:/docs.platformio.org/page/boards/espressif32/nodemcu-32s.html
PLATFORM: Espressif 32 (5.2.0) > NodeMCU-32S
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20005.220925 (2.0.5)
- tool-esptoolpy @ 1.40201.0 (4.2.1)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder → https:/bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 35 compatible libraries
Scanning dependencies…
Dependency Graph
|-- ESP32 WIFI Car @ 0.0.1+sha.872de5c
| |-- ESP Async WebServer @ 1.2.3
| | |-- AsyncTCP @ 1.1.1
| | |-- FS @ 2.0.0
| | |-- WiFi @ 2.0.0
| |-- AsyncTCP @ 1.1.1
| |-- SPIFFS @ 2.0.0
| | |-- FS @ 2.0.0
| |-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- WiFi @ 2.0.0
|-- SPIFFS @ 2.0.0
| |-- FS @ 2.0.0
Building in release mode
Building FS image from ‘data’ directory to .pio\build\nodemcu-32s\spiffs.bin
error: can’t read source directory
*** [.pio\build\nodemcu-32s\spiffs.bin] Error 1
So the data/
folder exists? What files are in there?
In the data folder i have css/js/html files
So you’re running in this error message. Is the data folder in a cloud service, like OneDrive / DropBox?
Does it have multiple nested folders and long filenames?
Actulally yea i have multiple files
It can’t find spiffs.bin file
That is the file that’s supposed to be created, not to be found initially.
Can you only place a test.txt
in the data/
folder with some dummy content and press “Build Filesystem Image”? Does that work?
Now, everything is going okay.
i connected the nodemcu esp32s v1.1 with usb to my pc then when i clicked upload filesystem image it can’t find the board. I selected Nodemcu-esp32s on platformio.
Serial port COM5
Connecting…
A fatal error occurred: Failed to connect to ESP32: Download mode successfully detected, but getting no sync reply: The serial TX path seems to be down.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation
*** [uploadfs] Error 2
================================================================== [FAILED] Took 20.46 seconds ==================================================================