[Ovmsdev] ESP-IDF v4 / v5 - baby steps

Ludovic LANGE ll-ovmsdev at lange.nom.fr
Mon Feb 6 22:23:46 HKT 2023


Hi again,

Additionally, I've just verified that the official docker image for 
ESP-IDF (doc: 
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html 
) is able to build the branch.

The only thing to add to the image is the "dos2unix" utility ("apt 
update && apt-get install dos2unix"), after that you'll be able to build 
the image.

Do not forget to update your sdkconfig (enabling FreeRTOS compatibility 
and unchecking SSL for mongoose) before building, and to do the patches 
for mongoose / wolfssl as described here: 
https://github.com/llange/Open-Vehicle-Monitoring-System-3/blob/experimental-esp-idf-v5/README.md

Then "idf.py build" should work - at least !

I've used the `docker run --rm -v $PWD:/project -w /project -it 
espressif/idf:|release-v5.0|` command to have a shell prompt (launch 
that in your source file path)

Then install dos2unix, launch menuconfig, then build.

Tell me how it works for you.

(You may have some component build failure ; depending on the sdkconfig 
flags, I'm still trying to document it)

Regards,

Le 05/02/2023 à 20:37, Ludovic LANGE a écrit :
> "idf" dependency, as expressed in (new file) `main/idf_component.yml`, 
> is just ESP-IDF - this just checks that ESP-IDF is at minimum at 
> version 5.0
>
> This new file expresses the dependencies with new components (like a 
> `requirements.txt` in Python, `Gemfile` in Ruby, `package.json` in JS, 
> etc...), and they started to remove components from ESP-IDF and make 
> them available as external components.
> `mdns` is such a component : 
> https://components.espressif.com/components/espressif/mdns
>
> So I'm not 100% convinced it's related - but in any case you could 
> remove this file completely and see if it changes something (you 
> wouldn't be able to compile `mdns`-related components, but still make 
> some progress)
>
>
> Could you share the 3 log files please ?
>> See also 
>> "/home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/CMakeFiles/CMakeOutput.log".
>> cmake failed with exit code 1, output of the command is in the 
>> /home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/log/idf_py_stderr_output_8211 
>> and 
>> /home/balzer/esp/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/log/idf_py_stdout_output_8211
> Regards,
>
>
> Le 05/02/2023 à 16:43, Michael Balzer a écrit :
>> It's cmake version 3.20.4.
>>
>> As I wrote, everything works with the example project "hello_world".
>>
>> Apparently the error occurs while the builder checks the 
>> dependencies, specifically the "idf" dependency. Where does that 
>> originate from? "hello_world" does not need this.
>>
>> The checked out version is your branch llange/experimental-esp-idf-v5.
>>
>> Regards,
>> Michael
>>
>>
>> Am 05.02.23 um 15:45 schrieb Ludovic LANGE:
>>> Hi Michael,
>>>
>>> Sorry to hear you have issues but very happy that you're trying to 
>>> compile it ! We're going to solve those :-)
>>>
>>> I don't use this command `idf.py set-target esp32` myself - but 
>>> after trying it, it works as expected.
>>> (By the look of it, it says "Set Target to: esp32, new sdkconfig 
>>> created. Existing sdkconfig renamed to sdkconfig.old." so I would be 
>>> careful not to use it too much as you loose your sdkconfig)
>>>
>>> The only commands I'm using are:
>>>
>>>   * menuconfig (once in a while)
>>>   * fullclean (while switching ESP-IDF version ; also doing `rm -rf
>>>     build/`)
>>>   * clean (if some changes have been made and not caught by cmake)
>>>   * build (90% of the time)
>>>   * app-flash
>>>   * monitor
>>>
>>> My versions of git / bison / flex are (for the record):
>>>
>>>
>>> -- Found Git: /usr/local/bin/git (found version "2.39.1")
>>> -- The C compiler identification is GNU 11.2.0
>>> -- The CXX compiler identification is GNU 11.2.0
>>>
>>> ...
>>>
>>> -- Found BISON: /usr/bin/bison (found version "2.3")
>>> -- Found FLEX: /usr/bin/flex (found version "2.6.4")
>>>
>>> (I also had success with bison 3.8.2 so not an issue)
>>>
>>>
>>> and my cmake is : cmake version 3.25.2
>>> and ninja is at version 1.11.1
>>>
>>> I set a required version of cmake 3.16 in the main CMakeLists.txt, 
>>> as recommended by ESP-IDF v5 instructions, but if it's the issue we 
>>> can modify this.
>>> Could you please check your version and see if there is something to 
>>> try here ?
>>>
>>>
>>> During the `set-target esp32` run, my output is similar to yours but 
>>> continues:
>>>
>>>> Adding "set-target"'s dependency "fullclean" to list of commands 
>>>> with default set of options.
>>>> Executing action: fullclean
>>>> Executing action: set-target
>>>> Set Target to: esp32, new sdkconfig created. Existing sdkconfig 
>>>> renamed to sdkconfig.old.
>>>> Running cmake in directory SRCS/OVMS-wt2/vehicle/OVMS.V3/build
>>>> Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 
>>>> -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 SRCS/OVMS-wt2/vehicle/OVMS.V3"...
>>>> CMake Warning (dev) at CMakeLists.txt:8 (message):
>>>>   WARNING - OVMSv3 build is only supported on ESP-IDF 3.3.x
>>>> This warning is for project developers.  Use -Wno-dev to suppress it.
>>>>
>>>> -- Found Git: /usr/local/bin/git (found version "2.39.1")
>>>> -- The C compiler identification is GNU 11.2.0
>>>> -- The CXX compiler identification is GNU 11.2.0
>>>> -- The ASM compiler identification is GNU
>>>> -- Found assembler: 
>>>> SRCS/ESP-IDF-TOOLS/5.0/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
>>>> -- Detecting C compiler ABI info
>>>> -- Detecting C compiler ABI info - done
>>>> -- Check for working C compiler: 
>>>> SRCS/ESP-IDF-TOOLS/5.0/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc 
>>>> - skipped
>>>> -- Detecting C compile features
>>>> -- Detecting C compile features - done
>>>> -- Detecting CXX compiler ABI info
>>>> -- Detecting CXX compiler ABI info - done
>>>> -- Check for working CXX compiler: 
>>>> SRCS/ESP-IDF-TOOLS/5.0/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ 
>>>> - skipped
>>>> -- Detecting CXX compile features
>>>> -- Detecting CXX compile features - done
>>>> -- Building ESP-IDF components for target esp32
>>>> Processing 2 dependencies:
>>>> [1/2] espressif/mdns (1.0.7)
>>>> [2/2] idf (5.0.0)
>>>> -- Found BISON: /usr/bin/bison (found version "2.3")
>>>> -- Found FLEX: /usr/bin/flex (found version "2.6.4")
>>>> -- IDF Version: 5.0.0 - NOT enabling strverscmp
>>>> -- Project sdkconfig file SRCS/OVMS-wt2/vehicle/OVMS.V3/sdkconfig
>>>> -- Looking for sys/types.h
>>>> -- Looking for sys/types.h - found
>>>> -- Looking for stdint.h
>>>> -- Looking for stdint.h - found
>>>> -- Looking for stddef.h
>>>> -- Looking for stddef.h - found
>>>> -- Check size of time_t
>>>> -- Check size of time_t - done
>>>> -- Found Python3: 
>>>> SRCS/ESP-IDF-TOOLS/5.0/python_env/idf5.0_py3.10_env/bin/python 
>>>> (found version "3.10.9") found components: Interpreter
>>>> -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
>>>> -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
>>>> -- App "ovms3" version: 3.3.003-316-gcb90ef8c-dirty
>>>> -- Adding linker script 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/build/esp-idf/esp_system/ld/memory.ld
>>>> -- Adding linker script 
>>>> SRCS/ESP-IDF/5.0/components/esp_system/ld/esp32/sections.ld.in
>>>> -- Adding linker script 
>>>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.ld
>>>> -- Adding linker script 
>>>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.api.ld
>>>> -- Adding linker script 
>>>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
>>>> -- Adding linker script 
>>>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
>>>> -- Adding linker script 
>>>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
>>>> -- Adding linker script 
>>>> SRCS/ESP-IDF/5.0/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
>>>> -- Adding linker script 
>>>> SRCS/ESP-IDF/5.0/components/soc/esp32/ld/esp32.peripherals.ld
>>>> -- Adding linker script SRCS/OVMS-wt2/vehicle/OVMS.V3/main/ovms_boot.ld
>>>> -- wolfssl : EXCLUDE_ASM = 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/aes_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/aes_gcm_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/aes_gcm_x86_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/chacha_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/fe_x25519_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/poly1305_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-32-aes-asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-32-curve25519.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-32-sha256-asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-32-sha512-asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-curve25519.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-sha3-asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/port/arm/armv8-sha512-asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/sha256_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/sha3_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/sha512_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/sp_x86_64_asm.S;SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl/wolfssl/wolfcrypt/src/wc_kyber_asm.S
>>>> -- Found BISON: /usr/bin/bison (found version "2.3")
>>>> -- Found FLEX: /usr/bin/flex (found version "2.6.4")
>>>> -- Found Perl: /usr/local/bin/perl (found version "5.36.0")
>>>> -- IDF Version: 5.0.0 - NOT enabling strverscmp
>>>> -- Component idf::main will be linked with -Wl,--whole-archive
>>>> -- Component idf::pcp will be linked with -Wl,--whole-archive
>>>> -- Component idf::ovms_buffer will be linked with -Wl,--whole-archive
>>>> -- Component idf::can will be linked with -Wl,--whole-archive
>>>> -- Component idf::canopen will be linked with -Wl,--whole-archive
>>>> -- Component idf::wolfssl will be linked with -Wl,--whole-archive
>>>> -- Component idf::console_ssh will be linked with -Wl,--whole-archive
>>>> -- Component idf::console_telnet will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::crypto will be linked with -Wl,--whole-archive
>>>> -- Component idf::dbc will be linked with -Wl,--whole-archive
>>>> -- Component idf::esp32adc will be linked with -Wl,--whole-archive
>>>> -- Component idf::esp32bluetooth will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::esp32can will be linked with -Wl,--whole-archive
>>>> -- Component idf::esp32system will be linked with -Wl,--whole-archive
>>>> -- Component idf::esp32wifi will be linked with -Wl,--whole-archive
>>>> -- Component idf::ext12v will be linked with -Wl,--whole-archive
>>>> -- Component idf::max7317 will be linked with -Wl,--whole-archive
>>>> -- Component idf::mcp2515 will be linked with -Wl,--whole-archive
>>>> -- Component idf::microrl will be linked with -Wl,--whole-archive
>>>> -- Component idf::obd2ecu will be linked with -Wl,--whole-archive
>>>> -- Component idf::ovms_http will be linked with -Wl,--whole-archive
>>>> -- Component idf::ovms_location will be linked with -Wl,--whole-archive
>>>> -- Component idf::ovms_mdns will be linked with -Wl,--whole-archive
>>>> -- Component idf::ovms_netlib will be linked with -Wl,--whole-archive
>>>> -- Component idf::ovms_ota will be linked with -Wl,--whole-archive
>>>> -- Component idf::pushover will be linked with -Wl,--whole-archive
>>>> -- Component idf::ovms_webserver will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::ovms_plugins will be linked with -Wl,--whole-archive
>>>> -- Component idf::ovms_tls will be linked with -Wl,--whole-archive
>>>> -- Component idf::ovms_script will be linked with -Wl,--whole-archive
>>>> -- Component idf::ovms_server will be linked with -Wl,--whole-archive
>>>> -- Component idf::ovms_server_v2 will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::ovms_server_v3 will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::ovms_tpms will be linked with -Wl,--whole-archive
>>>> -- Component idf::powermgmt will be linked with -Wl,--whole-archive
>>>> -- Component idf::retools will be linked with -Wl,--whole-archive
>>>> -- Component idf::retools_pidscan will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::retools_testerpresent will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::sdcard will be linked with -Wl,--whole-archive
>>>> -- Component idf::simcom will be linked with -Wl,--whole-archive
>>>> -- Component idf::spi will be linked with -Wl,--whole-archive
>>>> -- Component idf::strverscmp will be linked with -Wl,--whole-archive
>>>> -- Component idf::swcan will be linked with -Wl,--whole-archive
>>>> -- Component idf::vehicle will be linked with -Wl,--whole-archive
>>>> -- Component idf::vehicle_bmwi3 will be linked with -Wl,--whole-archive
>>>> -- Component idf::vehicle_boltev will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_cadillac_c2_cts will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_chevrolet_c6_corvette will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_dbc will be linked with -Wl,--whole-archive
>>>> -- Component idf::vehicle_demo will be linked with -Wl,--whole-archive
>>>> -- Component idf::vehicle_fiat500 will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_hyundai_ioniq5 will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_hyundai_ioniqvfl will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_jaguaripace will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_kianiroev will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_kiasoulev will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_maxus_edeliver3 will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_mercedesb250e will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_mgev will be linked with -Wl,--whole-archive
>>>> -- Component idf::vehicle_minise will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_mitsubishi will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_nissanleaf will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_none will be linked with -Wl,--whole-archive
>>>> -- Component idf::vehicle_obdii will be linked with -Wl,--whole-archive
>>>> -- Component idf::vehicle_renaulttwizy will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_renaultzoe will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_renaultzoe_ph2_obd will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_smarted will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_smarteq will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_teslamodel3 will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_teslamodels will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_teslaroadster will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_thinkcity will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_toyotarav4ev will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_track will be linked with -Wl,--whole-archive
>>>> -- Component idf::vehicle_voltampera will be linked with 
>>>> -Wl,--whole-archive
>>>> -- Component idf::vehicle_vweup will be linked with -Wl,--whole-archive
>>>> -- Component idf::vehicle_zeva will be linked with -Wl,--whole-archive
>>>> -- Component idf::vfsedit will be linked with -Wl,--whole-archive
>>>> -- Component idf::zip will be linked with -Wl,--whole-archive
>>>> -- Components: app_trace app_update bootloader bootloader_support 
>>>> bt can canopen cmock console console_ssh console_telnet crypto cxx 
>>>> dbc driver duktape efuse esp-tls esp32adc esp32bluetooth esp32can 
>>>> esp32system esp32wifi esp_adc esp_app_format esp_common esp_eth 
>>>> esp_event esp_gdbstub esp_hid esp_http_client esp_http_server 
>>>> esp_https_ota esp_https_server esp_hw_support esp_lcd 
>>>> esp_local_ctrl esp_netif esp_partition esp_phy esp_pm esp_psram 
>>>> esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump 
>>>> espressif__mdns esptool_py ext12v fatfs freertos hal heap 
>>>> http_parser idf_test ieee802154 json libtelnet log lwip main 
>>>> max7317 mbedtls mcp2515 microrl mongoose mqtt newlib nvs_flash 
>>>> obd2ecu openthread ovms_buffer ovms_cellular ovms_http 
>>>> ovms_location ovms_mdns ovms_netlib ovms_ota ovms_plugins 
>>>> ovms_script ovms_server ovms_server_v2 ovms_server_v3 ovms_tls 
>>>> ovms_tpms ovms_webserver partition_table pcp perfmon powermgmt 
>>>> protobuf-c protocomm pthread pushover retools retools_pidscan 
>>>> retools_testerpresent sdcard sdmmc simcom soc spi spi_flash spiffs 
>>>> strverscmp swcan tcp_transport ulp unity usb vehicle vehicle_bmwi3 
>>>> vehicle_boltev vehicle_cadillac_c2_cts 
>>>> vehicle_chevrolet_c6_corvette vehicle_dbc vehicle_demo 
>>>> vehicle_fiat500 vehicle_hyundai_ioniq5 vehicle_hyundai_ioniqvfl 
>>>> vehicle_jaguaripace vehicle_kianiroev vehicle_kiasoulev 
>>>> vehicle_maxus_edeliver3 vehicle_mercedesb250e vehicle_mgev 
>>>> vehicle_minise vehicle_mitsubishi vehicle_nissanleaf vehicle_none 
>>>> vehicle_obdii vehicle_renaulttwizy vehicle_renaultzoe 
>>>> vehicle_renaultzoe_ph2_obd vehicle_smarted vehicle_smarteq 
>>>> vehicle_teslamodel3 vehicle_teslamodels vehicle_teslaroadster 
>>>> vehicle_thinkcity vehicle_toyotarav4ev vehicle_track 
>>>> vehicle_voltampera vehicle_vweup vehicle_zeva vfs vfsedit 
>>>> wear_levelling wifi_provisioning wolfssh wolfssl wpa_supplicant 
>>>> xtensa zip
>>>> -- Component paths: SRCS/ESP-IDF/5.0/components/app_trace 
>>>> SRCS/ESP-IDF/5.0/components/app_update 
>>>> SRCS/ESP-IDF/5.0/components/bootloader 
>>>> SRCS/ESP-IDF/5.0/components/bootloader_support 
>>>> SRCS/ESP-IDF/5.0/components/bt 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/can 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/canopen 
>>>> SRCS/ESP-IDF/5.0/components/cmock 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/console 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/console_ssh 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/console_telnet 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/crypto 
>>>> SRCS/ESP-IDF/5.0/components/cxx 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/dbc 
>>>> SRCS/ESP-IDF/5.0/components/driver 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/duktape 
>>>> SRCS/ESP-IDF/5.0/components/efuse 
>>>> SRCS/ESP-IDF/5.0/components/esp-tls 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/esp32adc 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/esp32bluetooth 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/esp32can 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/esp32system 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/esp32wifi 
>>>> SRCS/ESP-IDF/5.0/components/esp_adc 
>>>> SRCS/ESP-IDF/5.0/components/esp_app_format 
>>>> SRCS/ESP-IDF/5.0/components/esp_common 
>>>> SRCS/ESP-IDF/5.0/components/esp_eth 
>>>> SRCS/ESP-IDF/5.0/components/esp_event 
>>>> SRCS/ESP-IDF/5.0/components/esp_gdbstub 
>>>> SRCS/ESP-IDF/5.0/components/esp_hid 
>>>> SRCS/ESP-IDF/5.0/components/esp_http_client 
>>>> SRCS/ESP-IDF/5.0/components/esp_http_server 
>>>> SRCS/ESP-IDF/5.0/components/esp_https_ota 
>>>> SRCS/ESP-IDF/5.0/components/esp_https_server 
>>>> SRCS/ESP-IDF/5.0/components/esp_hw_support 
>>>> SRCS/ESP-IDF/5.0/components/esp_lcd 
>>>> SRCS/ESP-IDF/5.0/components/esp_local_ctrl 
>>>> SRCS/ESP-IDF/5.0/components/esp_netif 
>>>> SRCS/ESP-IDF/5.0/components/esp_partition 
>>>> SRCS/ESP-IDF/5.0/components/esp_phy 
>>>> SRCS/ESP-IDF/5.0/components/esp_pm 
>>>> SRCS/ESP-IDF/5.0/components/esp_psram 
>>>> SRCS/ESP-IDF/5.0/components/esp_ringbuf 
>>>> SRCS/ESP-IDF/5.0/components/esp_rom 
>>>> SRCS/ESP-IDF/5.0/components/esp_system 
>>>> SRCS/ESP-IDF/5.0/components/esp_timer 
>>>> SRCS/ESP-IDF/5.0/components/esp_wifi 
>>>> SRCS/ESP-IDF/5.0/components/espcoredump 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/managed_components/espressif__mdns 
>>>> SRCS/ESP-IDF/5.0/components/esptool_py 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ext12v 
>>>> SRCS/ESP-IDF/5.0/components/fatfs 
>>>> SRCS/ESP-IDF/5.0/components/freertos 
>>>> SRCS/ESP-IDF/5.0/components/hal SRCS/ESP-IDF/5.0/components/heap 
>>>> SRCS/ESP-IDF/5.0/components/http_parser 
>>>> SRCS/ESP-IDF/5.0/components/idf_test 
>>>> SRCS/ESP-IDF/5.0/components/ieee802154 
>>>> SRCS/ESP-IDF/5.0/components/json 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/libtelnet 
>>>> SRCS/ESP-IDF/5.0/components/log SRCS/ESP-IDF/5.0/components/lwip 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/main 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/max7317 
>>>> SRCS/ESP-IDF/5.0/components/mbedtls 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/mcp2515 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/microrl 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/mongoose 
>>>> SRCS/ESP-IDF/5.0/components/mqtt SRCS/ESP-IDF/5.0/components/newlib 
>>>> SRCS/ESP-IDF/5.0/components/nvs_flash 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/obd2ecu 
>>>> SRCS/ESP-IDF/5.0/components/openthread 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_buffer 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_cellular 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_http 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_location 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_mdns 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_netlib 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_ota 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_plugins 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_script 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_server 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_server_v2 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_server_v3 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_tls 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_tpms 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/ovms_webserver 
>>>> SRCS/ESP-IDF/5.0/components/partition_table 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/pcp 
>>>> SRCS/ESP-IDF/5.0/components/perfmon 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/powermgmt 
>>>> SRCS/ESP-IDF/5.0/components/protobuf-c 
>>>> SRCS/ESP-IDF/5.0/components/protocomm 
>>>> SRCS/ESP-IDF/5.0/components/pthread 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/pushover 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/retools 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/retools_pidscan 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/retools_testerpresent 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/sdcard 
>>>> SRCS/ESP-IDF/5.0/components/sdmmc 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/simcom 
>>>> SRCS/ESP-IDF/5.0/components/soc 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/spi 
>>>> SRCS/ESP-IDF/5.0/components/spi_flash 
>>>> SRCS/ESP-IDF/5.0/components/spiffs 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/strverscmp 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/swcan 
>>>> SRCS/ESP-IDF/5.0/components/tcp_transport 
>>>> SRCS/ESP-IDF/5.0/components/ulp SRCS/ESP-IDF/5.0/components/unity 
>>>> SRCS/ESP-IDF/5.0/components/usb 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_bmwi3 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_boltev 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_cadillac_c2_cts 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_chevrolet_c6_corvette 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_dbc 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_demo 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_fiat500 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_hyundai_ioniq5 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_hyundai_ioniqvfl 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_jaguaripace 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_kianiroev 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_kiasoulev 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_maxus_edeliver3 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_mercedesb250e 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_mgev 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_minise 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_mitsubishi 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_nissanleaf 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_none 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_obdii 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_renaulttwizy 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_renaultzoe 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_renaultzoe_ph2_obd 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_smarted 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_smarteq 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_teslamodel3 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_teslamodels 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_teslaroadster 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_thinkcity 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_toyotarav4ev 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_track 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_voltampera 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_vweup 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vehicle_zeva 
>>>> SRCS/ESP-IDF/5.0/components/vfs 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/vfsedit 
>>>> SRCS/ESP-IDF/5.0/components/wear_levelling 
>>>> SRCS/ESP-IDF/5.0/components/wifi_provisioning 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssh 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/wolfssl 
>>>> SRCS/ESP-IDF/5.0/components/wpa_supplicant 
>>>> SRCS/ESP-IDF/5.0/components/xtensa 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/components/zip
>>>> -- Configuring done
>>>> -- Generating done
>>>> -- Build files have been written to: 
>>>> SRCS/OVMS-wt2/vehicle/OVMS.V3/build
>>>
>>> So the next line that should have been printed, instead of the 
>>> error, would have been:
>>>> -- Project sdkconfig file SRCS/OVMS-wt2/vehicle/OVMS.V3/sdkconfig
>>>
>>> Could you check that your env variable `IDF_PATH` is pointing to the 
>>> proper copy of ESP-IDF (v5 then) ? It's currently set to 
>>> `/home/balzer/esp/esp-idf`.
>>>
>>> (The main CMakeLists.txt includes 
>>> `$ENV{IDF_PATH}/tools/cmake/project.cmake`)
>>>
>>> The important env variables for ESP-IDF would be:
>>>
>>>   * CMAKE_COLOR_DIAGNOSTICS set to 1 to have beautiful error messages
>>>   * ESPBAUD set to 921600
>>>   * ESPPORT set to your usb device (mine is /dev/cu.usbserial-0001)
>>>   * ESP_IDF_VERSION (5.0 here)
>>>   * IDF_PATH should be set to the proper 5.0 root
>>>   * IDF_TOOLS_EXPORT_CMD on my installation is equivalent to
>>>     $IDF_PATH/export.sh
>>>   * IDF_TOOLS_INSTALL_CMD on my installation is equivalent to
>>>     $IDF_PATH/install.sh
>>>   * IDF_TOOLS_PATH should be set to proper 5.0 tools root
>>>   * IDF_PYTHON_ENV_PATH on my installation is equivalent to
>>>     $IDF_TOOLS_PATH/python_env/idf5.0_py3.10_env
>>>   * OPENOCD_SCRIPTS on my installation is equivalent to
>>>     $IDF_TOOLS_PATH/tools/openocd-esp32/v0.11.0-esp32-20221026/openocd-esp32/share/openocd/scripts
>>>     and
>>>   * PATH which should include a few occurrences of $IDF_PATH and
>>>     $IDF_TOOLS_PATH
>>>
>>> All of them should be automatically set it you have installed per 
>>> the docs, and the fact that "hello_world" compiles is a good 
>>> indicator that it was OK on your install , but double-checking is 
>>> always interesting.
>>>
>>>
>>>
>>> Let me know the result of your checks.
>>>
>>>
>>> Regards,
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20230206/1d87aacc/attachment-0001.htm>


More information about the OvmsDev mailing list