The code:
Code: Select all
esp_eth_get_mac(mac);
ESP_LOGI(TAG, "~~~~~~~~~~~");
ESP_LOGI(TAG, "ETHIP:"IPSTR, IP2STR(&ip.ip));
ESP_LOGI(TAG, "ETHPMASK:"IPSTR, IP2STR(&ip.netmask));
ESP_LOGI(TAG, "ETHPGW:"IPSTR, IP2STR(&ip.gw));
ESP_LOGI(TAG, "ETHMAC: %02x:%02x:%02x:%02x:%02x:%02x",
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
ESP_LOGI(TAG, "~~~~~~~~~~~");
Code: Select all
robin@u64imac:~/esp/esp-idf/examples/ethernet/ethernet$ make flash monitor
CC ethernet_main.o
AR libmain.a
LD ethernet_demo.elf
esptool.py v2.0-beta1
Flashing binaries to serial port /dev/ttyACM0 (app at offset 0x10000)...
esptool.py v2.0-beta1
Connecting.........
Uploading stub...
Running stub...
Stub running...
Attaching SPI flash...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 11616 bytes to 6709...
Wrote 11616 bytes (6709 compressed) at 0x00001000 in 0.8 seconds (effective 120.4 kbit/s)...
Hash of data verified.
Compressed 475296 bytes to 220183...
Writing at 0x0002c000... (57 %)
A fatal error occurred: Timed out waiting for packet header
/home/robin/esp/esp-idf/components/esptool_py/Makefile.projbuild:52: recipe for target 'flash' failed
make: *** [flash] Error 2
Code: Select all
ESP_LOGI(TAG, "ETHMAC: %02x:%02x:%02x:%02x:%02x:%02x",
Code: Select all
ESP_LOGI(TAG, "ETHMAC: %02x:%02x:%02x:%02x:%02x %02x",
Code: Select all
ESP_LOGI(TAG, "ETHMAC: %02x:%02x:%02x:%02x:%02x:%02xX",
Is there a sequence of characters in the flashing process that will cause issues? This is doubly weird since the flashed file is compressed.
Robin