Skip to content
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 menuconfig not showing serial ports (IDFGH-3024) #5051

Closed
1 of 3 tasks
luis-signalsecure opened this issue Apr 2, 2020 · 3 comments
Closed
1 of 3 tasks

idf menuconfig not showing serial ports (IDFGH-3024) #5051

luis-signalsecure opened this issue Apr 2, 2020 · 3 comments

Comments

@luis-signalsecure
Copy link

luis-signalsecure commented Apr 2, 2020

Environment

  • Development Kit: [none]
  • Module or chip used: [ESP32-WROOM-32D]
  • IDF version: v2.0.0.0_esp32-145-g408f0b3
  • Build System: [idf.py]
  • Compiler version: 8.2.0
  • Operating System: [Linux]
  • Using an IDE?: [No]
  • Power Supply: [USB]

Problem Description

idf.py menuconfig -> serial flasher config not showing port serial selector, baud rate or compress

Using esp-at code obtained from github, also tested with hello_world code

make menuconfig is working as it should

Expected Behavior

idf.py menuconfig -> serial flasher config shows the expected menu

Actual Behavior

idf.py menuconfig -> serial flasher config not showing the first 3 options

Steps to reproduce

install esp-idf
clone https://github.com/espressif/esp-at/
go to esp-at folder
export ESP_AT_PROJECT_PATH=$(pwd)
run idf.py menuconfig
go to serial flasher config
check serial port options not being there

Code to reproduce this issue

Debug Logs

Other items if possible

  • sdkconfig file (attach the sdkconfig file from your project folder)
  • elf file in the build folder (note this may contain all the code details and symbols of your project.)
  • coredump (This provides stacks of tasks.)
    sdkconfig.txt
@github-actions github-actions bot changed the title idf menuconfig not showing serial ports idf menuconfig not showing serial ports (IDFGH-3024) Apr 2, 2020
@igrr
Copy link
Member

igrr commented Apr 2, 2020

Hi @luis-signalsecure, in CMake build system (idf.py) serial port is no longer set in sdkconfig. This change was made mainly to avoid storing this computer-specific value inside sdkconfig file, when the project is shared by multiple developers and sdkconfig is checked into a git repository.

You can either pass the port using a -p argument of idf.py flash, or (to avoid typing it every time) set the port in the environment variable ESPPORT:

export ESPPORT=/dev/ttyUSB1

You may also automate the latter using tools such as direnv.

@luis-signalsecure
Copy link
Author

Understood, even if i don't totally agree... because it's a good feature, as it's necessary to set up even for a single developer, that's the thing, to be able to change it using the tool (with just a few "clicks"), it's easier to set it up under the build system than having every developer executing "workarounds" each time we need to flash.
Even if it's not uploaded to git, the developer will need to set it up, so there is not really a big difference about make it computer specific, because i mean, if the sdkconfig it's uploaded with or without the feature, it's required to change it and set it up, the difference is that it was easier through the idf tool, than remembering to set a specific env variable or writing parameters to the tool.

Even tho i'm not happy with the change, i'm agreed to close this issue, as it's behaving as expected, looks like i'm the only one that didn't know about the change, sorry about the trouble.

Thanks for your, really fast, support and help

@igrr igrr closed this as completed Apr 2, 2020
@sergioamr
Copy link

How do you make this thing work from VS Studio code?

ESPPORT on the environment doesn't seem to do anything. It gets the COM1 by default and I keep digging into the toolchain trying to find how to add the correct port.

I can flash by running manually the command.

python.exe esptool\esptool.py -p COM12 -b 115200 --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size detect 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 hello-world.bin

But the IDE option keeps running COM1.

Adding CONFIG_ESPTOOLPY_PORT="COM12" to the sdkconfig seems to be ignored too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants