strange behavior "make flash"

Xarlan
Posts: 12
Joined: Tue Jul 10, 2018 3:09 pm

strange behavior "make flash"

Postby Xarlan » Fri Jan 04, 2019 5:43 pm

Hello
Host OS:
Linux 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Linux Mint 19.1 Mate
esp32: ESP32-PICO-KIT V4 board
ESP-IDF:
$ git describe --tags --dirty
v3.3-beta1-169-g3c94b6e10
I changed the owner for "/opt/esp32/*" - current owner is me/user

In Eclipse (Version: 2018-12 (4.10.0))
I can build project without error (Build Finished. 0 errors, 0 warnings. (took 935ms))
After that in console I printed:

$ make flash
Toolchain path: /opt/esp32/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
Python requirements from /opt/esp32/esp-idf/requirements.txt are satisfied.
App "RFtool" version: 4e1c69f-dirty
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.6-beta1
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, Embedded Flash, Coding Scheme None
MAC: d8:a0:1d:40:78:4c
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 24096 bytes to 14399...
Wrote 24096 bytes (14399 compressed) at 0x00001000 in 1.3 seconds (effective 151.2 kbit/s)...
Hash of data verified.
Compressed 614288 bytes to 372259...
Wrote 614288 bytes (372259 compressed) at 0x00010000 in 33.0 seconds (effective 149.1 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1787.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

And after the success updating firmware I see the previous firmware. The new firmware don't uploaded.
I try connect dev-board to different USB, reboot my PC - the situation is the same.

vonnieda
Posts: 145
Joined: Tue Nov 07, 2017 3:42 pm

Re: strange behavior "make flash"

Postby vonnieda » Sat Jan 05, 2019 1:45 am

Has this board had OTA performed? If so, the bootloader is probably booting to the OTA partition, instead of the factory one you are uploading. Try `make erase_flash` first to clear the partition.

Jason

Xarlan
Posts: 12
Joined: Tue Jul 10, 2018 3:09 pm

Re: strange behavior "make flash"

Postby Xarlan » Sat Jan 05, 2019 8:05 pm

2 vonnieda
thank you for fast reply

As I see the troubleshooting was from Eclipse.
First trouble - when I press "build" - current version of Eclipse don't save changes
Second trouble - the flashing start work properly after I done "make all", "make flash" in console, after that build and flash under Eclipse start work correct.

Who is online

Users browsing this forum: No registered users and 110 guests