Update to 3.0 sdkconfig issue

BrettG
Posts: 29
Joined: Wed Feb 15, 2017 7:32 pm

Update to 3.0 sdkconfig issue

Postby BrettG » Thu Apr 26, 2018 10:04 pm

Hi, I tried updating from v2.1 to v3.0 and I am running into issues compiling after the fact.

I completely deleted the previous idf and used the following command to get the new esp-idf:

Code: Select all

git clone https://github.com/espressif/esp-idf.git esp-idf-v3.0
cd esp-idf-v3.0/
git checkout v3.0
git submodule update --init --recursive
Afterwards I used make menuconfig to update sdkconfig and make clean to remove any outdated references.

Whenever I try to compile with make I get:

Code: Select all

CC build/app_update/esp_ota_ops.o
In file included from C:/msys32_new3/home/bgoldbach/Git/esp-idf/components/app_update/esp_ota_ops.c:37:0:
C:/msys32_new3/home/bgoldbach/Git/esp-idf/components/app_update/esp_ota_ops.c: In function 'esp_ota_write':
C:/msys32_new3/home/bgoldbach/Git/esp-idf/components/log/include/esp_log.h:224:45: error: 'CONFIG_LOG_DEFAULT_LEVEL' undeclared (first use in this function)
 #define LOG_LOCAL_LEVEL  ((esp_log_level_t) CONFIG_LOG_DEFAULT_LEVEL)
                                             ^
From what I gathered it looks like there should be an option for CONFIG_LOG_DEFAULT_LEVEL in the sdkconfig/make menuconfig but I can find it anywhere.

Any help is greatly appreciated.
- BrettG

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

Re: Update to 3.0 sdkconfig issue

Postby ESP_Angus » Thu Apr 26, 2018 10:58 pm

Hi BrettG,

Thanks for the detailed description of the problem you're seeing.

CONFIG_LOG_DEFAULT_LEVEL is defined here, as part of IDF's log component (the "CONFIG_" prefixes get automatically added later). This config item was also defined in IDF v2.1.

Can you please check if this entry is in your sdkconfig file? (One way to do this on the MSYS2 command line is to run "grep LOG_DEFAULT_LEVEL sdkconfig")

If you run make menuconfig, do you see a "Component config" -> "Log output" submenu? If you don't, the log component from IDF isn't being included in your project for some unusual reason.

If you do see the "Log output" submenu but still get this error, can you please try two things:

1) Delete the entire build directory ("rm -r build" will do it) and see if this fixes anything. This should not be necessary, but it may be if something has gone awry.
2) If this doesn't help, please post the full output from "make V=1" (you can copy all the make output to a file by running "make V=1 2>&1 | tee build.log"). This will be a lot to post in the forum so please use a service like https://pastebin.com or https://gist.github.com/ and then paste the link in your post.

BrettG
Posts: 29
Joined: Wed Feb 15, 2017 7:32 pm

Re: Update to 3.0 sdkconfig issue

Postby BrettG » Fri Apr 27, 2018 1:26 pm

Running "grep LOG_DEFAULT_LEVEL sdkconfig" did not return anything.

And I do not see "Component config" -> "Log output" sub menu in make menuconfig.

Any idea on how to fix this? I have removed and cloned esp-idf multiple times and also used the release .zip to no avail.

BrettG
Posts: 29
Joined: Wed Feb 15, 2017 7:32 pm

Re: Update to 3.0 sdkconfig issue

Postby BrettG » Mon Apr 30, 2018 2:52 pm

It looks like the release for 3.0 on github doesn't have the complete .zip file with esp-idf, .git, and submodules. There is only the source code.

Since I am having issues with cloning the new esp-idf can you please update the assets on the release to include the complete .zip ans we can see if that works instead?

Thanks,
- BrettG

BrettG
Posts: 29
Joined: Wed Feb 15, 2017 7:32 pm

Re: Update to 3.0 sdkconfig issue

Postby BrettG » Fri May 04, 2018 2:25 pm

Obtaining the correct release .zip was unsuccessful in fixing the issue.

I ran make list-components and got:

Code: Select all

$ make list-components
*******************************************************************************
COMPONENT_DIRS (components searched for here)
/home/bgoldbach/Git/device_stub/components
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components
/home/bgoldbach/Git/device_stub/main
*******************************************************************************
COMPONENTS (list of component names)
app_trace app_update aws_iot bootloader bootloader_support bt coap console cxx d                                                    river esp32 esp_adc_cal esptool_py ethernet expat fatfs freertos heap idf_test j                                                    smn json libsodium log lwip main mbedtls mdns micro-ecc newlib nghttp nvs_flash                                                     openssl partition_table pthread sdmmc soc spi_flash spiffs tcpip_adapter ulp vfs                                                     wear_levelling wpa_supplicant xtensa-debug-module
*******************************************************************************
COMPONENT_PATHS (paths to all components):
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/app_trace
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/app_update
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/aws_iot
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/bootloader
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/bootloader_support
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/bt
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/coap
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/console
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/cxx
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/driver
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/esp32
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/esp_adc_cal
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/esptool_py
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/ethernet
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/expat
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/fatfs
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/freertos
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/heap
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/idf_test
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/jsmn
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/json
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/libsodium
/home/bgoldbach/Git/device_stub/log
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/lwip
/home/bgoldbach/Git/device_stub/main
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/mbedtls
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/mdns
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/micro-ecc
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/newlib
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/nghttp
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/nvs_flash
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/openssl
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/partition_table
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/pthread
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/sdmmc
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/soc
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/spi_flash
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/spiffs
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/tcpip_adapter
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/ulp
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/vfs
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/wear_levelling
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/wpa_supplicant
/c/msys32_new3/home/bgoldbach/Git/esp-idf/components/xtensa-debug-module
For some reason the log component is being looked for in my project directory (/home/bgoldbach/Git/device_stub/log doesnt even exist).

Where can I go to correct this path to the esp-idf path?

Thanks,
- Brett

BrettG
Posts: 29
Joined: Wed Feb 15, 2017 7:32 pm

Re: Update to 3.0 sdkconfig issue

Postby BrettG » Fri May 04, 2018 2:58 pm

I think I fixed it.

I had to go to esp-idf/make/project.mk and make the following change:

COMPONENT_DIRS := $(PROJECT_PATH)/components $(EXTRA_COMPONENT_DIRS) $(IDF_PATH)/components $(PROJECT_PATH)/main
to
COMPONENT_DIRS := $(IDF_PATH)/components $(PROJECT_PATH)/components $(EXTRA_COMPONENT_DIRS) $(PROJECT_PATH)/main

Simply moving the $(IDF_PATH)/components to the front of the assignment of COMPONENT_DIRS.

- Brett

Who is online

Users browsing this forum: No registered users and 98 guests