presetting at "make menuconfig"

AlexESP32
Posts: 65
Joined: Thu Oct 03, 2019 9:41 am

presetting at "make menuconfig"

Postby AlexESP32 » Sun Dec 08, 2019 6:18 pm

Hey guys,

I work with msys32 and the esp-idf, and I want to try a few example and sometimes I forget to change the Serial Port, that's very annoying... ;)
So my question is:
Is it possible to change the presettings for "menuconfig", wich file i have to change for that?

Thank you :)

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: presetting at "make menuconfig"

Postby ESP_Angus » Mon Dec 09, 2019 5:11 am

You can make a file "sdkconfig.defaults" which will set the default settings for a particular project, but you need to make one per project so it's probably not useful for what you're doing.

Better solution for serial port setting is to set an environment variable like this:

Code: Select all

export ESPPORT=COM20
Or pass it on the command line like this

Code: Select all

make -j4 flash monitor ESPPORT=COM20
In both cases, the envrionment variable overrides the port setting in menuconfig.

(Can also set ESPBAUD the same way, for the baud rate)

AlexESP32
Posts: 65
Joined: Thu Oct 03, 2019 9:41 am

Re: presetting at "make menuconfig"

Postby AlexESP32 » Mon Dec 09, 2019 5:32 am

Tank you very much 😊

Who is online

Users browsing this forum: dzungpv, jimmy98035@gmail.com and 109 guests