-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
idf_monitor does not respect port setting when flashing (IDFGH-2479) #4591
Comments
I just noticed that when reversing the order of the arguments to |
Hi @KloolK. Yes you're right and flashing from IDF monitor should use the port specified for monitor. We already noticed this issue and the fix is under way. This GH issue will be closed when the fix gets pushed to GH.
No, this is the intended behavior. Arguments after For example,
Also, |
@KloolK Thanks for reporting and sorry for the slow turnaround. Really appreciate your patience in waiting for the fix. The fix has been merged internally in our repo. and this issue will be automatically closed when the fix lands on Github. For your information. Thanks. |
This commit make idf_monitor overwrite the ESPPORT environment variable with the port it's using, and re-run make with the modified environment variable. In this way, the make invoked will inherit the idf_monitor's port. Closes espressif/esp-idf#4591
Environment
Problem Description
I am using two Heltec WiFi LoRa 32 (V2) connected to the same PC (/dev/ttyUSB0 and /dev/ttyUSB1). I open the monitor with the following command:
idf.py monitor -p /dev/ttyUSBx
with x = 0 and x = 1 in a second terminal.I use Ctrl+T, Ctrl+A/Ctrl+F to build and flash.
Expected Behavior
The code is rebuilt and flashed to the device connected to the port specified with the
-p
switch.Actual Behavior
The code is rebuilt and always flashed to the device on port
/dev/ttyUSB1
. The-p
setting is ignored.Steps to reproduce
idf.py monitor -p /dev/ttyUSB0
idf.py monitor -p /dev/ttyUSB1
/dev/ttyUSB0
./dev/ttyUSB1
)Code to reproduce this issue
Any project.
Debug Logs
No crashes.
Other items if possible
N/A
The text was updated successfully, but these errors were encountered: