Nano esp32 with arduino-cli

Hi, my name Luigi from italy..
My problem arduino nano esp32 with arduino-cli
Used comand:

arduino-cli.exe core install arduino:esp32

installed ok.

My compile program and upload with:

arduino-compile.ps1:

$avr=$args[0]
arduino-cli.exe compile --fqbn $avr

arduino-upload.ps1

$port=$args[0]
$avr=$args[1]
arduino-cli.exe upload --port $port --fqbn $avr

arduino-monitor.ps1

$port=$args[0]
$baudrate=$args[1]
arduino-cli.exe monitor --port $port --config baudrate=$baudrate

My setup used:

arduino-cli.exe config init

arduino-cli.exe core update-index

arduino-cli.exe core search arduino

arduino-cli.exe core install arduino:avr

arduino-cli.exe core install arduino:esp32

arduino-cli.exe core list

arduino-cli.exe board listall

arduino-cli.exe board list

arduino-cli.exe lib update-index

arduino-cli.exe lib install "servo"

arduino-cli.exe lib install "stepper"

arduino-cli.exe lib upgrade

Ops!

used compile:

arduino-compile.ps1 arduino:esp32:nano_nora

upload:

arduino-upload.ps1 COM5 arduino:esp32:nano_nora

serial monitor:

 arduino-monitor.ps1 COM5 115200

Other documentation from filesystem data upload from cli comand?
Thanks.

Hi @gigetto1982

Are you requesting assistance with some problem you are having using the Nano ESP32 board with Arduino CLI? If so, please provide a detailed description of the problem, including:

  • What did you do?
  • What were the results you expected from doing that thing?
  • What were the results you observed that did not match your expectations?

Make sure to include the full and exact text of any error or warning message you might have encountered.

Ok. no problem.
How to use spiffs on Arduino nano esp32?
use comand line?

thanks

 & "C:\Users\luigi\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3\mkspiffs.exe" -c ./data/ -p 256 -b 8192 -s 1028096 out.spiffs   
& "C:\Users\luigi\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.5.1\esptool.exe" --port COM5 write_flash 0x1000 .\out.spiffs 
PS D:\nb-desktop\luigi\Documents\Arduino\SPIFFS-WebServerDinamico> & "C:\Users\luigi\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.5.1\esptool.exe" --port COM5 write_flash 0x1000 .\out.spiffs                      
esptool.py v4.5.1
Serial port COM5
Connecting...

A serial exception error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'Un dispositivo collegato al sistema non è in funzione.', None, 31)
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
PS D:\nb-desktop\luigi\Documents\Arduino\SPIFFS-WebServerDinamico> 

Idea?, my screenshot .. port serial COM5.

How to use esptool from arduino nano esp32 with command line ?

Thanks.

Unfortunately I don't have any experience working with SPIFFS on the ESP32. Hopefully one of the other forum members will be able to provide assistance.

Something you should note is that, if you are searching for information about this subject on the Internet, any information you find about the subject for ESP32 in general should also apply to the Nano ESP32 board. So don't limit your searches to only information about the Nano ESP32 specifically since you would be unnecessarily filtering out a lot of valuable information.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.