ESP AT

Honzik321
Posts: 31
Joined: Mon Apr 06, 2020 11:17 pm
Location: Czech Republic

ESP AT

Postby Honzik321 » Fri Apr 10, 2020 8:26 am

Hello,

I'm not able to build ESP AT with ESP IDF latest master version. Which version of ESP IDF is compatible with ESP AT ???

I followed get started from https://github.com/espressif/esp-at/blo ... Started.md, tryind old IDF version 3.3 but same problem below occured. I'm using Python version 3.7 and cmake version 3.16.4.

Thank you,
Honzik



Building in: C:\Users\dell\eclipse-workspace\esp-at\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\Users\dell\Desktop\esp-idf\tools\cmake\toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DIDF_TARGET=esp32 C:\Users\dell\eclipse-workspace\esp-at
CMake Error at CMakeLists.txt:57 (string):
string sub-command REPLACE requires at least four arguments.


CMake Error at CMakeLists.txt:62 (string):
string sub-command REPLACE requires at least four arguments.


CMake Error at CMakeLists.txt:67 (string):
string sub-command REPLACE requires at least four arguments.


fatal: You must specify a repository to clone.

usage: git clone [<options>] [--] <repo> [<dir>]

-v, --verbose be more verbose
-q, --quiet be more quiet
--progress force progress reporting
-n, --no-checkout don't create a checkout
--bare create a bare repository
--mirror create a mirror repository (implies bare)
-l, --local to clone from a local repository
--no-hardlinks don't use local hardlinks, always copy
-s, --shared setup as shared repository
--recurse-submodules[=<pathspec>]
initialize submodules in the clone
-j, --jobs <n> number of submodules cloned in parallel
--template <template-directory>
directory from which templates will be used
--reference <repo> reference repository
--reference-if-able <repo>
reference repository
--dissociate use --reference only while cloning
-o, --origin <name> use <name> instead of 'origin' to track upstream
-b, --branch <branch>
checkout <branch> instead of the remote's HEAD
-u, --upload-pack <path>
path to git-upload-pack on the remote
--depth <depth> create a shallow clone of that depth
--shallow-since <time>
create a shallow clone since a specific time
--shallow-exclude <revision>
deepen history of shallow clone, excluding rev
--single-branch clone only one branch, HEAD or --branch
--no-tags don't clone any tags, and make later fetches not to follow them
--shallow-submodules any cloned submodules will be shallow
--separate-git-dir <gitdir>
separate git dir from working tree
-c, --config <key=value>
set config inside the new repository
-4, --ipv4 use IPv4 addresses only
-6, --ipv6 use IPv6 addresses only
--filter <args> object filtering

CMake Error at CMakeLists.txt:78 (if):
if given arguments:

"NOT" "bd8039bb8119636e6133a34b7b7dd3884a43d63f" "EQUAL"

Unknown arguments specified
-- Configuring incomplete, errors occurred!


See also "C:/Users/dell/eclipse-workspace/esp-at/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/dell/eclipse-workspace/esp-at/build/CMakeFiles/CMakeError.log".
cmake --build . -- -v
Error: could not find CMAKE_PROJECT_NAME in Cache
Build complete (1 errors, 0 warnings): C:\Users\dell\eclipse-workspace\esp-at\build

ESP_XCGuang
Posts: 25
Joined: Fri Aug 31, 2018 7:34 am

Re: ESP AT

Postby ESP_XCGuang » Mon Apr 13, 2020 2:05 am

Please compile the project referring to https://github.com/espressif/esp-at/blo ... Started.md. And it needs a esp-idf project with git information.

Please DO NOT set IDF_PATH, it will clone esp-idf automatically when compiling.

Honzik321
Posts: 31
Joined: Mon Apr 06, 2020 11:17 pm
Location: Czech Republic

Re: ESP AT

Postby Honzik321 » Mon Apr 13, 2020 11:17 am

Hello,
I have still probably last problem during building EST AT project on step [1077/1078] see below, can you help ?

Thank you,
Honzik

[1077/1078] Running utility command for customized_bin
FAILED: esp-idf/customized_partitions/CMakeFiles/customized_bin.util
cmd.exe /C "cd /D C:\Users\dell\esp\esp-at\build\esp-idf\customized_partitions && mkdir -p C:/Users/dell/esp/esp-at/build/include && cp C:/Users/dell/esp/esp-at/build/config/sdkconfig.h C:/Users/dell/esp/esp-at/build/include/sdkconfig.h && C:\Users\dell\.espressif\python_env\idf4.0_py2.7_env\Scripts\python.exe C:/Users/dell/esp/esp-at/components/customized_partitions/raw_data/at_customized_partition_gen.py --tools_dir C:/Users/dell/esp/esp-at/components/customized_partitions/generation_tools --output_dir C:/Users/dell/esp/esp-at/build/customized_partitions --flash_args_file C:/Users/dell/esp/esp-at/build/flash_customized_partition_args"
The syntax of the command is incorrect.
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

Honzik321
Posts: 31
Joined: Mon Apr 06, 2020 11:17 pm
Location: Czech Republic

Re: ESP AT

Postby Honzik321 » Mon Apr 13, 2020 5:20 pm

I followed the ESP-AT Get Started. Only one improvisation had to be done in file CMakeLists.txt, because, "sed" command doesn't work on my Windows 10 => so release, commit, repository was manually set according to \esp-at\module_config\module_esp32_default\IDF_VERISON. I have also added Environment variables:

ESP_AT_MODULE_NAME = "WROOM-32"
ESP_AT_PROJECT_PATH = "C:\Users\dell\esp\esp-at"
ESP_AT_PROJECT_PLATFORM = "PLATFORM_ESP32"

CMakeLists.txt changes:
string(REPLACE "branch:" "" esp_at_idf_branch "release/v4.0")
string(REPLACE "commit:" "" esp_at_idf_commit "f9cb434eeb90be4f34893a278d0a70a8b21e4ca2")
string(REPLACE "repository:" "" esp_at_idf_repository "https://github.com/espressif/esp-idf.git")

Python 2.7.17 - OK
pip install pyyaml xlrd - OK
git clone --recursive https://github.com/espressif/esp-at.git - OK
idf.py menuconfig - OK WORKS

BUILD => idf.py build => STILL ERROR IN GENERATING customized_partitions BIN FILES
idf.py build => STILL ERROR IN STEP [1077/1078]

[1077/1078] Running utility command for customized_bin
FAILED: esp-idf/customized_partitions/CMakeFiles/customized_bin.util
cmd.exe /C "cd /D C:\Users\dell\esp\esp-at\build\esp-idf\customized_partitions && mkdir -p C:/Users/dell/esp/esp-at/build/include && cp C:/Users/dell/esp/esp-at/build/config/sdkconfig.h C:/Users/dell/esp/esp-at/build/include/sdkconfig.h && C:\Users\dell.espressif\python_env\idf4.0_py2.7_env\Scripts\python.exe C:/Users/dell/esp/esp-at/components/customized_partitions/raw_data/at_customized_partition_gen.py --tools_dir C:/Users/dell/esp/esp-at/components/customized_partitions/generation_tools --output_dir C:/Users/dell/esp/esp-at/build/customized_partitions --flash_args_file C:/Users/dell/esp/esp-at/build/flash_customized_partition_args"
The syntax of the command is incorrect.
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

Thank you for your help,
Honzik

Who is online

Users browsing this forum: Stefasaurus, ThomasSt and 106 guests