-
-
Notifications
You must be signed in to change notification settings - Fork 792
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
Need access to esptool sources/non-bin esptool in espressif platform #426
Comments
(It works, we use it on other branches.) $ cat platformio_extra_script.py from SCons.Script import DefaultEnvironment
env = DefaultEnvironment()
LOCAL_UPLOADER="~/Documents/esptool/esptool.py"
env.Replace(
LOCAL_UPLOADERFLAGS=[
"-p", "$UPLOAD_PORT",
"-b", "921600",
"-ff", "40m",
"-fm", "dio",
"write_flash", "0x100000",
],
UPLOADER=LOCAL_UPLOADER,
UPLOADCMD='$UPLOADER $LOCAL_UPLOADERFLAGS $SOURCE',
) Output:
Hmmm. |
I hope you meant PlatformIO. We are not "Open Real-Time Advertising Platform"
You are moving in the right direction. The problem here is linked with quotes. PlatformIO escapes all paths by default to avoid problems with paths under Windows which contain spaces. See
PlatformIO uses
Conclusion:
You need to decide: if you want to support all platforms then need to specify full path to |
What is more, please don't call Python script in direct way. This works on Unix, but doesn't work on Windows if user linked Python with IDE. See correct using https://github.com/platformio/platformio/blob/develop/platformio/builder/scripts/espressif.py#L123 |
Thanks for the help - truly a simple fix.. I'd say that UPLOADER is a bit of a misnomer, though? Because it doesn't just upload but also touches the build product.. I guess its a question of wider topic of toolchain staging.
Roger that, in truth the python load is one negative in my eval of PlatformIO(*), but only for explicitly local reasons .. (*- (Sorry about that, it is confusing..) ) |
UPLOADER is used only in Espressif development platform to make binary from elf. In other (14) development platforms uploader has only the one purpose - upload firmware.
Sorry, I don't understand what do you mean :( I said, that you can have multiple version of Python interpreters. You have a choice to run script with specified Python interpreter. If don't specify interpreter directly, then OS will use default Nevertheless, if user runs PlatformIO with Python X.X.X, need to use it to call other nested scripts. |
Understood. Anyway, its of no consequence .. (What I meant was that I have my own reasons for eschewing the use of Python to manage things. :) |
It's your decision. We don't force users to use PlatformIO or Python. We don't have anything from it. We just propose different tools/instruments within @platformio ecosystem and each developer decides what is interesting for him. As for Python, I don't understand your negative position to this interpreter. Each language has own aim/purpose. I know a lot of developers with have negative position to Java or even to C. Nevertheless, you should not examine PlatformIO from "in which language it is written". If it works on the most popular OS including ARM-based PC without requirements to system software and requires 10Mb of RAM and 700Kb for source code, then need take to account. Happy New Year! If you have any questions, please feel free to reopen this issue. |
Ok, thanks, I'll split these env vars |
Thanks for the headsup @ivankravets .. |
Evaluating platform.io for my needs (MagicShifter3000) this evening, I ran into the problem that the onboarded esptool needs to be tweaked for my hardware (prototypes/etc.) Our non-platform.io build system currently uses our locally tweaked esptool.py. Is the 'best' way to overload this with the platformio_extra_script?
The text was updated successfully, but these errors were encountered: