why example sdkconfig file always revocer to default

wziy520
Posts: 42
Joined: Thu Nov 10, 2016 7:58 am

why example sdkconfig file always revocer to default

Postby wziy520 » Tue Nov 29, 2016 9:03 am

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.

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: why example sdkconfig file always revocer to default

Postby ESP_Sprite » Tue Nov 29, 2016 12:15 pm

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.

wziy520
Posts: 42
Joined: Thu Nov 10, 2016 7:58 am

Re: why example sdkconfig file always revocer to default

Postby wziy520 » Wed Nov 30, 2016 9:54 am

@esp_sprite,

Thanks, it has been fixed.

Who is online

Users browsing this forum: No registered users and 76 guests