kconfig for setting IDF params

GreenGiant
Posts: 28
Joined: Tue Sep 10, 2019 7:22 am

kconfig for setting IDF params

Postby GreenGiant » Tue Mar 16, 2021 12:27 pm

Question regarding kconfig and the menuconfig system.

I have a custom parameter in my project kconfig which can be "release" or "devboard".

The main point of this is on my product we are using UART0 on GPIO1,3 for communication to another device, then use UART1 on different pins for the normal console out (from ESP_LOGx... etc).

When I am doing dev work, using a devboard, it would be handy that when I have set the config "devboard", the common ESP parameters to use UART0 for the console on GPIO1,3 (the norm), rather than having to manually go in to menuconfig and change this.

I can handle the comms to the other device separately in the source code, so don't worry about that.

Is this possible?

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: kconfig for setting IDF params

Postby chegewara » Tue Mar 16, 2021 3:25 pm

Maybe i understand it wrong, but you have to go to menuconfig anyway to switch between devboard and release, so it is as easy as switch between UART0 and custom UART in menuconfig.

In theory it would be possible, but you would have to shadow copy this component in your project, i think

Code: Select all

components/esp_common (in v4.3 and earlier)
components/esp_system (in master)
and add option to take account to make use of your new Kconfig parameters.

Who is online

Users browsing this forum: Google [Bot] and 215 guests