Skip to content
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

esp8266FS using wrong Hardware path, because it is hard coded #71

Open
arnold-b opened this issue Dec 22, 2019 · 1 comment
Open

esp8266FS using wrong Hardware path, because it is hard coded #71

arnold-b opened this issue Dec 22, 2019 · 1 comment

Comments

@arnold-b
Copy link

arnold-b commented Dec 22, 2019

Hello,
If i try to Upload to SPIFFS i get error. And after Debugging your Code i found:

  1. You should print out the path before you stop
    case "esp32": {
    const esp32Path = path.join(arduinoUserPath, "hardware", target.package, target.architecture);
    logImportant(Found ESP32 packages: ${esp32Path}); This reached even on error
    if (!dirExists(esp32Path))
    throw ESP32 has not been installed correctly - see https://github.com/espressif/arduino-esp32.;

THIS never reached on error logImportant(Found ESP32 packages: ${esp32Path});

        return esp32Path;

If i try to pack then i get this path from Hardware

  • Found ESP32 packages: C:\Users\braun\Documents\Arduino\hardware\espressif\esp32
    // This path is fixed in your script. Normaly you should get it from the selected Sourcecode.
    // If this is not posible. it´s may be better to use preferences.txt\sketchbook.path or extract from board
    This path is wrong. The real path is J:\PRJArduino\Hardware....

At least you should log the Vars before Termination. That makes the error correction more easy

board: include path:
"board": "espressif:arduino-esp32-master:esp32", Path=value[0]+''+value[1]
"board": "espressif:esp32:esp32",

By the way i found second error.
If i choose ESP wrover, your script tell. it is not esp. esp32wrover
May just check if it is espressif and not the type

I don´t know much About programming vscode extensions. I´m wondering where you find ESP8266FS_ARDUINO_USER_PATH
I just took from prefference the sketchbook.path

@SamsiFPV
Copy link

I got the same problem, and haven't found a solution yet. Did you actually solve your problem somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants