Comments (6)
Well in the first and last case the error message is related to the start of esptool, "Permission denied"
from makeesparduino.
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.
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.
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.
Try setting BUILD_EXTRA_FLAGS as an environment variable
from makeesparduino.
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)
- LittleFS compile errors on esp8266 HOT 4
- Getting Xtensa Error HOT 1
- ESP32 python: can't open file '/esptool.py': [Errno 2] No such file or directory HOT 6
- how to build for esp32s3 etc.? HOT 4
- Variant ESP32 devices HOT 1
- Arch WSL g++ HOT 2
- Calling 'make clean' twice will trigger config parser. HOT 7
- build_opt.h: No such file or directory HOT 5
- Duplicate SKETCH when including on working directory HOT 5
- compiling a sketch with Bodmers TFT_eSPI library HOT 2
- Problems with include path HOT 7
- Compilation error on core's version 3.1.0 HOT 5
- Compilation of a simple program for esp32 fails because it tries to include library SoftwareSerial only available for architecture avr HOT 1
- .git folder appears to be included during make HOT 9
- Arduino IDE 2.x does not have preferences.txt HOT 1
- Add support for Arduino Core 3.0.0 HOT 5
- ESP32 builds stopped working after changes in the platform.txt file from the arduino-esp32 project (support relative paths in UNIX search PATH) HOT 2
- missing core dump partition
- no mk file HOT 1
- Not compatible with latest ESP32 SDK 2.0.14? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from makeesparduino.