You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently CMake-based ESP-IDF does not properly handle the ESPPORT environment variable.
It happens due to the following line in run_esptool.cmake:
if(NOT ENV{ESPPORT})
message("Note: esptool.py will search for a serial port. To specify a port, set the ESPPORT environment variable.")
else()
set(port_arg "-p $ENV{ESPPORT}")
endif()
As something like "COM1" is not a valid boolean expression from CMake's point of view, the "NOT" branch is taken even if the environment variable is set.
You can fix it by using the following check instead: if("$ENV{ESPPORT}" STREQUAL "")
The text was updated successfully, but these errors were encountered:
Alvin1Zhang
changed the title
ESPPORT not being forwarded properly
[TW#26745] ESPPORT not being forwarded properly
Oct 14, 2018
Currently CMake-based ESP-IDF does not properly handle the ESPPORT environment variable.
It happens due to the following line in run_esptool.cmake:
As something like "COM1" is not a valid boolean expression from CMake's point of view, the "NOT" branch is taken even if the environment variable is set.
You can fix it by using the following check instead:
if("$ENV{ESPPORT}" STREQUAL "")
The text was updated successfully, but these errors were encountered: