ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

MicroROS+FreeRTOS on ESP32 fail to build/flash

asked 2022-06-22 18:17:56 -0600

Genozen gravatar image

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 ...

(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-23 05:50:31 -0600

Pablogs gravatar image

Please open an issue in the micro-ROS Github repo you are using, so we can track and solve this issue.

edit flag offensive delete link more

Comments

Thanks for the swift response. There's no Github repo for this as I am just trying to setup the microROS+ESP32 environment. Should I upload one and send it to you? Sorry for these newbie questions...

Genozen gravatar image Genozen  ( 2022-06-23 09:27:41 -0600 )edit

I meant in our micro-ROS repo: https://github.com/micro-ROS/micro_ro...

Pablogs gravatar image Pablogs  ( 2022-06-24 00:41:23 -0600 )edit

Got it. I opened an issue under microROS_agent. (I was able to get past this hurdle and am at the final step with running the agent but have an issue).

Genozen gravatar image Genozen  ( 2022-06-25 02:34:27 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2022-06-22 18:17:56 -0600

Seen: 521 times

Last updated: Jun 23 '22