-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards/msba2/lobaro-lorabox: change TERMFLAGS to PYTERMFLAGS #12095
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
Conversation
PORT is already given in pyterm TERMFLAGS.
Add a variable for `pyterm` specific flags that are not handled by other terminals. This will prevent issues with boards that have options only supported by `pyterm` and setting `pyterm` options from the environment.
The boards are using `pyterm` specific options that do not work on any other `RIOT_TERMINAL`. It is a shame this is required but at least do not pass arbitrary arguments to the other RIOT_TERMINAL. So use the new PYTERMFLAGS for this.
I can confirm that the terminal still works on the MSB-A2. The flags for |
I have no lobaro-lorabox to test. If someone would do this, I'd ACK |
I think the lobaro-lorabox is a bit more challenging. It seems like it needs the rts cleared to actually work. It does compile and connected but the bloombytes test doesn't actually execute... This is for both socat and picocom, it does work with pyterm. |
If this is the case then maybe we just throw an error or say |
I confirmed that you must toggle the rts to get the board running at all. Just plugging in will not allow it to execute (though battery power is fine). |
We could maybe change the flash script to leave the RTS cleared after so it would work if just flashed (meaning if could work for running all the tests). |
If special requirements for the terminal interface are more commen than exclusively these two boards, how about adding special variables like |
|
This PR does not address any compatibility with the other terminals, it just prevents sending arguments that do not match the program.
This would also not work after unplugging the board I guess. |
Yup, if it is out of scope then that is fine. Consider the lobaro-lorabox tested and expected to fail and another PR can take care of updating that. Probably by one of the people that have it! |
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.
OK, now with testing done for both boards: ACK
Thank you for the review. |
Contribution description
The boards are using
pyterm
specific options that do not work on anyother
RIOT_TERMINAL
. It is a shame this is required but at least donot pass arbitrary arguments to the other RIOT_TERMINAL.
So use the new PYTERMFLAGS for this.
This addresses setting the TERMFLAGS in an incompatible way to the other
RIOT_TERMINAL
in #12089 #12090However,
term
would still not work withsocat
orpicocom
.Testing procedure
Testing still works on
msba2
. For exampletests/bloom_bytes
tests/shell
usingsocat
It does not fail on invalid arguments
Where in master,
socat
was called with incompatible argumentslobaro-lorabox
The
term
command is still the same forlobaro-lorabox
as inmaster
I do not have a board to do the real test
Which gives this execution
Issues/PRs references