-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Improve Host make run
behaviour
#1736
Conversation
run
targetrun
I'm wondering if we need the |
I guess in the cases where a developer needs both uart 0 and uart 1. As for example in the Basic_Serial sample. |
I have tried this PR and as far as I can see now there is a difference between If I run |
That is a good point. I figured that I think it might be less confusing if Also, the |
OK, I've updated |
Haven't considered all this in terms of debugging via eclipse. Could maybe create a command file dynamically... Any thoughts? |
…NS` so emulator settings can be specified separately for each Component.
…nents add their own settings to it.
run
make run
behaviour
# Options to add for configuring host network behaviour | ||
CACHE_VARS += HOST_NETWORK_OPTIONS | ||
HOST_NETWORK_OPTIONS ?= | ||
SMING_TARGET_OPTIONS += $(HOST_NETWORK_OPTIONS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can rename SMING_TARGET_OPTIONS
to CLI_TARGET_OPTIONS
. Let's use the prefix SMING_
for important things like SMING_HOME and SMING_ARCH.
@mikee47 Is this PR ready for merging? |
Yes, all done. |
With 0126e4e a better default for
SMING_TARGET_OPTIONS
is just--flashfile=$(FLASH_BIN) --flashsize=$(SPI_SIZE)
.Removing
--uart=0 --uart=1
defaults to console output for serial, but no input possible.Removing
--pause=5
runs the code without delay. In practice--pause
(wait for keypress) is more useful. The 5s delay was a compromise so that integration tests could run unattended, no longer required.Where serial I/O is required for a project, manually running telnet, etc. on each run is annoying. This PR now automatically launches the appropriate telnet sessions in new terminal windows and passes the correct options to the emulator. The project defines which ports are required by setting
ENABLE_HOST_UARTID
in theircomponent.mk
file.Tested in Windows and Ubuntu.
SMING_TARGET_OPTIONS
is no longer published, instead use other variables which are managed by their relevant Components (flash, uart, wifi, etc.)Given the complexity
make flash
no longer runs the emulator, however this can be done usingmake flash run
.