Page 1 of 1

why example sdkconfig file always revocer to default

Posted: Tue Nov 29, 2016 9:03 am
by wziy520
1. I want make my example, and e.g. modify 01_helloword sdkconfig file and add example part of 02_blink,
I add below to 01 example,

#
# Example Configuration
#
CONFIG_BLINK_GPIO=5

but the config file recover to default and after type make, and make menuconfig can't load the "example configuration"
please give advise.

Re: why example sdkconfig file always revocer to default

Posted: Tue Nov 29, 2016 12:15 pm
by ESP_Sprite
The blink GPIO configuration option is custom to the blink example, and is defined in examples/02_blink/main/Kconfig.projbuild and used in the code that blinks the LED in examples/02_blink/main/main.c. It does not make any sense in the 01_hello example: there is no code that uses it and there is no Kconfig code that defines what CONFIG_BLINK_GPIO is and how it should show up in the make menuconfig menu. That is why the program interpreting the sdkconfig file decides to throw it away.

Re: why example sdkconfig file always revocer to default

Posted: Wed Nov 30, 2016 9:54 am
by wziy520
@esp_sprite,

Thanks, it has been fixed.