These are chat archives for SmingHub/Sming

26th
Jul 2017
Andriy Petrynchyn
@petrynchyn
Jul 26 2017 11:19

Who can try example HttpServer_ConfigNetwork? I'm giving out:

ddr=0x000000b5, depc=0x00000000
Fatal exception (28): 
epc1=0x4000228b, epc2=0x00000000, epc3=0x00000000, excvaddr=0x000000b5, depc=0x00000000

Сommand xtensa-lx106-elf-objdump -dtr out/build/app.out | grep 4000228b does not produce any results

log:

petrynchyn@ubuntu:/opt/wshf/Projects/HttpServer_ConfigNetwork$ make clean
petrynchyn@ubuntu:/opt/wshf/Projects/HttpServer_ConfigNetwork$ make
C+ app/application.cpp
AR out/build/app_app.a
LD out/build/app.out

#Memory / Section info:
------------------------------------------------------------------------------
   Section|                   Description| Start (hex)|   End (hex)|Used space
------------------------------------------------------------------------------
      data|        Initialized Data (RAM)|    3FFE8000|    3FFE8384|     900
    rodata|           ReadOnly Data (RAM)|    3FFE8390|    3FFEB1B4|   11812
       bss|      Uninitialized Data (RAM)|    3FFEB1B8|    3FFF1F70|   28088
      text|            Cached Code (IRAM)|    40100000|    40107250|   29264
irom0_text|           Uncached Code (SPI)|    4020A000|    4024F268|  283240
Total Used RAM : 40800
Free RAM : 41120
Free IRam : 3522
------------------------------------------------------------------------------
# Generating image...
Generate firmware images successully in folder out/firmware.
Done
# Generating spiffs_bin
Checking for spiffs files
web/build directory exists. Creating out/firmware/spiff_rom.bin
Creating rom 'out/firmware/spiff_rom.bin' of size 0x20000 (131072) bytes.
Adding files in directory 'web/build'.
Added '.lastModified' to spiffs (30 bytes).
Added 'bootstrap-core.css.gz' to spiffs (15861 bytes).
Added 'core.js.gz' to spiffs (30474 bytes).
Added 'index.html' to spiffs (6030 bytes).
Added 'settings.html' to spiffs (2535 bytes).
Added 'wifi-sprites.png' to spiffs (1769 bytes).
out/firmware/spiff_rom.bin---------->0x50000
petrynchyn@ubuntu:/opt/wshf/Projects/HttpServer_ConfigNetwork$ make flashinit
Flash init data default and blank data.
/opt/esp-open-sdk/esptool/esptool.py -p /dev/ttyUSB0 -b 115200 erase_flash
esptool.py v1.2
Connecting...
Running Cesanta flasher stub...
Erasing flash (this may take a while)...
Erase took 6.7 seconds
/opt/esp-open-sdk/esptool/esptool.py -p /dev/ttyUSB0 -b 115200 write_flash -ff 40m -fm qio -fs 32m 0x3fc000 /opt/esp-open-sdk/sdk/bin/esp_init_data_default.bin 0x3fe000 /opt/esp-open-sdk/sdk/bin/blank.bin 0x50000 /opt/Sming/Sming/compiler/data/blankfs.bin
esptool.py v1.2
Connecting...
Running Cesanta flasher stub...
Writing 4096 @ 0x3fc000... 4096 (100 %)
Wrote 4096 bytes at 0x3fc000 in 0.4 seconds (89.4 kbit/s)...
Writing 4096 @ 0x3fe000... 4096 (100 %)
Wrote 4096 bytes at 0x3fe000 in 0.4 seconds (89.7 kbit/s)...
Writing 16384 @ 0x50000... 16384 (100 %)
Wrote 16384 bytes at 0x50000 in 1.4 seconds (92.0 kbit/s)...
Leaving...
petrynchyn@ubuntu:/opt/wshf/Projects/HttpServer_ConfigNetwork$ make flash
Killing Terminal to free /dev/ttyUSB0
/opt/Sming/Sming/Makefile-project.mk:454: спроба виконання рецепта для мети «flash» зазнала невдачі
make: [flash] Вбито (ігнорується)
/opt/esp-open-sdk/esptool/esptool.py -p /dev/ttyUSB0 -b 115200 write_flash -ff 40m -fm qio -fs 32m 0x00000 out/firmware/0x00000.bin 0x0a000 out/firmware/0x0a000.bin  0x50000 out/firmware/spiff_rom.bin
esptool.py v1.2
Connecting...
Running Cesanta flasher stub...
Flash params set to 0x0040
Writing 45056 @ 0x0... 45056 (100 %)
Wrote 45056 bytes at 0x0 in 4.0 seconds (89.5 kbit/s)...
Writing 286720 @ 0xa000... 286720 (100 %)
Wrote 286720 bytes at 0xa000 in 24.8 seconds (92.5 kbit/s)...
Writing 131072 @ 0x50000... 131072 (100 %)
Wrote 131072 bytes at 0x50000 in 11.3 seconds (92.6 kbit/s)...
Leaving...
python -m serial.tools.miniterm /dev/ttyUSB0 115200 
--- Miniterm on /dev/ttyUSB0  115200,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ddr=0x000000b5, depc=0x00000000
Fatal exception (28): 
epc1=0x4000228b, epc2=0x00000000, epc3=0x00000000, excvaddr=0x000000b5, depc=0x00000000
Fatal exception (28): 
epc1=0x4000228b, epc2=0x00000000, epc3=0x00000000, excvaddr=0x000000b5, depc=0x00000000
Fatal exception (28): 
epc1=0x4000228b, epc2=0x00000000, epc3=0x00000000, excvaddr=0x000000b5, depc=0x00000000
Andriy Petrynchyn
@petrynchyn
Jul 26 2017 12:03
after reset button in com port speed 7600
 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 29264, room 16 
tail 0
chksum 0x4f
load 0x3ffe8000, len 900, room 8 
tail 12
chksum 0xa1
ho 0 tail 12 room 4
load 0x3ffe8390, len 11812, room 12 
tail 8
chksum 0xb4
csum 0xb4
csum err
ets_main.c
slaff
@slaff
Jul 26 2017 15:51
@petrynchyn The order of commands is important here:
0. cd /opt/wshf/Projects/HttpServer_ConfigNetwork
1. /opt/esp-open-sdk/esptool/esptool.py -p /dev/ttyUSB0 -b 115200 erase_flash # run it only once 
2. make flashinit # again run it only once
3. make -C $SMING_HOME dist-clean
4. make
slaff
@slaff
Jul 26 2017 16:03
Are there Windows users that use choco to download Sming? If yes, can you try for me if the following will download the latest stable version for you:
choco upgrade -y -f sming.core --version 0.0.4
By the way 3.3.3 is officially released( https://sminghub.github.io/Sming/Release3.3/ ). Enjoy :)