Post-Compile Uploader
Posted: Fri Aug 18, 2017 1:28 am
Trying to use Arduino Builder to upload sample FreematicsONE+ datalogger sketch, but keep getting errors: Error code: 2 typically, sometimes failure to connect. Using default settings, COM5 USB port which seems to work fine for the Serial Monitor. Arduino Builder 1.0.2 output pasted below. Any suggestions? Thanks
_____________________________________
Linking all objects...
Generating flash binary (C:\New-Projects\Freematics\master\firmware_v5\datalogger\datalogger\datalogger.bin)...
text data bss dec hex filename
155462 36844 3632 195938 2fd62 C:\Users\Stephen\AppData\Local\Temp/ArduinoUploader/datalogger.elf
Compiliation successfully completed!
Starting upload for ESP32 via COM5...
Start uploading @512000bps
hardware/tools/python/python hardware/tools/esptool/esptool.py --chip esp32 --port COM5 --baud 512000 --before default_reset --after hard_reset write_flash -z --flash_freq 40m --flash_mode dio --flash_size 4MB 0x1000 hardware/tools/esp32/sdk/bin/bootloader.bin 0x8000 hardware/tools/esp32/partitions/default.bin 0xe000 hardware/tools/esp32/partitions/boot_app0.bin 0x10000 "C:\New-Projects\Freematics\master\firmware_v5\datalogger\datalogger\datalogger.bin"
esptool.py v2.0-beta3
Connecting...esptool.py v2.0-beta3
Connecting.....________......______....____.....______........_.....________.__..........__....________....._____
Then "Uploading not successful (Error code:2)
_____________________________________
Linking all objects...
Generating flash binary (C:\New-Projects\Freematics\master\firmware_v5\datalogger\datalogger\datalogger.bin)...
text data bss dec hex filename
155462 36844 3632 195938 2fd62 C:\Users\Stephen\AppData\Local\Temp/ArduinoUploader/datalogger.elf
Compiliation successfully completed!
Starting upload for ESP32 via COM5...
Start uploading @512000bps
hardware/tools/python/python hardware/tools/esptool/esptool.py --chip esp32 --port COM5 --baud 512000 --before default_reset --after hard_reset write_flash -z --flash_freq 40m --flash_mode dio --flash_size 4MB 0x1000 hardware/tools/esp32/sdk/bin/bootloader.bin 0x8000 hardware/tools/esp32/partitions/default.bin 0xe000 hardware/tools/esp32/partitions/boot_app0.bin 0x10000 "C:\New-Projects\Freematics\master\firmware_v5\datalogger\datalogger\datalogger.bin"
esptool.py v2.0-beta3
Connecting...esptool.py v2.0-beta3
Connecting.....________......______....____.....______........_.....________.__..........__....________....._____
Then "Uploading not successful (Error code:2)