Sysprogs forums › Forums › VisualGDB › Re: https://visualgdb.com/tutorials/esp32/esp-idf/
- This topic has 4 replies, 3 voices, and was last updated 7 years, 6 months ago by support.
-
AuthorPosts
-
June 10, 2017 at 21:49 #11452donvukovicParticipant
Following along with this tutorial, I have some errors that are not covered it the tutorial.
I installed the latest tool chain as per:
Before you begin, install our latest ESP32 toolchain on your computer.
This ran fine.
In step 1 there are “copying of files” that do not appear in my command window.
I’ll assume that this is OK.
Step 2 has some fatal:
Donald@Donald-PC ~
$ cd $IDF_PATHDonald@Donald-PC /esp-idf.orig
$ cd examples/get-started/blink/Donald@Donald-PC /esp-idf.orig/examples/get-started/blink
$ make menuconfig
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-61-gab8375a9
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
MENUCONFIG*** End of the configuration.
*** Execute ‘make’ to start the build or try ‘make help’.GENCONFIG
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .gitDonald@Donald-PC /esp-idf.orig/examples/get-started/blink
$Is this a problem ??
In step 3:
Donald@Donald-PC /esp-idf.orig/examples/get-started/blink
$ make
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git( is this a problem ? )
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-61-gab8375a9
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-61-gab8375a9
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.( what are the risks, will this still work ?? )
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
CC src/bootloader_random.o
CC src/flash_encrypt.o
CC src/esp_image_format.o
CC src/flash_partitions.o
CC src/secure_boot_signatures.o
CC src/secure_boot.o
CC src/efuse.o
CC src/bootloader_flash.o
AR libbootloader_support.a
CC log.o
AR liblog.a
CC spi_flash_rom_patch.o
AR libspi_flash.a
CC micro-ecc/uECC.o
AR libmicro-ecc.a
CC bootloader_start.o
AR libmain.a
LD bootloader.elf
esptool.py v2.0-beta1
Building partitions from /esp-idf.orig/components/partition_table/partitions_singleapp.csv…
CC esp_ota_ops.o
AR libapp_update.a
CC src/bootloader_random.o
CC src/flash_encrypt.o
CC src/esp_image_format.o
CC src/flash_partitions.o
CC src/secure_boot_signatures.o
CC src/secure_boot.o
CC src/efuse.o
CC src/bootloader_flash.o
AR libbootloader_support.a
CC bt.o
AR libbt.a
CC libcoap/src/address.o
CC libcoap/src/async.o
CC libcoap/src/block.o
CC libcoap/src/coap_time.o
CC libcoap/src/debug.o
CC libcoap/src/encode.o
CC libcoap/src/hashkey.o
CC libcoap/src/mem.o
CC libcoap/src/net.o
CC libcoap/src/option.o
CC libcoap/src/pdu.o
CC libcoap/src/resource.o
CC libcoap/src/str.o
CC libcoap/src/subscribe.o
CC libcoap/src/uri.o
CC port/coap_io_socket.o
AR libcoap.a
CXX cxx_guards.o
AR libcxx.a
CC rtc_module.o
CC i2c.o
CC sdmmc_host.o
CC timer.o
CC sdmmc_transaction.o
CC rmt.o
CC pcnt.o
CC gpio.o
CC ledc.o
CC periph_ctrl.o
CC i2s.o
CC uart.o
CC sigmadelta.o
CC spi_master.o
AR libdriver.a
CC int_wdt.o
CC brownout.o
CC system_api.o
CC hw_random.o
CC cpu_freq.o
CC event_loop.o
CC core_dump.o
CC intr_alloc.o
CC ipc.o
CC freertos_hooks.o
CC heap_alloc_caps.o
CC deep_sleep.o
CC phy_init.o
CC crosscore_int.o
CC cpu_util.o
CC gdbstub.o
CC lib_printf.o
CC cpu_start.o
CC task_wdt.o
CC event_default_handlers.o
CC panic.o
CC hwcrypto/aes.o
CC hwcrypto/sha.o
AR libesp32.a
CC emac_main.o
CC emac_dev.o
AR libethernet.a
CC library/xmltok_impl.o
CC library/xmlrole.o
CC library/xmlparse.o
CC library/xmltok.o
CC library/xmltok_ns.o
CC port/chardata.o
CC port/expat_element.o
CC port/minicheck.o
AR libexpat.a
CC src/option/unicode.o
CC src/option/syscall.o
CC src/diskio.o
CC src/vfs_fat.o
CC src/vfs_fat_sdmmc.o
CC src/ff.o
AR libfatfs.a
CC xtensa_overlay_os_hook.o
CC FreeRTOS-openocd.o
CC timers.o
CC tasks.o
CC event_groups.o
CC heap_regions.o
CC port.o
CC xtensa_init.o
CC list.o
CC croutine.o
CC queue.o
CC xtensa_intr.o
CC heap_regions_debug.o
CC ringbuf.o
AS portasm.o
AS xtensa_vectors.o
AS xtensa_context.o
AS xtensa_intr_asm.o
AR libfreertos.a
CC library/cJSON.o
CC port/cJSON_Utils.o
AR libjson.a
CC log.o
AR liblog.a
CC api/lwip_debug.o
CC api/sockets.o
CC api/api_msg.o
CC api/err.o
CC api/netbuf.o
CC api/tcpip.o
CC api/netifapi.o
CC api/api_lib.o
CC api/netdb.o
CC api/pppapi.o
CC apps/sntp/sntp.o
CC apps/ping/esp_ping.o
CC apps/ping/ping.o
CC apps/dhcpserver.o
CC core/ipv4/icmp.o
CC core/ipv4/autoip.o
CC core/ipv4/ip4.o
CC core/ipv4/igmp.o
CC core/ipv4/ip4_addr.o
CC core/ipv4/dhcp.o
CC core/ipv4/ip_frag.o
CC core/ipv6/icmp6.o
CC core/ipv6/ethip6.o
CC core/ipv6/mld6.o
CC core/ipv6/nd6.o
CC core/ipv6/ip6.o
CC core/ipv6/ip6_addr.o
CC core/ipv6/inet6.o
CC core/ipv6/dhcp6.o
CC core/ipv6/ip6_frag.o
CC core/tcp_out.o
CC core/udp.o
CC core/def.o
CC core/timers.o
CC core/stats.o
CC core/netif.o
CC core/pbuf.o
CC core/tcp_in.o
CC core/raw.o
CC core/ip.o
CC core/dns.o
CC core/tcp.o
CC core/sys.o
CC core/memp.o
CC core/init.o
CC core/inet_chksum.o
CC core/mem.o
CC netif/ethernetif.o
CC netif/lowpan6.o
CC netif/ethernet.o
CC netif/etharp.o
CC netif/slipif.o
CC port/freertos/sys_arch.o
CC port/netif/ethernetif.o
CC port/netif/wlanif.o
AR liblwip.a
CC library/havege.o
CC library/ssl_cookie.o
CC library/md5.o
CC library/certs.o
CC library/ssl_ciphersuites.o
CC library/camellia.o
CC library/x509_crl.o
CC library/threading.o
CC library/aesni.o
CC library/bignum.o
CC library/arc4.o
CC library/cipher_wrap.o
CC library/aes.o
CC library/xtea.o
CC library/base64.o
CC library/sha512.o
CC library/pkcs11.o
CC library/asn1write.o
CC library/oid.o
CC library/ecjpake.o
CC library/ssl_tls.o
CC library/debug.o
CC library/net.o
CC library/ecdh.o
CC library/x509_crt.o
CC library/ssl_srv.o
CC library/ecdsa.o
CC library/md2.o
CC library/x509_create.o
CC library/memory_buffer_alloc.o
CC library/gcm.o
CC library/version.o
CC library/pem.o
CC library/padlock.o
CC library/asn1parse.o
CC library/timing.o
CC library/ssl_cli.o
CC library/pkwrite.o
CC library/ssl_cache.o
CC library/sha256.o
CC library/md_wrap.o
CC library/entropy.o
CC library/md.o
CC library/rsa.o
CC library/ripemd160.o
CC library/version_features.o
CC library/cipher.o
CC library/entropy_poll.o
CC library/dhm.o
CC library/error.o
CC library/ssl_ticket.o
CC library/x509.o
CC library/blowfish.o
CC library/ecp.o
CC library/md4.o
CC library/x509_csr.o
CC library/pkparse.o
CC library/pkcs5.o
CC library/ccm.o
CC library/pkcs12.o
CC library/ecp_curves.o
CC library/pk_wrap.o
CC library/x509write_crt.o
CC library/ctr_drbg.o
CC library/platform.o
CC library/pk.o
CC library/x509write_csr.o
CC library/des.o
CC library/hmac_drbg.o
CC library/sha1.o
CC port/esp_sha512.o
CC port/esp_hardware.o
CC port/esp_bignum.o
CC port/esp_sha256.o
CC port/net.o
CC port/esp_sha1.o
AR libmbedtls.a
CC mdns.o
AR libmdns.a
CC micro-ecc/uECC.o
AR libmicro-ecc.a
CC locks.o
CC syscall_table.o
CC syscalls.o
CC reent_init.o
CC time.o
AR libnewlib.a
CC library/nghttp2_map.o
CC library/nghttp2_submit.o
CC library/nghttp2_queue.o
CC library/nghttp2_pq.o
CC library/nghttp2_hd_huffman_data.o
CC library/nghttp2_outbound_item.o
CC library/nghttp2_frame.o
CC library/nghttp2_helper.o
CC library/nghttp2_npn.o
CC library/nghttp2_option.o
CC library/nghttp2_buf.o
CC library/nghttp2_priority_spec.o
CC library/nghttp2_hd.o
CC library/nghttp2_stream.o
CC library/nghttp2_session.o
CC library/nghttp2_callbacks.o
CC library/nghttp2_rcbuf.o
CC library/nghttp2_hd_huffman.o
CC library/nghttp2_mem.o
CC library/nghttp2_version.o
CC library/nghttp2_http.o
CC port/http_parser.o
AR libnghttp.a
CXX src/nvs_api.o
CXX src/nvs_storage.o
CXX src/nvs_pagemanager.o
CXX src/nvs_item_hash_list.o
CXX src/nvs_page.o
CXX src/nvs_types.o
AR libnvs_flash.a
CC library/ssl_stack.o
CC library/ssl_lib.o
CC library/ssl_x509.o
CC library/ssl_pkey.o
CC library/ssl_methods.o
CC library/ssl_cert.o
CC platform/ssl_port.o
CC platform/ssl_pm.o
AR libopenssl.a
CC sdmmc_cmd.o
AR libsdmmc.a
CC flash_ops.o
CC cache_utils.o
CC spi_flash_rom_patch.o
CC partition.o
CC flash_mmap.o
AR libspi_flash.a
CC tcpip_adapter_lwip.o
AR libtcpip_adapter.a
CC ulp.o
AR libulp.a
CC vfs.o
CC vfs_uart.o
AR libvfs.a
CC src/crypto/ms_funcs.o
CC src/crypto/crypto_internal-cipher.o
CC src/crypto/crypto_internal-modexp.o
CC src/crypto/bignum.o
CC src/crypto/sha1-pbkdf2.o
CC src/crypto/aes-cbc.o
CC src/crypto/md5.o
CC src/crypto/rc4.o
CC src/crypto/sha256.o
CC src/crypto/dh_groups.o
CC src/crypto/md4-internal.o
CC src/crypto/sha1-internal.o
CC src/crypto/aes-wrap.o
CC src/crypto/crypto_internal.o
CC src/crypto/dh_group5.o
CC src/crypto/des-internal.o
CC src/crypto/crypto_internal-rsa.o
CC src/crypto/aes-unwrap.o
CC src/crypto/aes-internal-dec.o
CC src/crypto/sha1.o
CC src/crypto/aes-internal.o
CC src/crypto/md5-internal.o
CC src/crypto/sha256-internal.o
CC src/crypto/aes-internal-enc.o
CC port/os_xtensa.o
AR libwpa_supplicant.a
CC trax.o
CC eri.o
AR libxtensa-debug-module.a
CC blink.o
AR libmain.a
LD blink.elf
esptool.py v2.0-beta1
To flash all build output, run ‘make flash’ or:
python /esp-idf.orig/components/esptool_py/esptool/esptool.py –chip esp32 –port /dev/ttys9 –baud 115200 –before default_reset –after hard_reset write_flash -z –flash_mode dio –flash_freq 40m –flash_size detect 0x1000 /esp-idf.orig/examples/get-started/blink/build/bootloader/bootloader.bin 0x10000 /esp-idf.orig/examples/get-started/blink/build/blink.bin 0x8000 /esp-idf.orig/examples/get-started/blink/build/partitions_singleapp.binDonald@Donald-PC /esp-idf.orig/examples/get-started/blink
$Step 7:
Donald@Donald-PC /esp-idf.orig/examples/get-started/blink
$ make flash
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-61-gab8375a9
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-61-gab8375a9
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
Flashing binaries to serial port /dev/ttys9 (app at offset 0x10000)…
esptool.py v2.0-beta1
Traceback (most recent call last):
File “/esp-idf.orig/components/esptool_py/esptool/esptool.py”, line 2261, in <module>
main()
File “/esp-idf.orig/components/esptool_py/esptool/esptool.py”, line 2037, in main
esp = chip_class(args.port, initial_baud)
File “/esp-idf.orig/components/esptool_py/esptool/esptool.py”, line 166, in __init__
self._port = serial.serial_for_url(port)
File “/usr/lib/python2.7/site-packages/serial/__init__.py”, line 88, in serial_for_url
instance.open()
File “/usr/lib/python2.7/site-packages/serial/serialposix.py”, line 268, in open
raise SerialException(msg.errno, “could not open port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttys9: [Errno 2] No such file or directory: ‘/dev/ttys9’
make: *** [/esp-idf.orig/components/esptool_py/Makefile.projbuild:53: flash] Error 1Donald@Donald-PC /esp-idf.orig/examples/get-started/blink
$June 11, 2017 at 06:18 #11453supportKeymasterHi,
Please double-check the serial port name you have specified in the project settings (see step 6 of the tutorial). Most likely it does not match the actual COM port number used by the device.
June 12, 2017 at 07:39 #11455parsec67Participantdonvukovic: If your ESP32 is in fact on COM10, in ESP-IDF menuconfig->Serial flasher configuration->Default serial port try assigning COM10 instead of /dev/ttys9.
support: I too am getting “fatal: Not a git repository (or any of the parent directories): .git” and “EXEC : warning : Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-61-gab8375a9” when building an imported project and curious what this signifies?
(My imported project is a modified blink with WiFi component added. Under VisualGDB it fails to link and reports a host of undefined references at step “LD blink.elf”. Running make under ESP-IDF/msys2 it will build without errors.)
June 12, 2017 at 19:19 #11458donvukovicParticipantparsec67: I thought that looked wrong, but its a (x)nix program and thought it needed to be that way.
However, still does not work.
LD wpa2-enterprise.elf
esptool.py v2.0-beta1
Flashing binaries to serial port COM10 (app at offset 0x10000)…
esptool.py v2.0-beta1
Traceback (most recent call last):
File “/esp-idf.orig/components/esptool_py/esptool/esptool.py”, line 2261, in <module> main()
File “/esp-idf.orig/components/esptool_py/esptool/esptool.py”, line 2037, in main esp = chip_class(args.port, initial_baud)
File “/esp-idf.orig/components/esptool_py/esptool/esptool.py”, line 166, in __init__ self._port = serial.serial_for_url(port)
File “/usr/lib/python2.7/site-packages/serial/__init__.py”, line 88, in serial_for_url instance.open()
File “/usr/lib/python2.7/site-packages/serial/serialposix.py”, line 268, in open raise SerialException(msg.errno, “could not open port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port COM10: [Errno 2] No such file or directory: ‘COM10’
make: *** [/esp-idf.orig/components/esptool_py/Makefile.projbuild:53: flash] Error 1Donald@Donald-PC /esp-idf.orig/examples/wifi/wpa2_enterprise
$Any other suggestions ?
June 13, 2017 at 02:24 #11460supportKeymasterHi,
This still looks like a configuration error. Please try manually checking the <project>\build\sdkconfig file for lines like this:
CONFIG_ESPTOOLPY_PORT="/dev/ttyUSB0" CONFIG_ESPTOOLPY_BAUD_115200B=y
Do the port name and baud rate mentioned there make sense? If yes, please try flashing the ESP32 in verbose mode:
make flash V=1
This should show the command line of esptool.py. Does the port path shown there match the port path shown in the sdkconfig file?
-
AuthorPosts
- You must be logged in to reply to this topic.