Setup NodeMCU ESP32 is not working

6 visualizzazioni (ultimi 30 giorni)
Hey,
I tried to set up my NodeMCU ESP32 to Matlab, but I'm getting every time an error.
Even after I tried a few things on this forum, it's still not working.
I'm using MATLAB R2022b.
I went for the following guide, but I'm getting stuck on the third step:
Even if I'm pressing and holding the Boot-button, I receive the following Error:
Error log:
Dec 22, 2022 6:12:12 PM com.mathworks.hwservices.logging
INFO: usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,40m,26m,20m,80m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--ignore-flash-encryption-efuse-setting]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'C:\\Users\\Name'
Before I set up my ESP32 I went through the following installation guide:
After I received the error, I tried this troubleshooting guide with no results:
I selected the correct port, updated the drivers, connected my ESP32 via USB and pressed the Boot-button the whole time.
Does anyone know, what's the possible solution for my problem?
Thanks for answering.

Risposta accettata

Manjunatha Vankadari Gopalakrishna
Hi,
Can you please confirm if your user name has space in it?
You can check in the following directory,
C:\Users\<user name>
If so then do the following,
  • Close the setup screen
  • Download all attached files and run applyPatch.m
  • Execute
  • >> rehash; rehash toolboxcache; rehash toolbox; rehash pathreset; clear classes; clear all;clc
  • Relaunch the hardware setup screen and follow the screens
  • >> arduionsetup
Thanks,
Manjunatha
  1 Commento
Johannes Gutjahr
Johannes Gutjahr il 26 Dic 2022
Hi Manjunatha,
I don't really know, from where you got these files, but it worked absolutely fine.
I think I also could have a few directory problems, but after running applyPatch.m, I saw the directory of the utility-file.
I switched the old version with the new one manually, run arduinosetup and everything worked perfectly.
Thank you so much for helping me that fast.
I wish you happy holiday for the rest of the year!
Greets
Johannes

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by