Code Monkey home page Code Monkey logo

Comments (6)

plerup avatar plerup commented on August 15, 2024

Well in the first and last case the error message is related to the start of esptool, "Permission denied"

from makeesparduino.

nemo9955 avatar nemo9955 commented on August 15, 2024

Yes, but without BUILD_EXTRA_FLAGS it works perfectly.
I think it sais the error is with esptool because of a " or \ that breaks the arguments .

from makeesparduino.

plerup avatar plerup commented on August 15, 2024

Sending parameters with space from the command line is always problematic.

Can't you use a "config.mk" and put your definition of BUILD_EXTRA_FLAGS there?

from makeesparduino.

nemo9955 avatar nemo9955 commented on August 15, 2024

This tool, dynamically flashes the attached board with a specific sketch, this approach of passing data directly thru the build command is ideal ... a "config.mk" would be the same thing as generating a "CONSTANTS.h" and importing it (what I am doing now).

It is almost there, it passes data, but at some point here https://github.com/plerup/makeEspArduino/blob/master/makeEspArduino.mk#L465
$$v{$$key} =~ s/(-D\w+=)"([^"]+)"/$$1\\"$$2\\"/g; it messes things up .

from makeesparduino.

plerup avatar plerup commented on August 15, 2024

Try setting BUILD_EXTRA_FLAGS as an environment variable

from makeesparduino.

nemo9955 avatar nemo9955 commented on August 15, 2024

Got it to work using

make
-f
/home/me/myproj/3rd-party/nodes-myproj/deploy-libs/makeEspArduino/makeEspArduino.mk
BOARD="d1_mini"
FLASH_DEF="4M1M"
UPLOAD_PORT="/dev/ttyUSB0"
SKETCH="/home/me/myproj/nodes-myproj/sketches/OTA_local_to_ESP.ino"
FS_DIR="/home/me/myproj/nodes-myproj/filesystems/basic"
ESP_ROOT="/home/me/myproj/3rd-party/nodes-myproj/deploy-libs/esp8266"
CUSTOM_LIBS="/home/me/myproj/3rd-party/nodes-myproj/sketch-libs
/home/me/myproj/nodes-myproj/node-lib"
BUILD_EXTRA_FLAGS='
-D_UPDATE_USERNAME=\"XXXX\"
-D_UPDATE_PASSWORD=\"xxxx\"
-D_HOST=\"esp8266_wu\"
-D_SSID=\"sssssssss\"
-D_PASSWORD=\"pppppppppp\"
-D_UPDATE_PATH=\"/update\"
'
flash

The problem was indeed esptool, I was using the one from https://github.com/espressif/esptool, commented it out so espmake would use the one from Arduino and it worcked.
It only failed wen using BUILD_EXTRA_FLAGS.

from makeesparduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.