These are chat archives for SmingHub/Sming

27th
Jul 2017
Andriy Petrynchyn
@petrynchyn
Jul 27 2017 06:05

@slaff

@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

result is the same:

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

samples HttpServer_WebSockets, ScreenOLED_SSD1306 and my project work fine

slaff
@slaff
Jul 27 2017 07:29
@petrynchyn Ok, I know why. There is overlapping. The size of the first rom, out/firmware/0x00000.bin, is hex(45056) = 0xb000. It means the first rom starts at 0 and ends at 0xb000. But the second ROM starts at 0xa000, and overwrites the flash data from 0xa000 until 0xb000 making the rom invalid. Read the second last comment from SmingHub/Sming#972. It contains explanation what to do.