Good morning team
I am writing a book about Alexa + lambda + mqtt and i will use the amazon freertos on esp32 to be the endpoint.
I followed the steps described in https://docs.aws.amazon.com/en_pv/freertos/latest/userguide/getting_started_espressif.html
I got to sucess to create the thing.
But my problem is how to compile using the CMake, looks that the documentarion is poor in that point.
I already have the git of freertos and toolchain installed. I guess that the esp-idf already copied during freertos git.
sboxes@osboxes:~/esp$ ls
amazon-freertos xtensa-esp32-elf
osboxes@osboxes:~/esp/amazon-freertos$ cmake -DAFR_TOOLCHAIN_PATH=’/home/osboxes/esp/xtensa-esp32-elf/bin’ -DVENDOR=espressif -DBOARD=esp32_wrover_kit -DCOMPILER=xtensa-esp32 -S . -B /home/osboxes/esp/amazon-freertos/vendors/espressif/boards/esp32
CMake Warning at PreLoad.cmake:34 (message):
CMAKE_TOOLCHAIN_FILE is already defined to toolchain_file.cmake, you need
to delete cache and reconfigure if you want to switch compiler.
CMake Error at /usr/share/cmake-3.13/Modules/CMakeDetermineSystem.cmake:100 (message):
Could not find toolchain file: /path/to/toolchain_file.cmake
Call Stack (most recent call first):
CMakeLists.txt:8 (project)
CMake Error: CMake was unable to find a build program corresponding to “Unix Makefiles”. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
– Configuring incomplete, errors occurred!
osboxes@osboxes:~/esp/amazon-freertos$
Can you help me with steps now how to compile with CMake?
Thank you so much! Looks now that compiles!!!
.
.
.
.
target microcontroller:
vendor: Espressif
board: ESP-WROVER-KIT
description: Development board produced by Espressif that has support for
LCD, MicroSD card, and USB JTAG interface. It comes in two
variants either with ESP-WROOM-32 or ESP32-WROVER module.
family: ESP32
data ram size: 520KB
program memory size: 4MB
– Configuring done
– Generating done
– Build files have been written to: /home/osboxes/esp/amazon-freertos/build
make all -j4
compiled all
THANK YOU SO MUCH!
I will verify now if runs on a U-BLOX NINA W102, flash with 2Mb.
Do you know wich models (ESP32) runs the rtos, will need really 4Mb ?
and about
cd amazon-freertos/
mkdir build
cmake -DVENDOR=espressif -DBOARD=esp32_wrover_kit -DCOMPILER=xtensa-esp32 -S . -B build/
cd build/
make all -j4
I am not sure about that and this seems something specific to Espressif. The best would be to post a question to Espressif on GitHub: https://github.com/espressif/esp-idf