Open lrodorigo opened 6 years ago
Did you try to reset/restart the chip after the inital flashing before updating the chip ?
You mean to flash (by uart) -> power cycle -> OTA? I'll try this ASAP.
Anyway, yesterday evening I noticed a strange behaviour.
The booted ROM seems to change (randomly?) at each power cycle.
I also tried to switch from master
to development
I can confirm that the rom in use switches at each power cycle (or System.reset()
), even if no rom switch is made.
Rom 0 -> Power Cycle -> Rom 1 -> Power Cycle etc...
Rom seems to be written correctly.
Getting the same issue with rBoot OTA updates on the develop branch:
0x40247e26: HttpConnection::staticOnMessageComplete(http_parser) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:129 0x40100de4: pvPortRealloc at ??:? 0x40247e21: Delegate<int (HttpConnection&, bool)>::operator()(HttpConnection&, bool) const at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:129 (inlined by) HttpConnection::staticOnMessageComplete(http_parser) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:213 0x401059f8: String::changeBuffer(unsigned int) at /opt/Sming/Sming/Wiring/WString.cpp:729 0x4023516e: String::reserve(unsigned int) at /opt/Sming/Sming/Wiring/WString.cpp:729 0x402351b6: String::copy(char const, unsigned int) at /opt/Sming/Sming/Wiring/WString.cpp:729 0x40207204: free at C:\DEV\ESP8266\esp_microc/malloc/malloc.c:15 0x40105ae8: String::operator=(String const&) at /opt/Sming/Sming/Wiring/WString.cpp:729 0x40235134: String::~String() at /opt/Sming/Sming/Wiring/WString.cpp:729 0x40247963: URL::toString() at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:129 0x40234d44: m_printf at /opt/Sming/Sming/system/m_printf.cpp:110 0x40207204: free at C:\DEV\ESP8266\esp_microc/malloc/malloc.c:15 0x40249725: MethodCaller<int (rBootHttpUpdate::)(HttpConnection&, bool)>::invoke(HttpConnection&, bool) at /opt/Sming/Sming/SmingCore/Network/../Delegate.h:80 (discriminator 3) 0x40247e21: Delegate<int (HttpConnection&, bool)>::operator()(HttpConnection&, bool) const at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:129 (inlined by) HttpConnection::staticOnMessageComplete(http_parser) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:213 0x4024869c: HttpConnection::onReceive(pbuf) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:569 0x40234cd8: m_vprintf at /opt/Sming/Sming/system/m_printf.cpp:75 0x40239bfb: TcpClient::onReceive(pbuf) at /opt/Sming/Sming/SmingCore/Network/TcpClient.cpp:138 0x4024865c: HttpConnection::onReceive(pbuf) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:559 0x4010473d: trc_NeedRTS at ??:? 0x401031fe: lmacTxFrame at ??:? 0x401048cc: trc_NeedRTS at ??:? 0x4024780c: HttpConnection::staticOnBody(http_parser, char const, unsigned int) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:129 0x40104cfa: wDev_ProcessFiq at ??:? 0x402442be: http_parser_execute at /opt/Sming/Sming/third-party/http-parser/http_parser.c:2169 0x4024869c: HttpConnection::onReceive(pbuf) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:569 0x4022ff3d: espconn_init at ??:? 0x4022ff3d: espconn_init at ??:? 0x40239c88: TcpClient::onReadyToSendData(TcpConnectionEvent) at /opt/Sming/Sming/SmingCore/Network/TcpClient.cpp:148 0x40248639: HttpConnection::onReadyToSendData(TcpConnectionEvent) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:437 0x40213bd3: pp_attach at ??:? 0x40213c22: pp_attach at ??:? 0x40213d2e: pp_attach at ??:? 0x40103a46: pp_post at ??:? 0x40213093: ppTxPkt at ??:? 0x40218fa4: ieee80211_output_pbuf at ??:? 0x40224a18: etharp_send_ip at etharp.c:? 0x40220f89: pbuf_free at ??:? 0x40224c45: etharp_output_to_arp_index at etharp.c:? 0x40247188: TcpConnection::staticOnReceive(void, tcp_pcb, pbuf, signed char) at /opt/Sming/Sming/SmingCore/Network/TcpConnection.cpp:707 0x40224eac: etharp_output at ??:? 0x4022eeb8: inet_chksum_pseudo at ??:? 0x40224808: ip_output_if_opt at ??:? 0x4021de7c: cnx_update_bss_more at ??:? 0x4022483c: ip_output_if at ??:? 0x402210cc: pbuf_alloc at ??:? 0x4022487c: ip_output at ??:? 0x40222735: tcp_send_empty_ack at ??:? 0x402227e6: tcp_output at ??:? 0x402271a0: tcp_input at ??:? 0x40224585: ip_input at ??:? 0x40221c9c: tcp_tmr at ??:? 0x40224f49: ethernet_input at ??:? 0x401008fa: ets_timer_setfn at ??:? 0x4010083e: wdt_feed at ??:? 0x40202dc8: ets_timer_handler_isr at ??:? 0x40202dee: ets_timer_handler_isr at ??:? 0x40206acf: ets_snprintf at ??:? 0x40000f49: ?? ??:0
The next boot the correct ROM appears to be selected, however.
Hi! Thanks for reporting. Can you try to power cycle the device? In my case I see a different the boot partition at each boot
Il gio 21 dic 2017, 16:18 Maya Posch notifications@github.com ha scritto:
Getting the same issue with rBoot OTA updates on the develop branch:
0x40247e26: HttpConnection::staticOnMessageComplete(http_parser) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:129 0x40100de4: pvPortRealloc at ??:? 0x40247e21: Delegate<int (HttpConnection&, bool)>::operator()(HttpConnection&, bool) const at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:129 (inlined by) HttpConnection::staticOnMessageComplete(http_parser) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:213 0x401059f8: String::changeBuffer(unsigned int) at /opt/Sming/Sming/Wiring/WString.cpp:729 0x4023516e: String::reserve(unsigned int) at /opt/Sming/Sming/Wiring/WString.cpp:729 0x402351b6: String::copy(char const, unsigned int) at /opt/Sming/Sming/Wiring/WString.cpp:729 0x40207204: free at C:\DEV\ESP8266\esp_microc/malloc/malloc.c:15 0x40105ae8: String::operator=(String const&) at /opt/Sming/Sming/Wiring/WString.cpp:729 0x40235134: String::~String() at /opt/Sming/Sming/Wiring/WString.cpp:729 0x40247963: URL::toString() at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:129 0x40234d44: m_printf at /opt/Sming/Sming/system/m_printf.cpp:110 0x40207204: free at C:\DEV\ESP8266\esp_microc/malloc/malloc.c:15 0x40249725: MethodCaller<int (rBootHttpUpdate::)(HttpConnection&, bool)>::invoke(HttpConnection&, bool) at /opt/Sming/Sming/SmingCore/Network/../Delegate.h:80 (discriminator 3) 0x40247e21: Delegate<int (HttpConnection&, bool)>::operator()(HttpConnection&, bool) const at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:129 (inlined by) HttpConnection::staticOnMessageComplete(http_parser) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:213 0x4024869c: HttpConnection::onReceive(pbuf) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:569 0x40234cd8: m_vprintf at /opt/Sming/Sming/system/m_printf.cpp:75 0x40239bfb: TcpClient::onReceive(pbuf) at /opt/Sming/Sming/SmingCore/Network/TcpClient.cpp:138 0x4024865c: HttpConnection::onReceive(pbuf) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:559 0x4010473d: trc_NeedRTS at ??:? 0x401031fe: lmacTxFrame at ??:? 0x401048cc: trc_NeedRTS at ??:? 0x4024780c: HttpConnection::staticOnBody(http_parser, char const, unsigned int) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:129 0x40104cfa: wDev_ProcessFiq at ??:? 0x402442be: http_parser_execute at /opt/Sming/Sming/third-party/http-parser/http_parser.c:2169 0x4024869c: HttpConnection::onReceive(pbuf) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:569 0x4022ff3d: espconn_init at ??:? 0x4022ff3d: espconn_init at ??:? 0x40239c88: TcpClient::onReadyToSendData(TcpConnectionEvent) at /opt/Sming/Sming/SmingCore/Network/TcpClient.cpp:148 0x40248639: HttpConnection::onReadyToSendData(TcpConnectionEvent) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:437 0x40213bd3: pp_attach at ??:? 0x40213c22: pp_attach at ??:? 0x40213d2e: pp_attach at ??:? 0x40103a46: pp_post at ??:? 0x40213093: ppTxPkt at ??:? 0x40218fa4: ieee80211_output_pbuf at ??:? 0x40224a18: etharp_send_ip at etharp.c:? 0x40220f89: pbuf_free at ??:? 0x40224c45: etharp_output_to_arp_index at etharp.c:? 0x40247188: TcpConnection::staticOnReceive(void, tcp_pcb, pbuf, signed char) at /opt/Sming/Sming/SmingCore/Network/TcpConnection.cpp:707 0x40224eac: etharp_output at ??:? 0x4022eeb8: inet_chksum_pseudo at ??:? 0x40224808: ip_output_if_opt at ??:? 0x4021de7c: cnx_update_bss_more at ??:? 0x4022483c: ip_output_if at ??:? 0x402210cc: pbuf_alloc at ??:? 0x4022487c: ip_output at ??:? 0x40222735: tcp_send_empty_ack at ??:? 0x402227e6: tcp_output at ??:? 0x402271a0: tcp_input at ??:? 0x40224585: ip_input at ??:? 0x40221c9c: tcp_tmr at ??:? 0x40224f49: ethernet_input at ??:? 0x401008fa: ets_timer_setfn at ??:? 0x4010083e: wdt_feed at ??:? 0x40202dc8: ets_timer_handler_isr at ??:? 0x40202dee: ets_timer_handler_isr at ??:? 0x40206acf: ets_snprintf at ??:? 0x40000f49: ?? ??:0
The next boot the correct ROM appears to be selected, however.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SmingHub/Sming/issues/1275#issuecomment-353376539, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ30NSRK8DHXXhqE3OKJGELNszH5oVBks5tCnbFgaJpZM4QPRgB .
I got this error too when I tried a small sample of my own (adapted from sample in Sming) but a "make flashinit" before "make flash" fixed it.
1st I warn that I do not use the example directly. Despite that I must say I only copy-pasted the code into a new OTA class. Probably it is about the same thing.
My ESP restarts (Software Watchdog Reset) after trying to perform OTA update.
Attached is the dump:
0x40249d08: http_parser_execute at /opt/Sming/Sming/third-party/http-parser/http_parser.c:2107 0x4024f345: HttpConnection::onReceive(pbuf) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:558 0x40103d8e: ppEnqueueRxq at ??:? 0x402084ac: free at C:\DEV\ESP8266\esp_microc/malloc/malloc.c:15 0x402083b6: rboot_write_end at /opt/Sming/Sming/third-party/rboot/appcode/rboot-api.c:114 0x402084ac: free at C:\DEV\ESP8266\esp_microc/malloc/malloc.c:15 0x4023f820: rBootItemOutputStream::close() at /opt/Sming/Sming/Wiring/Print.h:35 0x402084ac: free at C:\DEV\ESP8266\esp_microc/malloc/malloc.c:15 0x4023b442: String::copy(char const, unsigned int) at /opt/Sming/Sming/Wiring/WString.cpp:729 0x401061ed: String::operator=(char const) at /opt/Sming/Sming/Wiring/WString.cpp:729 0x4024f450: HttpResponse::reset() at /opt/Sming/Sming/SmingCore/Network/Http/HttpResponse.cpp:116 (discriminator 1) 0x4024e0f1: HttpConnection::reset() at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:558 0x4024e226: HttpConnection::cleanup() at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:558 0x4024f37c: HttpConnection::onReceive(pbuf) at /opt/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:558 0x40228937: tcp_receive at tcp_in.c:? 0x40229431: tcp_input at ??:? 0x40218593: ieee80211_ht_updateparams at ??:? 0x4021f1f3: cnx_update_bss_more at ??:? 0x4021cd69: scan_parse_beacon at ??:? 0x4021cdc9: scan_parse_beacon at ??:? 0x4021ccb1: scan_parse_beacon at ??:? 0x40213e88: ppRecycleRxPkt at ??:? 0x40218fb5: ieee80211_parse_beacon at ??:? 0x40100b50: ets_timer_arm_new at ??:? 0x4023f43b: TcpConnection::staticOnReceive(void, tcp_pcb, pbuf*, signed char) at /opt/Sming/Sming/SmingCore/Network/TcpConnection.cpp:584 0x40000f58: ?? ??:0 0x40229640: tcp_input at ??:? 0x40222571: pbuf_alloc at ??:? 0x402259f9: ip_input at ??:? 0x402263bd: ethernet_input at ??:? 0x40100976: ets_timer_setfn at ??:? 0x401008ba: wdt_feed at ??:? 0x40203994: ets_timer_handler_isr at ??:? 0x402039ba: ets_timer_handler_isr at ??:? 0x40207e83: ets_snprintf at ??:? 0x40000f49: ?? ??:0 0x40000f49: ?? ??:0
What I was able to find is that the situation happens immediately after otaUpdater->start();
has been executed.
Even if I put return;
at the first row of rBootHttpUpdate::start(), it crashes.
If I comment otaUpdater->start();
it doesn't perform the update, but it doesn't crash.
@kmihaylov Would it be possible to paste the code that you use, or at least to provide a sample code where the issue is reproducible?
Even if I put return; at the first row of rBootHttpUpdate::start(), it crashes. If I comment otaUpdater->start(); it doesn't perform the update, but it doesn't crash.
Hm.. My blind guess is that otaUpdate is either not initialized or points to a memory address that was freed earlies and thus is invalid.
include "ota.h"
include "application.h"
include <SmingCore/SmingCore.h>
rBootHttpUpdate* otaUpdater = 0;
OTA::OTA() { debugf("OTA init"); } OTA::~OTA() {}
void OTA::initCommand() { commandHandler.registerCommand( CommandDelegate( "updateFW", "update the firmware", "OTA", commandFunctionDelegate(&OTA::processCmd,this) ) ); }
void OTA::processCmd(String commandLine, CommandOutput* commandOutput) { Vector
commandToken; int numToken = splitString(commandLine, ' ' , commandToken); if (numToken == 1) { if( commandToken[0] == "updateFW" ) { this->update(); } } / else { if (commandToken[1] == "on") { status = true; commandOutput->printf("Status ON\r\n"); } else if (commandToken[1] == "off") { status = false; commandOutput->printf("Status OFF\r\n"); } else if (commandToken[1] == "status") { String tempString = status ? "ON" : "OFF"; commandOutput->printf("Example Status is %s\r\n",tempString.c_str()); }; } / }
void OTA::updateCallBack(rBootHttpUpdate& client, bool result) {
Serial.println("In callback..."); if(result == true) { // success uint8 slot; slot = rboot_get_current_rom(); if (slot == 0) slot = 1; else slot = 0; // set to boot new rom and then reboot Serial.printf("Firmware updated, rebooting to rom %d...\r\n", slot); rboot_set_current_rom(slot); System.restart(); } else { // fail Serial.println("Firmware update failed!"); } }
void OTA::update() {
uint8 slot; rboot_config bootconf;
Serial.println("Updating...");
// need a clean object, otherwise if run before and failed will not run again if (otaUpdater) delete otaUpdater; otaUpdater = new rBootHttpUpdate();
// select rom slot to flash bootconf = rboot_get_config(); slot = bootconf.current_rom; if (slot == 0) slot = 1; else slot = 0;
ifndef RBOOT_TWO_ROMS
// flash rom to position indicated in the rBoot config rom table otaUpdater->addItem(bootconf.roms[slot], ROM_0_URL);
else
// flash appropriate rom if (slot == 0) { otaUpdater->addItem(bootconf.roms[slot], ROM_0_URL); } else { otaUpdater->addItem(bootconf.roms[slot], ROM_1_URL); }
endif
ifndef DISABLE_SPIFFS
// use user supplied values (defaults for 4mb flash in makefile) if (slot == 0) { otaUpdater->addItem(RBOOT_SPIFFS_0, SPIFFS_URL); } else { otaUpdater->addItem(RBOOT_SPIFFS_1, SPIFFS_URL); }
endif
// request switch and reboot on success otaUpdater->switchToRom(slot); // and/or set a callback (called on failure or success without switching requested) //otaUpdater->setCallback(OTA::updateCallBack); Serial.printf("rBoot_config, romSlot: %d , addr1: %#010x , addr2: %#010x\r\n" , bootconf.current_rom , bootconf.roms[0] , bootconf.roms[1]); system_soft_wdt_stop(); // start update otaUpdater->start(); }
void OTA::Switch() { uint8 before, after; before = rboot_get_current_rom(); if (before == 0) after = 1; else after = 0; Serial.printf("Swapping from rom %d to rom %d.\r\n", before, after); rboot_set_current_rom(after); Serial.println("Restarting...\r\n"); System.restart(); }
I can send an archive of the whole project for you to test if you would like to do so?
I can send an archive of the whole project for you to test if you would like to do so?
That is something that can definitely help but I will be able to review it after a month on a real device. Before we go that further why don't you try to flash the original unmodified rBoot sample and check if that one is working. If it also does not work then take care to flashinit
the device as described in our WIKI.
Hello slaff,
Since I'm building the project on another machine (I'm flashing it on my windows machine), I had to track exactly what flashinit does to perform it. Actually I'm using similar command.
Here is what I run manually, but should completely correspond to flashinit:
esptool.py --port COM3 --baud 230400 erase_flash esptool.py --port COM3 --baud 230400 write_flash --flash_freq 40m --flash_mode qio --flash_size 4MB 0x3fc000 esp_init_data_default.bin 0x3fe000 blank.bin 0x100000 blankfs.bin
For some reason the ESP doesn't respond to serial commands (from the example), I added the following lines to the bottom of init();
WifiStation.config(WIFI_SSID, WIFI_PWD); WifiStation.enable(true); WifiStation.connect(); WifiEvents.onStationGotIP(gotIP);
gotIP:
void gotIP(IPAddress ip, IPAddress netmask, IPAddress gateway) { OtaUpdate(); }
And the result is here. Actually now it works!
rll▒▒|▒l▒| ▒ l▒ b|▒▒▒▒r▒b▒ b▒▒nn▒lnn▒▒▒ bp▒▒lrlrlp▒n▒ ▒ l b n▒|l▒ ▒▒b▒▒nn▒l▒▒l
▒nn l
nr▒▒▒n ▒p▒n▒ r▒▒▒▒▒ b n▒|▒▒▒ b▒▒nn▒ l
▒nnl▒lnr▒▒▒n b▒▒
r▒▒n b▒▒rl▒b▒nn▒▒▒p| ▒blb▒np
b▒b▒b▒▒nn▒n▒b▒nbp~▒nl▒n▒n▒n~b ▒ llpb▒▒▒n▒nlln▒▒▒ l▒lll▒n▒n▒▒▒▒b ▒ lll~rl▒b▒nn▒▒l▒nnn▒n▒▒▒n▒nlrl▒bn▒▒|▒ ▒▒▒▒n▒▒▒nn▒▒▒nn▒▒▒bl ▒nn▒▒|▒▒▒n▒ ▒bl▒▒▒▒n▒r▒▒n|▒ l lll
▒▒r▒l▒l▒ l▒▒r▒l▒l▒ l
▒▒r▒l ▒▒▒ ll`▒▒▒n▒nlrlStrying to mount spiffs at 0x00100000, length 65536 fs.start: size:64 Kb, offset:0x100000mount res: 0
Currently running rom 0. Type 'help' and press enter for instructions.
Station configuration was updated to: vila-net-3 mode : sta(5c:cf:7f:13:99:a6) add if0 scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 8 cnt
connected with vila-net-3, channel 11 dhcp client start... connect to ssid vila-net-3, channel 11
ip:192.168.0.106,mask:255.255.255.0,gw:192.168.0.1 ip:192.168.0.106,mask:255.255.255.0,gw:192.168.0.1
Updating... In callback... Firmware updated, rebooting to rom 1... state: 5 -> 0 (0) rm 0 del if0 usl
***** Fatal exception 28 pc=0x40240b92 sp=0x3ffffc10 excvaddr=0x00000068 ps=0x00000030 sar=0x00000000 vpri=0x3ff1fe00 r00: 0x40240b88=1076104072 r01: 0x3ffffc10=1073740816 r02: 0x00000000= 0 r03: 0x000000ff= 255 r04: 0x3ffea130=1073652016 r05: 0x3fff1220=1073680928 r06: 0x3fff0af8=1073679096 r07: 0x00000020= 32 r08: 0x3fff0bb8=1073679288 r09: 0x000000c8= 200 r10: 0x00000000= 0 r11: 0x3ffef698=1073673880 r12: 0x3fff19a8=1073682856 r13: 0x00000000= 0 r14: 0x00000000= 0 r15: 0x3ffecdaa=1073663402
Stack dump: To decode the stack dump call from command line: python $SMING_HOME/../tools/decode-stacktrace.py out/build/app.out and copy & paste the text enclosed in '===='.
3ffffc10: 40240b92 00000030 00000000 3ff1fe00 3ffffc20: 40240b88 00000000 000000ff 3ffea130 3ffffc30: 3fff1220 3fff0af8 00000020 3fff0bb8 3ffffc40: 000000c8 00000000 3ffef698 3fff19a8 3ffffc50: 00000000 00000000 3ffecdaa 0000001c 3ffffc60: 3ffea100 3ffef698 3ffeeb04 00000000 3ffffc70: 00000000 02d7a062 40203ba5 00000001 3ffffc80: 3fff0b98 4020811c 00000001 00202000 3ffffc90: 402312a0 00000001 3fff06e8 40231706 3ffffca0: 3fff1634 3fff06e8 00000001 40234b70 3ffffcb0: 3fff1634 00000002 3fff1660 40234bfa 3ffffcc0: 3fff1fb0 000e000e 3fff1630 40234c7c 3ffffcd0: 00000002 00030003 3fff1e90 00020002 3ffffce0: 3fff1ff0 4020811c 3fff19a8 3ffecdaa 3ffffcf0: 3fff1a40 3fff1958 3fff19a8 40244635 3ffffd00: 3fff1a40 3fff1a40 3fff19a8 40240b88 3ffffd10: 3fff1ff8 00250025 3fff19a8 40244c1d 3ffffd20: 000000ff 3fff1a40 0000016c 4023e0a6 3ffffd30: 3ffecc3e 3fff081c 00000000 00000000 3ffffd40: 00000000 00000000 00000000 3ffecdab 3ffffd50: 0000016d 00000000 7fffffff 00000002 3ffffd60: 0000011c 4010541e 3fff19a8 40244ed0 3ffffd70: 40105577 00080000 00002200 00000000 3ffffd80: 3fff1f90 3fff1f90 3fff19a8 40241d71 3ffffd90: 3fffc278 40105274 3fffc200 00000022 3ffffda0: 3ffffdb0 00000030 0000001c ffffffff 3ffffdb0: 40227155 00000030 0000001c ffffffff 3ffffdc0: 40228075 eb7c44cd 000019f9 3ffefc90 3ffffdd0: 3ffefc98 fffffa92 00007210 0000016d 3ffffde0: 3ffecc2a 00000018 0000016d 3fff1b70 3ffffdf0: 3ffefc8c 3fff1b70 3ffefc80 00000030 3ffffe00: 00000000 00000000 00040000 0000056e 3ffffe10: 3ffea5e8 4010541e 0000001b 000000ff 3ffffe20: 00000000 00000006 3fff1818 40225920 3ffffe30: 3fff1228 00000000 00000000 402221b0 3ffffe40: 3fff1b70 00000006 3fff1818 40225960 3ffffe50: 3fff1228 401029da 00040000 ffffffff 3ffffe60: 3fff1b70 3fff1b74 00000006 00000001 3ffffe70: 00000000 f9190000 3fff1b70 3fff1874 3ffffe80: 3fff1b74 3fff1818 3fff1b70 40223819 3ffffe90: 3fff1a40 3fffdc80 3fff1298 3ffefc80 3ffffea0: 000000ff 000015b8 3fff1b70 00000000 3ffffeb0: 3fff1b70 3fff19a8 3fff1f90 4024361b 3ffffec0: 00000001 00000001 08000000 3ffefc80 3ffffed0: 3fff1b70 3ffefc88 3ffefc84 40228284 3ffffee0: 6a00a8c0 00000018 c2ddb5c3 00000018 3ffffef0: 00000000 00000000 3ffe9be2 402221e1 3fffff00: 3ffe0000 000001a3 00000024 3fff09cc 3fffff10: 3ffecc16 3fff09d0 3fff1f90 40225669 3fffff20: 002c4288 3fff1228 3fff1228 3ffef340 3fffff30: 00000000 3fff1f90 0000001c 3ffecc08 3fffff40: 3fffdc80 3fff1f90 3fff1228 4022602d 3fffff50: 0000005c 00000001 401039e2 3ffea5e8 3fffff60: 3ffee198 40103dfd 00000000 00000005 3fffff70: 00000002 40103b93 00000002 00000000 3fffff80: 40103bce 00000002 00000000 3fff12a8 3fffff90: 3fffdc80 00000000 3fff1f90 40207af3 3fffffa0: 40000f49 3fffdab0 ffffff01 ffffffff
================================================================ To decode the stack dump call from command line: python $SMING_HOME/../tools/decode-stacktrace.py out/build/app.out and copy & paste the text enclosed in '===='.
***** Software Watchdog Reset
================================================================ 3ffffbe0: 3ffe9be1 00000020 00000005 00000000 3ffffbf0: 3ffffc10 4021243a 00000000 0000001c 3ffffc00: 00000000 3fffc100 40231528 400005e1 3ffffc10: 40240b92 00000030 00000000 3ff1fe00 3ffffc20: 40240b88 00000000 000000ff 3ffea130 3ffffc30: 3fff1220 3fff0af8 00000020 3fff0bb8 3ffffc40: 000000c8 00000000 3ffef698 3fff19a8 3ffffc50: 00000000 00000000 3ffecdaa 0000001c 3ffffc60: 3ffea100 3ffef698 3ffeeb04 00000000 3ffffc70: 00000000 02d7a062 40203ba5 00000001 3ffffc80: 3fff0b98 4020811c 00000001 00202000 3ffffc90: 402312a0 00000001 3fff06e8 40231706 3ffffca0: 3fff1634 3fff06e8 00000001 40234b70 3ffffcb0: 3fff1634 00000002 3fff1660 40234bfa 3ffffcc0: 3fff1fb0 000e000e 3fff1630 40234c7c 3ffffcd0: 00000002 00030003 3fff1e90 00020002 3ffffce0: 3fff1ff0 4020811c 3fff19a8 3ffecdaa 3ffffcf0: 3fff1a40 3fff1958 3fff19a8 40244635 3ffffd00: 3fff1a40 3fff1a40 3fff19a8 40240b88 3ffffd10: 3fff1ff8 00250025 3fff19a8 40244c1d 3ffffd20: 000000ff 3fff1a40 0000016c 4023e0a6 3ffffd30: 3ffecc3e 3fff081c 00000000 00000000 3ffffd40: 00000000 00000000 00000000 3ffecdab 3ffffd50: 0000016d 00000000 7fffffff 00000002 3ffffd60: 0000011c 4010541e 3fff19a8 40244ed0 3ffffd70: 40105577 00080000 00002200 00000000 3ffffd80: 3fff1f90 3fff1f90 3fff19a8 40241d71 3ffffd90: 3fffc278 40105274 3fffc200 00000022 3ffffda0: 3ffffdb0 00000030 0000001c ffffffff 3ffffdb0: 40227155 00000030 0000001c ffffffff 3ffffdc0: 40228075 eb7c44cd 000019f9 3ffefc90 3ffffdd0: 3ffefc98 fffffa92 00007210 0000016d 3ffffde0: 3ffecc2a 00000018 0000016d 3fff1b70 3ffffdf0: 3ffefc8c 3fff1b70 3ffefc80 00000030 3ffffe00: 00000000 00000000 00040000 0000056e 3ffffe10: 3ffea5e8 4010541e 0000001b 000000ff 3ffffe20: 00000000 00000006 3fff1818 40225920 3ffffe30: 3fff1228 00000000 00000000 402221b0 3ffffe40: 3fff1b70 00000006 3fff1818 40225960 3ffffe50: 3fff1228 401029da 00040000 ffffffff 3ffffe60: 3fff1b70 3fff1b74 00000006 00000001 3ffffe70: 00000000 f9190000 3fff1b70 3fff1874 3ffffe80: 3fff1b74 3fff1818 3fff1b70 40223819 3ffffe90: 3fff1a40 3fffdc80 3fff1298 3ffefc80 3ffffea0: 000000ff 000015b8 3fff1b70 00000000 3ffffeb0: 3fff1b70 3fff19a8 3fff1f90 4024361b 3ffffec0: 00000001 00000001 08000000 3ffefc80 3ffffed0: 3fff1b70 3ffefc88 3ffefc84 40228284 3ffffee0: 6a00a8c0 00000018 c2ddb5c3 00000018 3ffffef0: 00000000 00000000 3ffe9be2 402221e1 3fffff00: 3ffe0000 000001a3 00000024 3fff09cc 3fffff10: 3ffecc16 3fff09d0 3fff1f90 40225669 3fffff20: 002c4288 3fff1228 3fff1228 3ffef340 3fffff30: 00000000 3fff1f90 0000001c 3ffecc08 3fffff40: 3fffdc80 3fff1f90 3fff1228 4022602d 3fffff50: 0000005c 00000001 401039e2 3ffea5e8 3fffff60: 3ffee198 40103dfd 00000000 00000005 3fffff70: 00000002 40103b93 00000002 00000000 3fffff80: 40103bce 00000002 00000000 3fff12a8 3fffff90: 3fffdc80 00000000 3fff1f90 40207af3 3fffffa0: 40000f49 3fffdab0 ffffff01 ffffffff
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 1344, room 16 tail 0 chksum 0x9c load 0x3ffe8000, len 660, room 8 tail 12 chksum 0xbd csum 0xbd
rBoot v1.4.2 - richardaburton@gmail.com Flash Size: 32 Mbit Flash Mode: QIO Flash Speed: 40 MHz rBoot Option: Big flash
Booting rom 1. ▒▒▒▒n▒r▒▒n|▒ l lll`▒▒r▒l▒▒trying to mount spiffs at 0x00300000, length 65536 fs.start: size:64 Kb, offset:0x300000
mount res: 0
Currently running rom 1. Type 'help' and press enter for instructions.
This is the rom from the OTA update! mode : null
To be honest I had a mistake with my esptool script, instead of 4M I was using 4M-c1 (my version doesn't support -fs 32m), also I was flashing the default_data to few other addresses...
Also Fatal exception 28 is different from my previous fatal exception 0.
So now it downloads the fw and reflashes it. I'm using domain name, not IP (FYI) so I'm happy. You can give us more light on what the error is, but otherwise the OTA works...
BTW: I don't know why the Basic_rBoot doesn't accept any commands. Any ideas? For my project I use the CommandProcessing class which works good.
I´ve the same problems and can´t get the ota update working... I´ve tried also the Basic_rBoot example but always with the same error. For the Basic_rBoot example i´ve changed only the url´s and my wifi credentials.
I´ve also tried latest Sming 3.5 and 3.1 and SDK 1.5.4 and 2.0.0 and have always the same error.
My development board is a NodeMCU v0.9 and my devel system is debian stretch.
For me the serial console of the Basic_rBoot example is working as expected.
Here is my serial log:
$ make flashinit
Flash init data default and blank data.
/home/johann/dev/esp8266/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 9.2 seconds
/home/johann/dev/esp8266/esp-open-sdk/esptool/esptool.py -p /dev/ttyUSB0 -b 115200 write_flash -ff 40m -fm qio -fs 32m 0x3fc000 /home/johann/dev/esp8266/esp-open-sdk/sdk/bin/esp_init_data_default.bin 0x3fe000 /home/johann/dev/esp8266/esp-open-sdk/sdk/bin/blank.bin 0x100000 /home/johann/dev/esp8266/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.8 kbit/s)...
Writing 4096 @ 0x3fe000... 4096 (100 %)
Wrote 4096 bytes at 0x3fe000 in 0.4 seconds (89.8 kbit/s)...
Writing 16384 @ 0x100000... 16384 (100 %)
Wrote 16384 bytes at 0x100000 in 1.4 seconds (91.7 kbit/s)...
Leaving...
$ make flash
/home/johann/dev/esp8266/esp-open-sdk/esptool/esptool.py -p /dev/ttyUSB0 -b 115200 write_flash -ff 40m -fm qio -fs 32m 0x00000 out/firmware/rboot.bin 0x01000 /home/johann/dev/esp8266/esp-open-sdk/sdk/bin/blank.bin 0x02000 out/firmware/rom0.bin 0x100000 out/firmware/spiff_rom.bin
esptool.py v1.2
Connecting...
Running Cesanta flasher stub...
Flash params set to 0x0040
Writing 4096 @ 0x0... 4096 (100 %)
Wrote 4096 bytes at 0x0 in 0.4 seconds (89.8 kbit/s)...
Writing 4096 @ 0x1000... 4096 (100 %)
Wrote 4096 bytes at 0x1000 in 0.4 seconds (89.8 kbit/s)...
Writing 303104 @ 0x2000... 303104 (100 %)
Wrote 303104 bytes at 0x2000 in 26.3 seconds (92.3 kbit/s)...
Writing 65536 @ 0x100000... 65536 (100 %)
Wrote 65536 bytes at 0x100000 in 5.7 seconds (92.1 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 ---
Booting rom 0.
��s�l�$␓�␌␌�l ␃��{�l�l␛�␌␄␌d`␃��;�$␌��␀�␄␌d$`␃sd�trying to mount spiffs at 0x00100000, length 65536
fs.start: size:64 Kb, offset:0x100000
mount res: 0
Currently running rom 0.
Type 'help' and press enter for instructions.
mode : null
mode : sta(5c:cf:7f:81:3c:b5)
add if0
Station configuration was updated to: home-A
del if0
usl
mode : null
mode : sta(5c:cf:7f:81:3c:b5)
add if0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 4
cnt
connected with home-A, channel 1
dhcp client start...
ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.254
Updating...
pm open,type:2 0
In callback...
Firmware updated, rebooting to rom 1...
state: 5 -> 0 (0)
rm 0
pm close 7
del if0
usl
***** Fatal exception 28
pc=0x4023efde sp=0x3ffffc10 excvaddr=0x00000068
ps=0x00000030 sar=0x00000000 vpri=0x3ff1fe00
r00: 0x4023efd4=1076096980 r01: 0x3ffffc10=1073740816 r02: 0x00000000= 0
r03: 0x000000ff= 255 r04: 0x00000038= 56 r05: 0x3fff1328=1073681192
r06: 0x3fff1278=1073681016 r07: 0x00000038= 56 r08: 0x3fffbff0=1073725424
r09: 0x00000090= 144 r10: 0x00000000= 0 r11: 0x3ffef610=1073673744
r12: 0x3fff17e8=1073682408 r13: 0x00000000= 0 r14: 0x00000000= 0
r15: 0x3ffebf84=1073659780
Stack dump:
To decode the stack dump call from command line:
python $SMING_HOME/../tools/decode-stacktrace.py out/build/app.out
and copy & paste the text enclosed in '===='.
================================================================
3ffffc10: 4023efde 00000030 00000000 3ff1fe00
3ffffc20: 4023efd4 00000000 000000ff 00000038
3ffffc30: 3fff1328 3fff1278 00000038 3fffbff0
3ffffc40: 00000090 00000000 3ffef610 3fff17e8
3ffffc50: 00000000 00000000 3ffebf84 0000001c
3ffffc60: 3ffea0d0 3ffef610 3ffeeac4 00000000
3ffffc70: 00000000 09e74eea 40203900 00000001
3ffffc80: 3fff1298 40207698 00000001 00202000
3ffffc90: 4022fc1c 00000001 3fff0648 40230082
3ffffca0: 3fff11f4 3fff0648 00000001 402334f0
3ffffcb0: 3fff11f4 00000002 3fff1220 4023357a
3ffffcc0: 3fff1dd8 000e000e 3fff11f0 402335fc
3ffffcd0: 00000002 00030003 3fff1bb0 00020002
3ffffce0: 3fff1f58 40207698 3fff17e8 3ffebf84
3ffffcf0: 3fff1880 3fff19a8 3fff17e8 40242a81
3ffffd00: 3fff1880 3fff1880 3fff17e8 4023efd4
3ffffd10: 3fff1f60 002f002f 3fff17e8 40242f8d
3ffffd20: 000000ff 3fff1880 0000000e 4023c4e6
3ffffd30: 3ffebf76 3fff0758 00000000 00000000
3ffffd40: 00000000 00000000 00000000 3ffebf85
3ffffd50: 0000000f 00000000 3fff1f22 3fff1ee8
3ffffd60: 3fff1148 3fff1bb0 3fff17e8 40243240
3ffffd70: 3ffea9c8 401036f5 00000002 00000000
3ffffd80: 3fff1d08 3fff1d08 3fff17e8 402401bd
3ffffd90: 00000022 40102219 00040000 3ffea550
3ffffda0: 3ffea5c8 40104c3e 00000020 3fff1ee8
3ffffdb0: 3fff1ee8 3fff1154 3fff1148 40224d78
3ffffdc0: 3fffc278 40104a94 3fffc200 00000022
3ffffdd0: 000000c0 0002736b 0000a8c0 402246d4
3ffffde0: 40227069 00000030 0000001c ffffffff
3ffffdf0: 3fff19cc 3fff19c8 000000ff 00000006
3ffffe00: 00000000 00000000 0000104a 00000adc
3ffffe10: 00000000 00000010 0000056e 000000ff
3ffffe20: 00000000 00000006 3fff1ee8 40224708
3ffffe30: 3fff1148 00000000 00000000 40220f98
3ffffe40: 3fff19c8 00000006 3fff1ee8 40224748
3ffffe50: 3fff1148 00000030 00000010 ffffffff
3ffffe60: 3fff19c8 3fff19cc 00000006 00000001
3ffffe70: 00000000 0d1a0000 3fff19c8 3fff1f44
3ffffe80: 3fff19cc 3fff1ee8 3fff19c8 40222601
3ffffe90: 3fff1880 3fffdc80 3ffed20c 3ffefbd8
3ffffea0: 000000ff 000015b8 3fff19c8 00000000
3ffffeb0: 3fff19c8 3fff17e8 3fff1d08 40241a67
3ffffec0: 00000000 00060000 ab2098c0 3ffefbd8
3ffffed0: 3fff19c8 3ffefbe0 3ffefbdc 4022706c
3ffffee0: 6f00a8c0 00000018 5eefc0bc 00000018
3ffffef0: 00000000 00000000 3fff08e8 40221981
3fffff00: 3fff0000 00000000 3ffeb2e6 3fff0904
3fffff10: 3ffebf4e 3fff0908 3fff1d08 40224451
3fffff20: 00000064 3fff1148 3fff1148 40221b7c
3fffff30: 3ffefac4 3ffefac0 09e1391c 3ffebf40
3fffff40: 3fffdc80 3fff1d08 3fff1148 40224e15
3fffff50: 0000005c 00000001 401031fe 3ffea5c8
3fffff60: 3ffee158 40103619 00000000 00000005
3fffff70: 00000002 401033af 00000002 00000000
3fffff80: 401033ea 00000002 00000000 3fff11a8
3fffff90: 3fffdc80 00000000 3fff1d08 4020706f
3fffffa0: 40000f49 3fffdab0 ffffff01 40000f49
================================================================
To decode the stack dump call from command line:
python $SMING_HOME/../tools/decode-stacktrace.py out/build/app.out
and copy & paste the text enclosed in '===='.
***** Software Watchdog Reset
================================================================
3ffffbe0: 3ffe9bc1 00000020 00000005 00000000
3ffffbf0: 3ffffc10 402119fe 00000000 0000001c
3ffffc00: 00000000 3fffc100 4022fea4 400005e1
3ffffc10: 4023efde 00000030 00000000 3ff1fe00
3ffffc20: 4023efd4 00000000 000000ff 00000038
3ffffc30: 3fff1328 3fff1278 00000038 3fffbff0
3ffffc40: 00000090 00000000 3ffef610 3fff17e8
3ffffc50: 00000000 00000000 3ffebf84 0000001c
3ffffc60: 3ffea0d0 3ffef610 3ffeeac4 00000000
3ffffc70: 00000000 09e74eea 40203900 00000001
3ffffc80: 3fff1298 40207698 00000001 00202000
3ffffc90: 4022fc1c 00000001 3fff0648 40230082
3ffffca0: 3fff11f4 3fff0648 00000001 402334f0
3ffffcb0: 3fff11f4 00000002 3fff1220 4023357a
3ffffcc0: 3fff1dd8 000e000e 3fff11f0 402335fc
3ffffcd0: 00000002 00030003 3fff1bb0 00020002
3ffffce0: 3fff1f58 40207698 3fff17e8 3ffebf84
3ffffcf0: 3fff1880 3fff19a8 3fff17e8 40242a81
3ffffd00: 3fff1880 3fff1880 3fff17e8 4023efd4
3ffffd10: 3fff1f60 002f002f 3fff17e8 40242f8d
3ffffd20: 000000ff 3fff1880 0000000e 4023c4e6
3ffffd30: 3ffebf76 3fff0758 00000000 00000000
3ffffd40: 00000000 00000000 00000000 3ffebf85
3ffffd50: 0000000f 00000000 3fff1f22 3fff1ee8
3ffffd60: 3fff1148 3fff1bb0 3fff17e8 40243240
3ffffd70: 3ffea9c8 401036f5 00000002 00000000
3ffffd80: 3fff1d08 3fff1d08 3fff17e8 402401bd
3ffffd90: 00000022 40102219 00040000 3ffea550
3ffffda0: 3ffea5c8 40104c3e 00000020 3fff1ee8
3ffffdb0: 3fff1ee8 3fff1154 3fff1148 40224d78
3ffffdc0: 3fffc278 40104a94 3fffc200 00000022
3ffffdd0: 000000c0 0002736b 0000a8c0 402246d4
3ffffde0: 40227069 00000030 0000001c ffffffff
3ffffdf0: 3fff19cc 3fff19c8 000000ff 00000006
3ffffe00: 00000000 00000000 0000104a 00000adc
3ffffe10: 00000000 00000010 0000056e 000000ff
3ffffe20: 00000000 00000006 3fff1ee8 40224708
3ffffe30: 3fff1148 00000000 00000000 40220f98
3ffffe40: 3fff19c8 00000006 3fff1ee8 40224748
3ffffe50: 3fff1148 00000030 00000010 ffffffff
3ffffe60: 3fff19c8 3fff19cc 00000006 00000001
3ffffe70: 00000000 0d1a0000 3fff19c8 3fff1f44
3ffffe80: 3fff19cc 3fff1ee8 3fff19c8 40222601
3ffffe90: 3fff1880 3fffdc80 3ffed20c 3ffefbd8
3ffffea0: 000000ff 000015b8 3fff19c8 00000000
3ffffeb0: 3fff19c8 3fff17e8 3fff1d08 40241a67
3ffffec0: 00000000 00060000 ab2098c0 3ffefbd8
3ffffed0: 3fff19c8 3ffefbe0 3ffefbdc 4022706c
3ffffee0: 6f00a8c0 00000018 5eefc0bc 00000018
3ffffef0: 00000000 00000000 3fff08e8 40221981
3fffff00: 3fff0000 00000000 3ffeb2e6 3fff0904
3fffff10: 3ffebf4e 3fff0908 3fff1d08 40224451
3fffff20: 00000064 3fff1148 3fff1148 40221b7c
3fffff30: 3ffefac4 3ffefac0 09e1391c 3ffebf40
3fffff40: 3fffdc80 3fff1d08 3fff1148 40224e15
3fffff50: 0000005c 00000001 401031fe 3ffea5c8
3fffff60: 3ffee158 40103619 00000000 00000005
3fffff70: 00000002 401033af 00000002 00000000
3fffff80: 401033ea 00000002 00000000 3fff11a8
3fffff90: 3fffdc80 00000000 3fff1d08 4020706f
3fffffa0: 40000f49 3fffdab0 ffffff01 40000f49
================================================================
ets Jan 8 2013,rst cause:2, boot mode:(1,7)
ets Jan 8 2013,rst cause:4, boot mode:(1,7)
wdt reset
And here my first decoded stack trace:
python $SMING_HOME/../tools/decode-stacktrace.py out/build/app_0.out out/build/app_0.log1
0x4023efde: HttpConnection::staticOnMessageComplete(http_parser*) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:549
0x4023efd4: Delegate<int (HttpConnection&, bool)>::operator()(HttpConnection&, bool) const at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:549
(inlined by) HttpConnection::staticOnMessageComplete(http_parser*) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:238
0x40203900: system_restart at ??:?
0x40207698: free at C:\DEV\ESP8266\esp_microc/malloc/malloc.c:15
0x4022fc1c: SystemClass::restart() at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Platform/System.cpp:69
0x40230082: operator delete(void*) at /home/johann/dev/esp8266/Sming/Sming/system/esp_cplusplus.cpp:33
0x402334f0: Vector<rBootHttpUpdateItem>::removeAllElements() at /home/johann/dev/esp8266/Sming/Sming/Wiring/Print.h:35
0x4023357a: rBootHttpUpdate::applyUpdate() at /home/johann/dev/esp8266/Sming/Sming/Wiring/Print.h:35
0x402335fc: rBootHttpUpdate::updateComplete(HttpConnection&, bool) at /home/johann/dev/esp8266/Sming/Sming/Wiring/Print.h:35
0x40207698: free at C:\DEV\ESP8266\esp_microc/malloc/malloc.c:15
0x40242a81: MethodCaller<int (rBootHttpUpdate::*)(HttpConnection&, bool)>::invoke(HttpConnection&, bool) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/../Delegate.h:81 (discriminator 3)
0x4023efd4: Delegate<int (HttpConnection&, bool)>::operator()(HttpConnection&, bool) const at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:549
(inlined by) HttpConnection::staticOnMessageComplete(http_parser*) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:238
0x40242f8d: HttpConnection::staticOnBody(http_parser*, char const*, unsigned int) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:549
0x4023c4e6: http_parser_execute at /home/johann/dev/esp8266/Sming/Sming/third-party/http-parser/http_parser.c:2107
0x40243240: TcpConnection::onReceive(pbuf*) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/TcpConnection.cpp:110
0x401036f5: ppEnqueueRxq at ??:?
0x402401bd: HttpConnection::onReceive(pbuf*) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:549
0x40102219: lmacProcessTXStartData at ??:?
0x40104c3e: wDev_ProcessFiq at ??:?
0x40224d78: etharp_output at ??:?
0x40104a94: wDev_ProcessFiq at ??:?
0x402246d4: ip_output_if_opt at ??:?
0x40227069: tcp_input at ??:?
0x40224708: ip_output_if at ??:?
0x40220f98: pbuf_alloc at ??:?
0x40224748: ip_output at ??:?
0x40222601: tcp_send_empty_ack at ??:?
0x40241a67: TcpConnection::staticOnReceive(void*, tcp_pcb*, pbuf*, signed char) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/TcpConnection.cpp:649
0x4022706c: tcp_input at ??:?
0x40221981: tcp_slowtmr at ??:?
0x40224451: ip_input at ??:?
0x40221b7c: tcp_tmr at ??:?
0x40224e15: ethernet_input at ??:?
0x401031fe: lmacTxFrame at ??:?
0x40103619: ppEnqueueRxq at ??:?
0x401033af: ppProcessTxQ at ??:?
0x401033ea: ppProcessTxQ at ??:?
0x4020706f: ets_snprintf at ??:?
0x40000f49: ?? ??:0
0x40000f49: ?? ??:0
And my second stack trace (after wdt reset):
python $SMING_HOME/../tools/decode-stacktrace.py out/build/app_0.out out/build/app_0.log2
0x402119fe: pm_force_scan_unlock at ??:?
0x4022fea4: gdb_exception_handler at /home/johann/dev/esp8266/Sming/Sming/gdb/gdbstub.c:89
0x400005e1: ?? ??:0
0x4023efde: HttpConnection::staticOnMessageComplete(http_parser*) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:549
0x4023efd4: Delegate<int (HttpConnection&, bool)>::operator()(HttpConnection&, bool) const at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:549
(inlined by) HttpConnection::staticOnMessageComplete(http_parser*) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:238
0x40203900: system_restart at ??:?
0x40207698: free at C:\DEV\ESP8266\esp_microc/malloc/malloc.c:15
0x4022fc1c: SystemClass::restart() at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Platform/System.cpp:69
0x40230082: operator delete(void*) at /home/johann/dev/esp8266/Sming/Sming/system/esp_cplusplus.cpp:33
0x402334f0: Vector<rBootHttpUpdateItem>::removeAllElements() at /home/johann/dev/esp8266/Sming/Sming/Wiring/Print.h:35
0x4023357a: rBootHttpUpdate::applyUpdate() at /home/johann/dev/esp8266/Sming/Sming/Wiring/Print.h:35
0x402335fc: rBootHttpUpdate::updateComplete(HttpConnection&, bool) at /home/johann/dev/esp8266/Sming/Sming/Wiring/Print.h:35
0x40207698: free at C:\DEV\ESP8266\esp_microc/malloc/malloc.c:15
0x40242a81: MethodCaller<int (rBootHttpUpdate::*)(HttpConnection&, bool)>::invoke(HttpConnection&, bool) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/../Delegate.h:81 (discriminator 3)
0x4023efd4: Delegate<int (HttpConnection&, bool)>::operator()(HttpConnection&, bool) const at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:549
(inlined by) HttpConnection::staticOnMessageComplete(http_parser*) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:238
0x40242f8d: HttpConnection::staticOnBody(http_parser*, char const*, unsigned int) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:549
0x4023c4e6: http_parser_execute at /home/johann/dev/esp8266/Sming/Sming/third-party/http-parser/http_parser.c:2107
0x40243240: TcpConnection::onReceive(pbuf*) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/TcpConnection.cpp:110
0x401036f5: ppEnqueueRxq at ??:?
0x402401bd: HttpConnection::onReceive(pbuf*) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/Http/HttpConnection.cpp:549
0x40102219: lmacProcessTXStartData at ??:?
0x40104c3e: wDev_ProcessFiq at ??:?
0x40224d78: etharp_output at ??:?
0x40104a94: wDev_ProcessFiq at ??:?
0x402246d4: ip_output_if_opt at ??:?
0x40227069: tcp_input at ??:?
0x40224708: ip_output_if at ??:?
0x40220f98: pbuf_alloc at ??:?
0x40224748: ip_output at ??:?
0x40222601: tcp_send_empty_ack at ??:?
0x40241a67: TcpConnection::staticOnReceive(void*, tcp_pcb*, pbuf*, signed char) at /home/johann/dev/esp8266/Sming/Sming/SmingCore/Network/TcpConnection.cpp:649
0x4022706c: tcp_input at ??:?
0x40221981: tcp_slowtmr at ??:?
0x40224451: ip_input at ??:?
0x40221b7c: tcp_tmr at ??:?
0x40224e15: ethernet_input at ??:?
0x401031fe: lmacTxFrame at ??:?
0x40103619: ppEnqueueRxq at ??:?
0x401033af: ppProcessTxQ at ??:?
0x401033ea: ppProcessTxQ at ??:?
0x4020706f: ets_snprintf at ??:?
0x40000f49: ?? ??:0
0x40000f49: ?? ??:0
Due to that also the old Sming versions throws the same errors i think this is related to the sdk or esptool?
Hi. I'm getting the Fatal exception 28 when trying the rBoot sample on an Ai-Thinker ESP-12-F (no SSL download, I don't know if can be related to https://github.com/SmingHub/Sming/issues/1167). I noticed that the firmware seems to be flashed, but the rom switch is not working. The next reboot always happens from rom 0. I didn't copy any linked file into the sample folder, because I am using the example as-is on a 4M flash.
I also get two distinct fatal exceptions, here's the debug output and the two stack traces:
Debug Output:
first stack trace:
second one, after software watchdog reset: