Code Monkey home page Code Monkey logo

esp32olcbio's People

Contributors

atanisoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

esp32olcbio's Issues

Cannot build with esp-idf 4.4

I cant build firmware with esp-idf 4.4. Looks like dependencies don't match.

`
bash-5.2$ idf.py menuconfig
Executing action: menuconfig
Running ninja in directory /Users/utement/Projects/esp/Esp32OlcbIO/firmware/build
Executing "ninja menuconfig"...
[0/1] cd /Users/utement/Projects/esp/Esp32OlcbIO/firmware/build && /Users/utement/.espressif/python_env/idf5....F_TARGET=esp32 --env IDF_ENV_FPGA= --output config /Users/utement/Projects/esp/Esp32OlcbIO/firmware/sdkconfig
Loading defaults file /Users/utement/Projects/esp/Esp32OlcbIO/firmware/sdkconfig.defaults...
/Users/utement/Projects/esp/Esp32OlcbIO/firmware/sdkconfig.defaults:102 CONFIG_ESP_TASK_WDT was replaced with CONFIG_ESP_TASK_WDT_INIT
TERM environment variable is set to "xterm-256color"
/Users/utement/.espressif/python_env/idf5.0_py3.10_env/lib/python3.10/site-packages/menuconfig.py: /Users/utement/Projects/esp/esp-idf-5.0/components/esp_psram/./esp32/Kconfig.spiram:62: '/Users/utement/Projects/esp/esp-idf-4.4/components/esp_psram/Kconfig.spiram.common' not found (in 'source "$IDF_PATH/components/esp_psram/Kconfig.spiram.common" # insert non-chip-specific items here'). Check that environment variables are set correctly (e.g. $srctree, which is unset or blank). Also note that unset environment variables expand to the empty string.
FAILED: CMakeFiles/menuconfig /Users/utement/Projects/esp/Esp32OlcbIO/firmware/build/CMakeFiles/menuconfig
cd /Users/utement/Projects/esp/Esp32OlcbIO/firmware/build && /Users/utement/.espressif/python_env/idf5.0_py3.10_env/bin/python /Users/utement/Projects/esp/esp-idf-5.0/tools/kconfig_new/prepare_kconfig_files.py --list-separator=semicolon --env-file /Users/utement/Projects/esp/Esp32OlcbIO/firmware/build/config.env && /Users/utement/.espressif/python_env/idf5.0_py3.10_env/bin/python /Users/utement/Projects/esp/esp-idf-5.0/tools/kconfig_new/confgen.py --list-separator=semicolon --kconfig /Users/utement/Projects/esp/esp-idf-5.0/Kconfig --sdkconfig-rename /Users/utement/Projects/esp/esp-idf-5.0/sdkconfig.rename --config /Users/utement/Projects/esp/Esp32OlcbIO/firmware/sdkconfig --defaults /Users/utement/Projects/esp/Esp32OlcbIO/firmware/sdkconfig.defaults --env-file /Users/utement/Projects/esp/Esp32OlcbIO/firmware/build/config.env --env IDF_TARGET=esp32 --env IDF_ENV_FPGA= --dont-write-deprecated --output config /Users/utement/Projects/esp/Esp32OlcbIO/firmware/sdkconfig && /Users/utement/.espressif/python_env/idf5.0_py3.10_env/bin/python /Users/utement/Projects/esp/esp-idf-5.0/tools/check_term.py && /opt/local/bin/cmake -E env COMPONENT_KCONFIGS_SOURCE_FILE=/Users/utement/Projects/esp/Esp32OlcbIO/firmware/build/kconfigs.in COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE=/Users/utement/Projects/esp/Esp32OlcbIO/firmware/build/kconfigs_projbuild.in KCONFIG_CONFIG=/Users/utement/Projects/esp/Esp32OlcbIO/firmware/sdkconfig IDF_TARGET=esp32 IDF_ENV_FPGA= /Users/utement/.espressif/python_env/idf5.0_py3.10_env/bin/python -m menuconfig /Users/utement/Projects/esp/esp-idf-5.0/Kconfig && /Users/utement/.espressif/python_env/idf5.0_py3.10_env/bin/python /Users/utement/Projects/esp/esp-idf-5.0/tools/kconfig_new/confgen.py --list-separator=semicolon --kconfig /Users/utement/Projects/esp/esp-idf-5.0/Kconfig --sdkconfig-rename /Users/utement/Projects/esp/esp-idf-5.0/sdkconfig.rename --config /Users/utement/Projects/esp/Esp32OlcbIO/firmware/sdkconfig --defaults /Users/utement/Projects/esp/Esp32OlcbIO/firmware/sdkconfig.defaults --env-file /Users/utement/Projects/esp/Esp32OlcbIO/firmware/build/config.env --env IDF_TARGET=esp32 --env IDF_ENV_FPGA= --output config /Users/utement/Projects/esp/Esp32OlcbIO/firmware/sdkconfig
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
bash-5.2$ idf.py menuconfig
Executing action: menuconfig
Running ninja in directory /Users/utement/Projects/esp/Esp32OlcbIO/firmware/build
Executing "ninja menuconfig"...
[0/1] Re-running CMake...
-- Building ESP-IDF components for target esp32
Solving dependencies requirements
Skipping optional dependency: espressif/mdns
.................................CMake Error at /Users/utement/Projects/esp/esp-idf-4.4/tools/cmake/build.cmake:463 (message):
HINT: Please check manifest file of the following component(s): main

ERROR: Because project depends on idf (>=5.0) which doesn't match any
versions, version solving failed.

Call Stack (most recent call first):
/Users/utement/Projects/esp/esp-idf-4.4/tools/cmake/project.cmake:476 (idf_build_process)
CMakeLists.txt:7 (project)

-- Configuring incomplete, errors occurred!
See also "/Users/utement/Projects/esp/Esp32OlcbIO/firmware/build/CMakeFiles/CMakeOutput.log".
FAILED: build.ninja
/opt/local/bin/cmake --regenerate-during-build -S/Users/utement/Projects/esp/Esp32OlcbIO/firmware -B/Users/utement/Projects/esp/Esp32OlcbIO/firmware/build
ninja: error: rebuilding 'build.ninja': subcommand failed
ninja failed with exit code 1
bash-5.2$ idf.py build
Executing action: all (aliases: build)
Running ninja in directory /Users/utement/Projects/esp/Esp32OlcbIO/firmware/build
Executing "ninja all"...
[0/1] Re-running CMake...
-- Building ESP-IDF components for target esp32
Solving dependencies requirements
Skipping optional dependency: espressif/mdns
.................................CMake Error at /Users/utement/Projects/esp/esp-idf-4.4/tools/cmake/build.cmake:463 (message):
HINT: Please check manifest file of the following component(s): main

ERROR: Because project depends on idf (>=5.0) which doesn't match any
versions, version solving failed.

Call Stack (most recent call first):
/Users/utement/Projects/esp/esp-idf-4.4/tools/cmake/project.cmake:476 (idf_build_process)
CMakeLists.txt:7 (project)

-- Configuring incomplete, errors occurred!
See also "/Users/utement/Projects/esp/Esp32OlcbIO/firmware/build/CMakeFiles/CMakeOutput.log".
FAILED: build.ninja
/opt/local/bin/cmake --regenerate-during-build -S/Users/utement/Projects/esp/Esp32OlcbIO/firmware -B/Users/utement/Projects/esp/Esp32OlcbIO/firmware/build
ninja: error: rebuilding 'build.ninja': subcommand failed
ninja failed with exit code 1
`

Error during compiling esp32io_bootloader.cpp

a clean clone of the master branch has the compiler error:

In file included from ../main/esp32io_bootloader.cpp:39:
../components/OpenMRNIDF/src/freertos_drivers/esp32/Esp32BootloaderHal.hxx: In function 'void esp32_bootloader_run(uint64_t, gpio_num_t, gpio_num_t, bool)':
../components/OpenMRNIDF/src/freertos_drivers/esp32/Esp32BootloaderHal.hxx:354:12: error: enumeration value 'CHIP_ESP32H2' not handled in switch [-Werror=switch]
     switch (chip_info.model)
            ^

This enum value was added on 1/7/22 in 0f6073123ebb836d6515858a56661fb36ddd23e5

The servo branch is using newer version (9/18/22) 10b7e3cf3c65cf0e71788427e6c3227b100f4802

Web: Rework CDIRequestProcessor to queue requests

Currently the code will create N instances of CDIRequestProcessor where N is the number of requests. This causes the heap to become dangerously low at times and can lead to heap fragmentation.

It would be better to allocate a single instance of CDIRequestProcessor and send it requests similar to openlcb::MemoryConfigClient.

OTA: Firmware validation failure

[Web] OTA Update starting (1249878 bytes, target:ota_1)...
16:00:29.473: free heap: 195.46kB (max block size: 111.12kB), mainBufferPool: 0.59kB, task count: 15
E (47831) esp_image: invalid segment length 0x41360000
ESP_ERROR_CHECK_WITHOUT_ABORT failed: esp_err_t 0x1503 (ESP_ERR_OTA_VALIDATE_FAILED) at 0x40086ddb
0x40086ddb: _esp_error_check_failed_without_abort at esp-idf/components/esp_common/src/esp_err.c:40

file: "../main/web_server.cpp" line 120
func: http::AbstractHttpResponse* process_ota(http::HttpRequest*, const string&, size_t, const uint8_t*, size_t, size_t, bool, bool*)
expression: esp_ota_end(otaHandle)
[Web] OTA end failed, aborting!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.