Closed misupopo closed 2 years ago
Suddenly this error started happening. What should I do?
cmake -S . -B build-directory -DCMAKE_TOOLCHAIN_FILE=freertos/tools/cmake/toolchains/xtensa-esp32.cmake -GNinja
-- Submodule update
Skipping submodule '../../../libraries/abstractions/backoff_algorithm/'
Skipping submodule '../../../../libraries/abstractions/pkcs11/corePKCS11/'
Skipping submodule '../../../libraries/abstractions/pkcs11/corePKCS11/'
Skipping submodule '../../../libraries/abstractions/pkcs11/corePKCS11/'
Skipping submodule '../../../libraries/abstractions/pkcs11/corePKCS11/'
Skipping submodule '../../../libraries/coreHTTP/'
Skipping submodule '../../../libraries/coreHTTP/'
Skipping submodule '../../../libraries/coreHTTP/'
Skipping submodule '../../../libraries/coreJSON/'
Skipping submodule '../../../libraries/coreJSON/'
Skipping submodule '../../../libraries/coreJSON/'
Skipping submodule '../../../libraries/coreMQTT/'
Skipping submodule '../../../libraries/coreMQTT/'
Skipping submodule '../../../libraries/coreMQTT/'
Skipping submodule '../../../libraries/coreMQTT-Agent/source/dependency/coreMQTT/'
Skipping submodule '../../../libraries/coreMQTT-Agent/source/dependency/coreMQTT/'
Skipping submodule '../../../libraries/coreMQTT-Agent/source/dependency/coreMQTT/'
Skipping submodule '../../../libraries/device_defender_for_aws/'
Skipping submodule '../../../libraries/device_defender_for_aws/'
Skipping submodule '../../../libraries/device_defender_for_aws/'
Skipping submodule '../../../libraries/device_shadow_for_aws/'
Skipping submodule '../../../libraries/device_shadow_for_aws/'
Skipping submodule '../../../libraries/device_shadow_for_aws/'
Skipping submodule '../../libraries/freertos_plus/standard/freertos_plus_tcp/'
Skipping submodule '../../libraries/freertos_plus/standard/freertos_plus_tcp/'
Skipping submodule '../../libraries/freertos_plus/standard/freertos_plus_tcp/'
Skipping submodule '../../../libraries/jobs_for_aws/'
Skipping submodule '../../../libraries/jobs_for_aws/'
Skipping submodule '../../../libraries/jobs_for_aws/'
Skipping submodule '../../../../libraries/ota_for_aws/'
Skipping submodule '../../../libraries/ota_for_aws/'
Skipping submodule '../../../libraries/ota_for_aws/'
Skipping submodule '../../../libraries/ota_for_aws/'
Skipping submodule '../../../libraries/ota_for_aws/'
Skipping submodule '../../../libraries/ota_for_aws/'
WARNING: IDF_PATH environment variable is not cleared.
If CMake is generating an error, consider clearing the IDF_PATH environment
variable, and generating a clean build. This message can be ignored if
CMake was successful.
-- Component directory /Users/user/Documents/test/aws/freeRTOS/originalTest3/freertos/vendors/espressif/esp-idf/components/mbedtls does not contain a CMakeLists.txt file. No component will be added
-- Component directory /Users/user/Documents/test/aws/freeRTOS/originalTest3/freertos/vendors/espressif/esp-idf/components/unity does not contain a CMakeLists.txt file. No component will be added
CMake Error at freertos/vendors/espressif/boards/esp32/CMakeLists.txt:434 (add_executable):
add_executable cannot create target "my_app" because another target with
the same name already exists. The existing target is an executable created
in source directory
"/Users/user/Documents/test/aws/freeRTOS/originalTest3". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
freertos/CMakeLists.txt:78 (include)
Hi @misupopo,
For using AFR in custom CMake project, please check this repository: https://github.com/shubhamkulkarni97/amazon-freertos-examples
Hi @misupopo,
For using AFR in custom CMake project, please check this repository: https://github.com/shubhamkulkarni97/amazon-freertos-examples
Thank you very much for your help. It looks like it will be very helpful.
I flushed to ESP32. it was success.
I followed the steps of the AWS docs to build. However, when I run "idf.py monitor", I get the following error.
Is this a bug? I proceeded as per the documentation.
■idf.py monitor error
The actual procedure I executed is as follows.
■src/main.c
■project structure
■CMakeLists.txt
■Referenced pages https://docs.aws.amazon.com/ja_jp/freertos/latest/userguide/getting_started_espressif.html#download-and-configure-espressif-idf42
Hardware board: [ ESP32-DevKitC ] Operating System: [ macOS Monterey ver12.3.1 ]
■error log