Needed to add "upload_port = /dev/ttyUSB0" to platformio.ini - now SOURCE CONTROL in Code complains #79
daveclifford
started this conversation in
General
Replies: 3 comments 3 replies
-
That's odd, thought it tried to find the port automatically. Maybe environment variables? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Alex,
Thanks for showing me the way............................
I am using Linux and it seems the upload port in the Lnux version is not
being automagically found.
Linux uses shells (my distribution uses the bash shell) to set up the
session environment for a user when initially logged in.
Using your first reference [
https://docs.platformio.org/en/latest/envvars.html],
# Unix (bash, zsh)
export VARIABLE_NAME=VALUE
shows the export command to set a variable to be used during the session.
Platformio uses a prefix to identify its variables, so the following
statement should work:
*export PLATFORMIO_UPLOAD_PORT=/dev/ttyUSB0*
I will remove the reference I put in the platformio.ini file
[*upload_port = /dev/ttyUSB0] *and set it in the session file.
I will report back later on my success and what worked; I hope it helps others.
Dave
…On Sat, Mar 25, 2023 at 4:15 AM Alex ***@***.***> wrote:
That's odd, thought it tried to find the port automatically.
Maybe environment variables?
https://docs.platformio.org/en/latest/envvars.html
https://docs.platformio.org/en/latest/envvars.html#uploading
—
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPCUPR7BU7ZI7UHYMK2QWTW53AS5ANCNFSM6AAAAAAWHGEHTA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
-
"If it works I can look at adding a tips/hints bit to the docs for Linux users" I'm in the process of writing exaclty that - How do I format the file for you - such as an .md file? Lead the way Dave |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had to add an upload_port directive (/dev/ttyUSB0) to the platformio.ini file to get the upload to work in the EX-T3-Wifi git directory and now Source Control in Code wants me to commit my change.
Do you know where I can add the upload_port directive in another place outside the git tree that will provide the directive globally?
Dave
Beta Was this translation helpful? Give feedback.
All reactions