hidden menu item of idf.py menuconfig
hidden menu item of idf.py menuconfig
This is newbie question, sorry. But I could not find this topic.
I could not find the spiram setting menu item in idf.py menuconfig under esp32-cam/example subdirectories.
I removed those all related files
* sdkconfig
* sdkconfig.defaults
* build/
Though, the spiram related menu item were stayed hidden. But under the esp-idf example folder, they are exist.
What files control this? Could you give some hint to solve?
(I could not find significant files with the command 'grep -r SPIRAM * under esp32-camera folder)
I could not find the spiram setting menu item in idf.py menuconfig under esp32-cam/example subdirectories.
I removed those all related files
* sdkconfig
* sdkconfig.defaults
* build/
Though, the spiram related menu item were stayed hidden. But under the esp-idf example folder, they are exist.
What files control this? Could you give some hint to solve?
(I could not find significant files with the command 'grep -r SPIRAM * under esp32-camera folder)
Re: hidden menu item of idf.py menuconfig
PSRAM settings come under
Component config > ESP PSRAM
Component config > ESP PSRAM
Re: hidden menu item of idf.py menuconfig
There is no menu even if pressing 'A'.
Hiding perfectrly under esp32-camera/example/camera_example folder after removing
sdkconfig.defaults.
But under the esp-idf/example folder(such as softap) having nothing to do with `esp32-camera`,
I can see the menu again.
This is very strange behavior. That's why I posted previously.
What esp-idf related files decide the menu item hide/show properties of menuconfig?
Hiding perfectrly under esp32-camera/example/camera_example folder after removing
sdkconfig.defaults.
But under the esp-idf/example folder(such as softap) having nothing to do with `esp32-camera`,
I can see the menu again.
This is very strange behavior. That's why I posted previously.
What esp-idf related files decide the menu item hide/show properties of menuconfig?
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: hidden menu item of idf.py menuconfig
You can search for an option using the '/' key; this also shows invisible options. If you then press enter on the one you want (it'll then show up in red if you otherwise wouldn't be able to see it) you can press '?' and see what the option depends on. You can generally use that to chase down what the issue is.
-
- Posts: 1734
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: hidden menu item of idf.py menuconfig
Various Kconfig files, from the IDF, components and the application, are pulled together into menuconfig.
Inside the Kconfig files, conditions are defined enabling, disabling, or defaulting settings depending on SoC capabilities and other Kconfig items (possibly also Cmake-defined values?).
The settings made in menuconfig are stored in sdkconfig, but sdkconfig itself does nothing to enable/disable options.
Which ESP32 are you using?
Did you idf.py set-target first? (Settings will be hidden when the config system sees that the currently set target SoC doesn't support them...)
Re: hidden menu item of idf.py menuconfig
After 'idf.py fullclean' and removing sdkconfig, sdkconfig.defaults, and build/,
then 'idf.py set-target esp32', I got,
```
:
Executing action: set-target
Set Target to: esp32, new sdkconfig will be created.
:
```
But misterious 'SoC' target was selected in sdkconfig as follows,
```
:
CONFIG_SOC_BROWNOUT_RESET_SUPPORTED="Not determined"
CONFIG_SOC_TWAI_BRP_DIV_SUPPORTED="Not determined"
:
```
idf.py --list-targets sayes
```
esp32
esp32s2
esp32c3
esp32s3
esp32c2
esp32c6
esp32h2
```
What is 'SoC' target? Why was this target selected?
then 'idf.py set-target esp32', I got,
```
:
Executing action: set-target
Set Target to: esp32, new sdkconfig will be created.
:
```
But misterious 'SoC' target was selected in sdkconfig as follows,
```
:
CONFIG_SOC_BROWNOUT_RESET_SUPPORTED="Not determined"
CONFIG_SOC_TWAI_BRP_DIV_SUPPORTED="Not determined"
:
```
idf.py --list-targets sayes
```
esp32
esp32s2
esp32c3
esp32s3
esp32c2
esp32c6
esp32h2
```
What is 'SoC' target? Why was this target selected?
-
- Posts: 1734
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: hidden menu item of idf.py menuconfig
The lines from sdkconfig you show don't say anything about which target was set.But misterious 'SoC' target was selected in sdkconfig as follows,
...
Why was this target selected?
What you're looking for in sdkconfig is "CONFIG_IDF_TARGET" and/or "CONFIG_IDF_TARGET_ESP32".
If these are not as expected, you can try to set-target and then also set the IDF_TARGET environment variable before running menuconfig.
"SoC", i.e. "System-on-a-Chip", is the shorthand often used to refer to the ESP chip. In this context, it refers to the 'target' chip, i.e. the ESP variant like ESP32, ESP32-S3,...What is 'SoC' target?
Re: hidden menu item of idf.py menuconfig
I'm sorry. Acutual sdkconfig excerpt is as follows:MicroController wrote: ↑Wed Feb 14, 2024 12:23 pmThe lines from sdkconfig you show don't say anything about which target was set.
What you're looking for in sdkconfig is "CONFIG_IDF_TARGET" and/or "CONFIG_IDF_TARGET_ESP32".
Code: Select all
CONFIG_IDF_TARGET="esp32"
CONFIG_IDF_INIT_VERSION="5.3.0"
CONFIG_IDF_TARGET_ESP32=y
And I noticed there were so menu item decreasing in the esp32-camera related project even if I selected the same esp32
target.
And menu items are depended on the file 'kconfigs.in' under build folder of project.
I would like to enable SPIRAM in the project, though, I don't understand how to enable it because there is no menu item in the menuconfig menu.
-
- Posts: 1
- Joined: Tue Mar 05, 2024 10:49 pm
Re: hidden menu item of idf.py menuconfig
I was struggling with the same issue today: several menu items were missing under "Component config", among those the "ESP PSRAM" which I needed to set up. But when I checked some sample projects from esp-idf, everything was there. Very weird, huh?
It turned out the problem was in the main CMakeLists.txt, which I created from "esp32-camera" project example, i.e.:
This is how my CMakeLists.txt created by the above command looked like:
The culprit was set(COMPONENTS main) line. After commenting it out, I can now see all items in the menuconfig.
Hope this helps someone!
It turned out the problem was in the main CMakeLists.txt, which I created from "esp32-camera" project example, i.e.:
Code: Select all
idf.py create-project-from-example "espressif/esp32-camera:camera_example"
Code: Select all
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(COMPONENTS main)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(camera_example)
Hope this helps someone!
-
- Posts: 5
- Joined: Sat Aug 17, 2024 6:06 pm
Re: hidden menu item of idf.py menuconfig
Hi, i have same issue, but is only on Ubuntu system and works in windows system.
on Ubuntu, with ESP-IDF 5.3.1 with clean install don't works
on Windows with same ESP-IDF 5.3.1 with clean install idf.py Menuconfig show many options.
I try to import form window into ubuntu sdkconfig sdkconfig.ci and sdkconfig.old correctly configured form windows , but menuconfig don't show same parameter.
i insert screenshot of menuconfig with same esp32-s3 module correctly connect.
any idea ?
Best Regards
on Ubuntu, with ESP-IDF 5.3.1 with clean install don't works
on Windows with same ESP-IDF 5.3.1 with clean install idf.py Menuconfig show many options.
I try to import form window into ubuntu sdkconfig sdkconfig.ci and sdkconfig.old correctly configured form windows , but menuconfig don't show same parameter.
i insert screenshot of menuconfig with same esp32-s3 module correctly connect.
any idea ?
Best Regards
- Attachments
-
- menuconfig on windows for esp32-s3
- Sviluppo Windows 11 x64-2024-10-20-20-59-08.png (320.16 KiB) Viewed 771 times
-
- menuconfig on ubuntu for esp32-s3
- New Devel Ubuntu-2024-10-20-20-57-20.png (279.05 KiB) Viewed 771 times
Who is online
Users browsing this forum: atx823, Bing [Bot], MicroController and 162 guests