Failed to send "Hello World" to M5stack with Arduino IDE on Ubuntu 17.10



  • Hello,
    I've just bought an M5stack core dev Kit ESP32 . This little box is very promizing !!

    The probleme is I 'm still trying to send the simple code " Hello world" without success.I don't see where is the problem ?

    I followed the quick start rule, Silabs CP2104 drivers seems to be installed and I've installed also the M5stack plugin for Arduino IDE.

    When I execute the script with Arduino IDE ( Verify or Upload ), I got this following message ( because is very long , I've just put the beginning) :

    Arduino : 1.8.5 (Linux), Carte : "M5Stack-Core-ESP32, 80MHz, 921600, Debug"

    In file included from /home/nano/Arduino/libraries/M5Stack/src/utility/DHT12.cpp:8:0:
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/libraries/Wire/src/Wire.h: In member function 'byte DHT12::read()':
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/libraries/Wire/src/Wire.h:65:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
    uint8_t requestFrom(int, int);
    ^
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/libraries/Wire/src/Wire.h:63:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
    uint8_t requestFrom(uint8_t, uint8_t);
    ^
    Archiving built core (caching) in: /tmp/arduino_cache_267032/core/core_esp32_esp32_esp32_FlashFreq_80,UploadSpeed_921600,DebugLevel_debug_92074ad95218c5920b87d75b7530dda8.a
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libesp32.a(cpu_start.o):(.literal.main_task+0xc): undefined reference to heap_caps_enable_nonos_stack_heaps' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libesp32.a(cpu_start.o):(.iram1.literal+0x3c): undefined reference toesp_pthread_init'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libesp32.a(cpu_start.o):(.iram1.literal+0x8c): undefined reference to memset' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libesp32.a(cpu_start.o):(.iram1.literal+0x9c): undefined reference toheap_caps_init'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libesp32.a(cpu_start.o): In function cpu_configure_region_protection': /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/soc/esp32/include/soc/cpu.h:67: undefined reference tomemcpy'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libesp32.a(cpu_start.o): In function main_task': /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/./cpu_start.c:389: undefined reference toheap_caps_enable_nonos_stack_heaps'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libesp32.a(cpu_start.o): In function start_cpu0_default': /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/./cpu_start.c:285: undefined reference toesp_pthread_init'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libesp32.a(cpu_start.o): In function call_start_cpu0': /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/./cpu_start.c:109: undefined reference tomemset'
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/./cpu_start.c:122: undefined reference to memset' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libesp32.a(cpu_start.o): In functionDPORT_READ_PERI_REG':
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/soc/esp32/include/soc/dport_access.h:103: undefined reference to heap_caps_init' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libesp32.a(intr_alloc.o): In functionesp_intr_alloc_intrstatus':
    Plusieurs bibliothèque trouvées pour "M5Stack.h"
    Utilisé : /home/nano/Arduino/libraries/M5Stack
    Non utilisé : /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/libraries/M5Stack
    Plusieurs bibliothèque trouvées pour "WiFi.h"
    Utilisé : /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/libraries/WiFi
    Non utilisé : /home/nano/Téléchargements/arduino-1.8.5-linux64/arduino-1.8.5/libraries/WiFi
    Plusieurs bibliothèque trouvées pour "SD.h"
    Utilisé : /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/libraries/SD
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/./intr_alloc.c:605: undefined reference to memset' Non utilisé : /home/nano/Téléchargements/arduino-1.8.5-linux64/arduino-1.8.5/libraries/SD /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/liblog.a(log.o):(.iram1.literal+0x1c): undefined reference tostrcmp'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/liblog.a(log.o): In function esp_log_level_set': /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/log/./log.c:115: undefined reference tostrcmp'
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/log/./log.c:127: undefined reference to strcmp' /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/log/./log.c:127: undefined reference tostrlen'
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/log/./log.c:142: undefined reference to strcpy' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/liblog.a(log.o): In functionget_uncached_log_level':
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/log/./log.c:107: undefined reference to strcmp' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libnewlib.a(reent_init.o):(.iram1.literal+0x0): undefined reference to_cleanup_r'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libnewlib.a(reent_init.o): In function esp_reent_init': /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/newlib/./reent_init.c:35: undefined reference tomemset'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libnewlib.a(syscalls.o):(.iram1.literal+0x0): undefined reference to heap_caps_malloc' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libnewlib.a(syscalls.o):(.iram1.literal+0x4): undefined reference toheap_caps_free'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libnewlib.a(syscalls.o):(.iram1.literal+0x8): undefined reference to heap_caps_realloc' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libnewlib.a(syscalls.o): In function_malloc_r':
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/newlib/./syscalls.c:28: undefined reference to heap_caps_malloc' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libnewlib.a(syscalls.o): In function_free_r':
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/newlib/./syscalls.c:33: undefined reference to heap_caps_free' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libnewlib.a(syscalls.o): In function_realloc_r':
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/newlib/./syscalls.c:38: undefined reference to heap_caps_realloc' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libnewlib.a(syscalls.o): In function_calloc_r':
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/newlib/./syscalls.c:43: undefined reference to heap_caps_malloc' /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/newlib/./syscalls.c:45: undefined reference tomemset'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libspi_flash.a(flash_ops.o):(.iram1.literal+0x20): undefined reference to memcpy' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libspi_flash.a(flash_ops.o):(.iram1.literal+0x28): undefined reference tomemmove'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libspi_flash.a(flash_ops.o): In function spi_flash_write': /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./flash_ops.c:220: undefined reference tomemcpy'
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./flash_ops.c:245: undefined reference to memcpy' /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./flash_ops.c:262: undefined reference tomemcpy'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libspi_flash.a(flash_ops.o): In function spi_flash_read': /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./flash_ops.c:366: undefined reference tomemcpy'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libspi_flash.a(flash_ops.o): In function spi_flash_guard_start': /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./flash_ops.c:106: undefined reference tomemmove'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libspi_flash.a(flash_ops.o): In function spi_flash_read': /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./flash_ops.c:427: undefined reference tomemcpy'
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./flash_ops.c:436: undefined reference to memcpy' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libspi_flash.a(flash_ops.o): In functionspi_flash_read_encrypted':
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./flash_ops.c:463: undefined reference to memcpy' /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libspi_flash.a(flash_ops.o): In functionspi_flash_write_encrypted':
    /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./flash_ops.c:287: undefined reference to memcpy' /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./flash_ops.c:311: undefined reference tomemcpy'
    /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libspi_flash.a(flash_ops.o):/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./flash_ops.c:318: more undefined references to memcpy' follow /home/nano/.arduino15/packages/esp32/hardware/esp32/0.0.5/tools/sdk/lib/libfreertos.a(tasks.o):(.literal.vTaskSwitchContext+0x14): undefined reference tomemcmp'


  • M5Stack