-
Notifications
You must be signed in to change notification settings - Fork 15
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
Cannot override uploader command #6
Comments
A solution may be to allow override the programmer in an environment variable (Just editing the builder). |
@Jesus89 Could you implement uploading using a separate command? Please take a look how we do that for Atmel AVR development platform: Here is example how user can override this "upload command" |
Added in the builder the env vars:
These variables can be modified from an extra_script.py: Import('env')
env.Replace(UPLOADBINCMD='yourprogrammer $SOURCES') Import('env')
env.Replace(UPLOADER='yourprogrammer', UPLOADFLAGS='yourflags') It will be available in the release v1.2.0 |
@Jesus89 Thanks a lot for your contribution! Can I release 1.2.0 or you have other changes? |
I am doing more changes. Btw, I have included windows_x86 and windows_amd64 packages in each toolchain (icestorm, iverilog) but AppVeyor looks for windows package. Do I need to fix the manifest.json? |
There are various different methods of 'uploading' a bitstream, they depend on your setup.
For instance, with the mystorm board, which has a hardcore cpu as well, the bitstream is managed by the hardcore, with methods ranging from 'include this in the hardcore binary' to 'just send it out over serial and the hardcore will handle it'. I could also imagine a 'stick this on an SD card' upload or others.
At the moment, there is no way to override the uploader command from an extra_script, so if one really wants to change the behavior, they have to prepend PATH with a directory that contains a fake 'iceprog' script that actually does what they want.
Alternatively, there may be some SCons magic that I'm not familiar with and don't know how to find. (I'm not a SCons user, but I've been looking into it due to platformio.)
The text was updated successfully, but these errors were encountered: