ESP32 camera_publisher program Flash error
Trying to Flash the ESP32 with camera_publisher program , I am getting the following error. Please Help I am following Steps in https://medium.com/@achyutros/ros-2-micro-ros-esp32-cam-camera-publisher-bc2faa7167f8
---------------------------
p32_extensions /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build/CMakeFiles/camera_publisher.elf.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
make -f CMakeFiles/camera_publisher.elf.dir/build.make CMakeFiles/camera_publisher.elf.dir/build
make[2]: Entering directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
[ 98%] Linking CXX executable camera_publisher.elf
/usr/bin/cmake -E cmake_link_script CMakeFiles/camera_publisher.elf.dir/link.txt --verbose=1
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -mlongcalls -Wno-frame-address CMakeFiles/camera_publisher.elf.dir/project_elf_src.c.obj -o camera_publisher.elf esp-idf/xtensa/libxtensa.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/app_update/libapp_update.a esp-idf/spi_flash/libspi_flash.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/efuse/libefuse.a esp-idf/driver/libdriver.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/perfmon/libperfmon.a esp-idf/esp32/libesp32.a esp-idf/esp_common/libesp_common.a esp-idf/soc/libsoc.a esp-idf/esp_eth/libesp_eth.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/esp_netif/libesp_netif.a esp-idf/esp_event/libesp_event.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/lwip/liblwip.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/freertos/libfreertos.a esp-idf/vfs/libvfs.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/app_trace/libapp_trace.a esp-idf/asio/libasio.a esp-idf/cbor/libcbor.a esp-idf/coap/libcoap.a esp-idf/console/libconsole.a esp-idf/nghttp/libnghttp.a esp-idf/esp-tls/libesp-tls.a esp-idf/esp_adc_cal/libesp_adc_cal.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/protobuf-c/libprotobuf-c.a esp-idf/protocomm/libprotocomm.a esp-idf/mdns/libmdns.a esp-idf/esp_local_ctrl/libesp_local_ctrl.a esp-idf/sdmmc/libsdmmc.a esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a esp-idf/esp_websocket_client/libesp_websocket_client.a esp-idf/expat/libexpat.a esp-idf/wear_levelling/libwear_levelling.a esp-idf/fatfs/libfatfs.a esp-idf/freemodbus/libfreemodbus.a esp-idf/jsmn/libjsmn.a esp-idf/json/libjson.a esp-idf/libsodium/liblibsodium.a esp-idf/mqtt/libmqtt.a esp-idf/openssl/libopenssl.a esp-idf/spiffs/libspiffs.a esp-idf/ulp/libulp.a esp-idf/unity/libunity.a esp-idf/wifi_provisioning/libwifi_provisioning.a esp-idf/main/libmain.a -Wl,--cref -Wl,--Map=/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build/camera_publisher.map -fno-rtti -fno-lto esp-idf/asio/libasio.a esp-idf/cbor/libcbor.a esp-idf/coap/libcoap.a esp-idf/esp_adc_cal/libesp_adc_cal.a esp-idf/esp_gdbstub/libesp_gdbstub.a esp-idf/esp_https_ota/libesp_https_ota.a esp-idf/esp_local_ctrl/libesp_local_ctrl.a esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a esp-idf/esp_websocket_client/libesp_websocket_client.a esp-idf/expat/libexpat.a esp-idf/fatfs/libfatfs.a esp-idf/sdmmc/libsdmmc.a esp-idf/wear_levelling/libwear_levelling.a esp-idf/freemodbus/libfreemodbus.a esp-idf/jsmn/libjsmn.a esp-idf/libsodium/liblibsodium.a esp-idf/mqtt/libmqtt.a esp-idf/openssl/libopenssl.a esp-idf/spiffs/libspiffs.a esp-idf/unity/libunity.a esp-idf/wifi_provisioning/libwifi_provisioning.a esp-idf/protocomm/libprotocomm.a esp-idf/protobuf-c/libprotobuf-c.a esp-idf/mdns/libmdns.a esp-idf/console/libconsole.a esp-idf/json/libjson.a libmicroros.a esp-idf/xtensa/libxtensa.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/app_update/libapp_update.a esp-idf/spi_flash/libspi_flash.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/efuse/libefuse.a esp-idf/driver/libdriver.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/perfmon/libperfmon.a esp-idf/esp32/libesp32.a esp-idf/esp_common/libesp_common.a esp-idf/soc/libsoc.a esp-idf/esp_eth/libesp_eth.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/esp_netif/libesp_netif.a esp-idf/esp_event/libesp_event.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/lwip/liblwip.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/freertos/libfreertos.a esp-idf/vfs/libvfs.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/app_trace/libapp_trace.a esp-idf/nghttp/libnghttp.a esp-idf/esp-tls/libesp-tls.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/ulp/libulp.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libcoexist.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libcore.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libespnow.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libmesh.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libpp.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/librtc.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libphy.a esp-idf/xtensa/libxtensa.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/app_update/libapp_update.a esp-idf/spi_flash/libspi_flash.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/efuse/libefuse.a esp-idf/driver/libdriver.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/perfmon/libperfmon.a esp-idf/esp32/libesp32.a esp-idf/esp_common/libesp_common.a esp-idf/soc/libsoc.a esp-idf/esp_eth/libesp_eth.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/esp_netif/libesp_netif.a esp-idf/esp_event/libesp_event.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/lwip/liblwip.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/freertos/libfreertos.a esp-idf/vfs/libvfs.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/app_trace/libapp_trace.a esp-idf/nghttp/libnghttp.a esp-idf/esp-tls/libesp-tls.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/ulp/libulp.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libcoexist.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libcore.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libespnow.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libmesh.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libpp.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/librtc.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libphy.a esp-idf/xtensa/libxtensa.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/app_update/libapp_update.a esp-idf/spi_flash/libspi_flash.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/efuse/libefuse.a esp-idf/driver/libdriver.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/perfmon/libperfmon.a esp-idf/esp32/libesp32.a esp-idf/esp_common/libesp_common.a esp-idf/soc/libsoc.a esp-idf/esp_eth/libesp_eth.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/esp_netif/libesp_netif.a esp-idf/esp_event/libesp_event.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/lwip/liblwip.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/freertos/libfreertos.a esp-idf/vfs/libvfs.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/app_trace/libapp_trace.a esp-idf/nghttp/libnghttp.a esp-idf/esp-tls/libesp-tls.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/ulp/libulp.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libcoexist.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libcore.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libespnow.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libmesh.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libpp.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/librtc.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libphy.a esp-idf/xtensa/libxtensa.a esp-idf/esp_ringbuf/libesp_ringbuf.a esp-idf/app_update/libapp_update.a esp-idf/spi_flash/libspi_flash.a esp-idf/bootloader_support/libbootloader_support.a esp-idf/efuse/libefuse.a esp-idf/driver/libdriver.a esp-idf/nvs_flash/libnvs_flash.a esp-idf/pthread/libpthread.a esp-idf/espcoredump/libespcoredump.a esp-idf/perfmon/libperfmon.a esp-idf/esp32/libesp32.a esp-idf/esp_common/libesp_common.a esp-idf/soc/libsoc.a esp-idf/esp_eth/libesp_eth.a esp-idf/tcpip_adapter/libtcpip_adapter.a esp-idf/esp_netif/libesp_netif.a esp-idf/esp_event/libesp_event.a esp-idf/wpa_supplicant/libwpa_supplicant.a esp-idf/esp_wifi/libesp_wifi.a esp-idf/lwip/liblwip.a esp-idf/log/liblog.a esp-idf/heap/libheap.a esp-idf/freertos/libfreertos.a esp-idf/vfs/libvfs.a esp-idf/newlib/libnewlib.a esp-idf/cxx/libcxx.a esp-idf/app_trace/libapp_trace.a esp-idf/nghttp/libnghttp.a esp-idf/esp-tls/libesp-tls.a esp-idf/tcp_transport/libtcp_transport.a esp-idf/esp_http_client/libesp_http_client.a esp-idf/esp_http_server/libesp_http_server.a esp-idf/ulp/libulp.a esp-idf/mbedtls/mbedtls/library/libmbedtls.a esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a esp-idf/mbedtls/mbedtls/library/libmbedx509.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libcoexist.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libcore.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libespnow.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libmesh.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libnet80211.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libpp.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/librtc.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libsmartconfig.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32/libphy.a /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/xtensa/esp32/libhal.a -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -L /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build/esp-idf/esp32 -T esp32_out.ld -u app_main -L /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build/esp-idf/esp32/ld -T esp32.project.ld -L /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp32/ld -T esp32.peripherals.ld -u call_user_start_cpu0 -u ld_include_panic_highint_hdl -Wl,--gc-sections -L /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_rom/esp32/ld -T esp32.rom.newlib-time.ld -T esp32.rom.ld -T esp32.rom.libgcc.ld -T esp32.rom.newlib-data.ld -T esp32.rom.syscalls.ld -T esp32.rom.newlib-funcs.ld -L /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esp_wifi/lib/esp32 -Wl,--undefined=uxTopUsedPriority -u vfs_include_syscalls_impl -lm esp-idf/newlib/libnewlib.a -u newlib_include_locks_impl -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -lgcc -u __cxa_guard_dummy -lstdc++ esp-idf/pthread/libpthread.a -u __cxx_fatal_exception esp-idf/app_trace/libapp_trace.a -lgcov esp-idf/app_trace/libapp_trace.a -lgcov -lc
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(main.c.obj):(.literal.app_main+0x20): undefined reference to `appMain'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/camera_publisher.elf.dir/build.make:377: camera_publisher.elf] Error 1
make[2]: Leaving directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
make[1]: *** [CMakeFiles/Makefile2:1827: CMakeFiles/camera_publisher.elf.dir/all] Error 2
make[1]: Leaving directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
make: *** [Makefile:133: all] Error 2
achyut@achyutu:~/Documents/achyut/robotics/esp/esp32cam_ws$ ros2 run micro_ros_setup flash_firmware.sh
Flashing 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/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/requirements.txt are satisfied.
Added the following directories to PATH:
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/espcoredump
/home/achyut/Documents/achyut/robotics/esp/esp32cam_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
make -f CMakeFiles/flash.dir/build.make CMakeFiles/flash.dir/build
make[1]: Entering directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
cd /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf" -D ESPTOOLPY="python /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D ESPTOOL_ARGS="write_flash @flash_project_args" -D WORKING_DIRECTORY="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build" -P /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/run_esptool.cmake
Note: esptool.py will search for a serial port. To specify a port, set the ESPPORT environment variable.
Note: esptool.py will attempt to set baud rate automatically. To specify a baud rate, set the ESPBAUD environment variable.
esptool.py --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 camera_publisher.bin
usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,40m,26m,20m,80m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--ignore-flash-encryption-efuse-setting]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'partition_table/partition-table.bin'
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)
make[1]: *** [CMakeFiles/flash.dir/build.make:60: CMakeFiles/flash] Error 1
make[1]: Leaving directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
make: *** [Makefile:224: flash/fast] Error 2
achyut@achyutu:~/Documents/achyut/robotics/esp/esp32cam_ws$ ros2 run micro_ros_setup flash_firmware.sh
Flashing 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/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/requirements.txt are satisfied.
Added the following directories to PATH:
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/espcoredump
/home/achyut/Documents/achyut/robotics/esp/esp32cam_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
make -f CMakeFiles/flash.dir/build.make CMakeFiles/flash.dir/build
make[1]: Entering directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
cd /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf" -D ESPTOOLPY="python /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D ESPTOOL_ARGS="write_flash @flash_project_args" -D WORKING_DIRECTORY="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build" -P /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/run_esptool.cmake
Note: esptool.py will search for a serial port. To specify a port, set the ESPPORT environment variable.
Note: esptool.py will attempt to set baud rate automatically. To specify a baud rate, set the ESPBAUD environment variable.
esptool.py --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 camera_publisher.bin
usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,40m,26m,20m,80m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--ignore-flash-encryption-efuse-setting]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'partition_table/partition-table.bin'
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)
make[1]: *** [CMakeFiles/flash.dir/build.make:60: CMakeFiles/flash] Error 1
make[1]: Leaving directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
make: *** [Makefile:224: flash/fast] Error 2
achyut@achyutu:~/Documents/achyut/robotics/esp/esp32cam_ws$ idf.py build
/usr/bin/env: ‘python’: No such file or directory
achyut@achyutu:~/Documents/achyut/robotics/esp/esp32cam_ws$ ros2 run micro_ros_setup flash_firmware.sh
Flashing 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/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/requirements.txt are satisfied.
Added the following directories to PATH:
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/espcoredump
/home/achyut/Documents/achyut/robotics/esp/esp32cam_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
make -f CMakeFiles/flash.dir/build.make CMakeFiles/flash.dir/build
make[1]: Entering directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
cd /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf" -D ESPTOOLPY="python /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D ESPTOOL_ARGS="write_flash @flash_project_args" -D WORKING_DIRECTORY="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build" -P /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/run_esptool.cmake
Note: esptool.py will search for a serial port. To specify a port, set the ESPPORT environment variable.
Note: esptool.py will attempt to set baud rate automatically. To specify a baud rate, set the ESPBAUD environment variable.
esptool.py --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 camera_publisher.bin
usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,40m,26m,20m,80m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--ignore-flash-encryption-efuse-setting]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'partition_table/partition-table.bin'
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)
make[1]: *** [CMakeFiles/flash.dir/build.make:60: CMakeFiles/flash] Error 1
make[1]: Leaving directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
make: *** [Makefile:224: flash/fast] Error 2
achyut@achyutu:~/Documents/achyut/robotics/esp/esp32cam_ws$ idf.py build
/usr/bin/env: ‘python’: No such file or directory
achyut@achyutu:~/Documents/achyut/robotics/esp/esp32cam_ws$ ros2 run micro_ros_setup flash_firmware.sh
Flashing 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/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/requirements.txt are satisfied.
Added the following directories to PATH:
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/espcoredump
/home/achyut/Documents/achyut/robotics/esp/esp32cam_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
make -f CMakeFiles/flash.dir/build.make CMakeFiles/flash.dir/build
make[1]: Entering directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
cd /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf" -D ESPTOOLPY="python /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D ESPTOOL_ARGS="write_flash @flash_project_args" -D WORKING_DIRECTORY="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build" -P /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/run_esptool.cmake
Note: esptool.py will search for a serial port. To specify a port, set the ESPPORT environment variable.
Note: esptool.py will attempt to set baud rate automatically. To specify a baud rate, set the ESPBAUD environment variable.
esptool.py --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 camera_publisher.bin
usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,40m,26m,20m,80m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--ignore-flash-encryption-efuse-setting]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'partition_table/partition-table.bin'
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)
make[1]: *** [CMakeFiles/flash.dir/build.make:60: CMakeFiles/flash] Error 1
make[1]: Leaving directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
make: *** [Makefile:224: flash/fast] Error 2
achyut@achyutu:~/Documents/achyut/robotics/esp/esp32cam_ws$ ros2 run micro_ros_setup flash_firmware.sh
Flashing 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/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/requirements.txt are satisfied.
Added the following directories to PATH:
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/espcoredump
/home/achyut/Documents/achyut/robotics/esp/esp32cam_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
make -f CMakeFiles/flash.dir/build.make CMakeFiles/flash.dir/build
make[1]: Entering directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
cd /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf" -D ESPTOOLPY="python /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D ESPTOOL_ARGS="write_flash @flash_project_args" -D WORKING_DIRECTORY="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build" -P /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/run_esptool.cmake
Note: esptool.py will search for a serial port. To specify a port, set the ESPPORT environment variable.
Note: esptool.py will attempt to set baud rate automatically. To specify a baud rate, set the ESPBAUD environment variable.
esptool.py --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 camera_publisher.bin
usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,40m,26m,20m,80m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--ignore-flash-encryption-efuse-setting]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'partition_table/partition-table.bin'
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)
make[1]: *** [CMakeFiles/flash.dir/build.make:60: CMakeFiles/flash] Error 1
make[1]: Leaving directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
make: *** [Makefile:224: flash/fast] Error 2
achyut@achyutu:~/Documents/achyut/robotics/esp/esp32cam_ws$ pwd
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws
achyut@achyutu:~/Documents/achyut/robotics/esp/esp32cam_ws$ echo $RMW_IMPLEMENTATION
rmw_microxrcedds
achyut@achyutu:~/Documents/achyut/robotics/esp/esp32cam_ws$ ros2 run micro_ros_setup flash_firmware.sh
Flashing 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/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/requirements.txt are satisfied.
Added the following directories to PATH:
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/espcoredump
/home/achyut/Documents/achyut/robotics/esp/esp32cam_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
make -f CMakeFiles/flash.dir/build.make CMakeFiles/flash.dir/build
make[1]: Entering directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
cd /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf" -D ESPTOOLPY="python /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D ESPTOOL_ARGS="write_flash @flash_project_args" -D WORKING_DIRECTORY="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build" -P /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/run_esptool.cmake
Note: esptool.py will search for a serial port. To specify a port, set the ESPPORT environment variable.
Note: esptool.py will attempt to set baud rate automatically. To specify a baud rate, set the ESPBAUD environment variable.
esptool.py --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 camera_publisher.bin
usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,40m,26m,20m,80m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--ignore-flash-encryption-efuse-setting]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'partition_table/partition-table.bin'
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)
make[1]: *** [CMakeFiles/flash.dir/build.make:60: CMakeFiles/flash] Error 1
make[1]: Leaving directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
make: *** [Makefile:224: flash/fast] Error 2
achyut@achyutu:~/Documents/achyut/robotics/esp/esp32cam_ws$ ros2 run micro_ros_setup flash_firmware.sh
Flashing 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/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/requirements.txt are satisfied.
Added the following directories to PATH:
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool
/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/espcoredump
/home/achyut/Documents/achyut/robotics/esp/esp32cam_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
make -f CMakeFiles/flash.dir/build.make CMakeFiles/flash.dir/build
make[1]: Entering directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
cd /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf" -D ESPTOOLPY="python /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D ESPTOOL_ARGS="write_flash @flash_project_args" -D WORKING_DIRECTORY="/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build" -P /home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/toolchain/esp-idf/components/esptool_py/run_esptool.cmake
Note: esptool.py will search for a serial port. To specify a port, set the ESPPORT environment variable.
Note: esptool.py will attempt to set baud rate automatically. To specify a baud rate, set the ESPBAUD environment variable.
esptool.py --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 camera_publisher.bin
usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,40m,26m,20m,80m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--ignore-flash-encryption-efuse-setting]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'partition_table/partition-table.bin'
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)
make[1]: *** [CMakeFiles/flash.dir/build.make:60: CMakeFiles/flash] Error 1
make[1]: Leaving directory '/home/achyut/Documents/achyut/robotics/esp/esp32cam_ws/firmware/freertos_apps/microros_esp32_extensions/build'
make: *** [Makefile:224: flash/fast] Error 2
Asked by Achyut on 2023-02-19 18:57:48 UTC
Comments