MicroROS+FreeRTOS on ESP32 fail to build/flash
Hello, I am following the ESP32+freeRTOS tutorial on microROS (https://micro.ros.org/blog/2020/08/27...), but am having trouble flashing the firmware to my microcontroller (error code below).
I tried searching Google with the issue "esptool write_flash: error: argument
<filename>: [Errno 2] No such file or directory: 'int32_publisher.bin'" but nothing much showed up.Microcontroller: ESP32 devkit Linux: 20.04 ROS2: Foxy
===================build error================= ~/ros2_foxy/microros_ws$ ros2 run micro_ros_setup build_firmware.sh Crosscompiled environment: cleaning path Building firmware for freertos platform esp32 WARNING: using an unsupported version of tool cmake found in PATH: 3.16.3 WARNING: using an unsupported version of tool ninja found in PATH: 1.10.0 Adding ESP-IDF tools to PATH... Checking if Python packages are up to date... Python requirements from /home/skynet/ros2_foxy/microros_ws/firmware/toolchain/esp-idf/requirements.txt are satisfied. Added the following directories to PATH: /home/skynet/ros2_foxy/microros_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool /home/skynet/ros2_foxy/microros_ws/firmware/toolchain/esp-idf/components/espcoredump /home/skynet/ros2_foxy/microros_ws/firmware/toolchain/esp-idf/components/partition_table/ Done! You can now compile ESP-IDF projects. Go to the project directory and run:
idf.py build
Selected app: int32_publisher /usr/bin/cmake -S/home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions -B/home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build/CMakeFiles /home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build' make -f esp-idf/partition_table/CMakeFiles/partition_table.dir/build.make esp-idf/partition_table/CMakeFiles/partition_table.dir/depend make[2]: Entering directory '/home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build' cd /home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions /home/skynet/ros2_foxy/microros_ws/firmware/toolchain/esp-idf/components/partition_table /home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build /home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build/esp-idf/partition_table /home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build/esp-idf/partition_table/CMakeFiles/partition_table.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build' make -f esp-idf/partition_table/CMakeFiles/partition_table.dir/build.make esp-idf/partition_table/CMakeFiles/partition_table.dir/build make[2]: Entering directory '/home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build' cd /home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build/esp-idf/partition_table && /usr/bin/cmake -E echo "Partition table binary generated. Contents:" Partition table binary generated. Contents: cd /home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build/esp-idf/partition_table && /usr/bin/cmake -E echo "*************************"
cd /home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build/esp-idf/partition_table && python /home/skynet/ros2_foxy/microros_ws/firmware/toolchain/esp-idf/components/partition_table/gen_esp32part.py -q --offset 0x8000 --flash-size 2MB /home/skynet/ros2_foxy/microros_ws/firmware/freertos_apps/microros_esp32_extensions/build/partition_table/partition-table.bin
Espressif ESP32 Partition Table
Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K, phy_init,data,phy,0xf000,4K, factory,app,factory ...