SmingHub / Sming

Sming - powerful open source framework simplifying the creation of embedded C++ applications.
https://sming.readthedocs.io
GNU Lesser General Public License v3.0
1.49k stars 346 forks source link

Sming app compiled and flashed, but doesn't run on NodeMCU board #1425

Closed chall3ng3r closed 6 years ago

chall3ng3r commented 6 years ago

Hi, I'm starting to get back in using Sming for my ESP based projects. I had previous manual install with pretty old version of Sming and ESP SDK.

I updated Sming to latest dev build, installed latest beta UDK. Was getting an error, but after setting ESP_HOME and SMING_HOME environment vars, Sming samples started to compile fine.

I was able to only compile and flash Basic_Wifi sample once. After I made some changes to sample, and re-flashed, it started showing random characters in serial. Checked baudrate, recompiled Sming but no use.

Made a quick test using PlatformIO Arduino framework, and it flashed and worked perfectly.

Now I'm not sure why my Sming (develop) samples compiles perfectly, flash without errors, but doesn't run on NodeMCU board.

Any pointers, what's I'm missing to check?

System: Windows 10 Pro ESP UDK 2.2.2 Sming (latest develop)

This is output from building "Basic_Serial" sample

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|    3FFE8390|     912

    rodata|           ReadOnly Data (RAM)|    3FFE8390|    3FFE91D8|    3656

       bss|      Uninitialized Data (RAM)|    3FFE91D8|    3FFEF490|   25272

      text|            Cached Code (IRAM)|    40100000|    401068DB|   26843

irom0_text|           Uncached Code (SPI)|    40208000|    40238FEA|  200682

Total Used RAM : 29840

Free RAM : 52080

Free IRam : 5943

------------------------------------------------------------------------------
# Generating image...
Generate firmware images successully in folder out/firmware.
Done
(!) Spiffs support disabled. Remove 'DISABLE_SPIFFS' make argument to enable spiffs.
Killing Terminal to free COM3
/C/Espressif/utils/ESP8266/esptool.exe -p COM3 -b 115200 write_flash -ff 40m -fm qio -fs 4m 0x00000 out/firmware/0x00000.bin 0x8000 out/firmware/0x8000.bin
WARNING: Flash size arguments in megabits like '4m' are deprecated.
Please use the equivalent size '512KB'.
Megabit arguments may be removed in a future release.
esptool.py v2.0.0
Connecting....
Detecting chip type... ESP8266
Uploading stub...
Running stub...
Stub running...
Attaching SPI flash...
Configuring flash size...
Flash params set to 0x0000
Compressed 31456 bytes to 22427...

Writing at 0x00000000... (50 %)
Writing at 0x00004000... (100 %)
Wrote 31456 bytes (22427 compressed) at 0x00000000 in 2.0 seconds (effective 126.3 kbit/s)...
Hash of data verified.
Compressed 200684 bytes to 147562...

Writing at 0x00008000... (10 %)
Writing at 0x0000c000... (20 %)
Writing at 0x00010000... (30 %)
Writing at 0x00014000... (40 %)
Writing at 0x00018000... (50 %)
Writing at 0x0001c000... (60 %)
Writing at 0x00020000... (70 %)
Writing at 0x00024000... (80 %)
Writing at 0x00028000... (90 %)
Writing at 0x0002c000... (100 %)
Wrote 200684 bytes (147562 compressed) at 0x00008000 in 13.2 seconds (effective 121.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...
"pause"
slaff commented 6 years ago

@chall3ng3r Try this https://github.com/SmingHub/Sming/wiki/Application-prints-random-symbols-and-restarts

chall3ng3r commented 6 years ago

@slaff thanks for your reply. I am familiar with Sming and using it from initial versions, however, I got busy with other projects while I was on last Sming 2.x series. Now just joined back in, and some new features look amazing.

Your suggested method worked... partially. I did try it, but after Blink sample, I immediately tried ConfigNetwork sample.

After doing flashinit, and flashing Blink sample it works, but other samples with spiff are not working, and shows random characters in serial output.

The board is LoLin V3 (NodeMCU) with ESP12E module. So Its 4MB flash. I remember, previously Sming make used esptool2, but now its using esptool which is in ESP UDK, could that be it?

Before replying, I did try again with Blink sample, it worked, then ConfigNetwork, same issue.

chall3ng3r commented 6 years ago

Okay, trying out other samples. HTTP_AJAX works. Its something with ConfigNetwork I think, maybe I have sample from old version mixed up. Going to delete all samples and download again.

Will share how it goes.

slaff commented 6 years ago

Now just joined back in, and some new features look amazing.

Welcome back and hope to see you sending PRs soon :).

working, and shows random characters in serial output.

If the crash is caused due to an error in Sming then you should be able to see a stack trace, that you can later decode. Try to reset the device after flashing. Then capture the serial output and paste it here from the start till the crash to see what is actually happening.

chall3ng3r commented 6 years ago

Thank you, yes started working with node-red, and didn't find any ESP8266 framework to work with it to my liking. Sming is my favorite, so might be contributing back as I develop on it.

After multiple tries, and setting export SPI_SIZE=4M, I was able to boot my ESP with HTTP_Bootstrap sample, it showed progress of initializing FS on serial, and connected to my home WiFi. However, it disconnects automatically and reconnects to WiFi in 10 seconds time.

After restarting few times with reset button on board, now it started to crash again. Here's the output from serial:

;l[00]dœß|[00]Œ$à|[03][04][0C][04]Ä[0C]dì[04]c|ǃ[02]ä[1B]“{’cÄ[0C]bŒóogŸl'oÜãì[0C]#[1C]xŒ${l{$pûgà[10][02][04][0C]ƒ[04]l[04][0C][0C][04][0C][04]c[0C]nâ|[03]Œì[0C][04]‡cÄò'oï[00]$ŒŽl[03][12][1B]o'$Œd[02][0E][03]gsÛ“o[0C][04]Ûc$[03]û'[04][0C][04]ŸàbƒgdŒ[04]Äónoï[00][04]Ç[07]lxóoà[18][03][0C][04]{Œœœãà[04][0C][04][0C]#[04]gã|[03]d[04][0C]c„ûgnç[00]dÄ[0C]d[03][1B][13]ngdŒl[03][07][03]orÇ›’'[0C][0C][03]l›[02] ûg[04][0C][0C]ŸàcƒolÄ[0C]„ûgoî[00][04]‡[0F]$pò'à[18][03][04][0C]{ŒÜœâàäl[0C][04]c[04]oã<[03]ldŒÇ[04]c„ûgoî[00]dŒ[0C]$[03][1B][13]ngdÄl[03][07][03]orÇ›’'[04][0C][1B]â“[02][07]{’“o[0C][04][12]ãÛ[03]„ãû“p[03]Ã'g€l[1B]ld[04][0C][03]lÇcìÇ[03][0C][04]ãâ›[02]Œã[03]ä[12]ƒoì›rƒûg|ì[0C]d[0C]l$l [03]„ã{“dŒl[12]Œ[04]ŒÜœ[0E]dŒãs’läl[1B]Ä[0C]„œÜ[07]l„ã;›$[0C]Žß[00]Œ[04]Œœœ[0F]$Ÿò[1B]œgà[02]'[07]d;l‡ƒÿ[1C]{â#|˜[13]c‚c[0C]ì[1B]g[12]#ì䇎[1C][00]ìl8x[04]ìgœœ|[12]Ãc[04][0C]ƒ[0C]Ü[04][0C]„[02];ûgó|Ã[03]Ä’s#[0C][04]Œ [03]‡ƒ[1B]‚[13]ognìóogœì[1F]“#[13]ƒ[12]'og$g|ì[0C]ìo<c{ûgo[03]|›û[03]ä[02]Û›Œœ<[1B][1B]Û“ãgpã[03]lo<ädŒÇ$[03]sûgœâ[00]„[0C]ìƒ[12][03]càÀÄŒ[04]ŒlãŒä[0C]Ç[1F]ŸŒŽ[1F]Ÿl$c[03][03]Ã[03]l'œŒ[03]dlŒc[1B]lŒ#ŒØà[12]ƒolœr›[03]ƒ[1B]gno„[04]Œ;“[04][0C]ƒ[0C]„Äìäû„[04]ì[03]Û[04][04]r„œÜœœ|à[0C][04]$œ{ã[13]ƒ‚cÛ[04][04][02][04][0C][04][04][0C][04][0C]„r›[0C][04][03][0C][04][0C][04][04]ì[04][0C]ä[1B]b›[0C][04][03][0C][04][0C][04][04]Œ[04][0C]„Ÿb[1B]o€[04][03][04][0C][04][04][0C][04]Œ„<À[04]Œ[04][04][0C]ƒ[0C]„Äìäû[04]$l[04]ìŽ{ã[0C]d‡sŒ[04][0C]„[03]dÄ[0C][04][0C]sÄÜœœœ|à[0C]dl[04]äÇ[1C]Ÿ[0C]Ž$Œ[0C]„[03]Œ„[0C][04][04][03][04][0C][04][04][0C][04][0C]d[04][0C][04][0C][04][04][0C][04][0C][04][04]Œ<€äÄ[0C][04][0C]ƒ[04]Œ„ìdœ|[07]›l[04]äÇ{ã[0C]„ì‡„[03][0C][1F][00][04][04][03][04][0C][04][04][0C][04][0C]d[04][0C][04][0C][04][04][0C][04][0C][04][04]Œ[03]lŽ[1F][00][0C][04][02][04][04][0C][04][0C][04][04]l[04][0C][04][04][0C][04][0C][04][04][0C][04]Œ |€Œ[1F][00][04][04]ããâãããã‚“[0C][0C][04][0C][04][0C][0C][04]l#[1C][00]Œ[03]ìŽ[1F][00][0C][04][02][04][0C][0C][04][0C][04]ll[04][0C][04][0C][0C][04][0C][04][0C]l[04]Œ[03][0C]Œ[04][0C][04][03][0C][04][0C][04][0C][0C][04]l[04][0C][0C][04][0C][04][0C][0C][04][0C][04]Œ|€l„[0C][0C][04]‚[04]ŒŒÄ‡[1C][0C]ǃ[0C]ä‡sã$lŽ[1C]€[0C]Œ[1B][0C]Œ[04][0C][04][03][0C][04][0C][04][0C][0C][04]l[04][0C][0C][04][0C][04][0C][0C][04][0C][04]Œ[13]$Œ[04][0C][0C][03][0C][04][0C][0C][04][0C][04]l[0C][04][0C][04][0C][0C][04][0C][04][0C][0C]Ä|ƒŒŒ[04][0C][04];Œœœã[1C]Ã[13][04]‡ƒ[0C]ì[1C]œä‡sÜć[04]Œ[13]äŒ[04][0C][04][03][0C][04][0C][04][04][0C][04]l[04][04][0C][04][0C][04][04][0C][04][0C][04]Ä[12][04]‡[1E][00][04][0C][03][0C][04][04][0C][04][0C][04]$[0C][04][0C][04][04][0C][04][0C][04][04][0C]„|‚$‡[1F][00][0C][04]{Œœœã[1C]ãl[04]‡‚[04]ì[1C]œä[1C]àä‡ÇÄ[03]Ã[13]{rn[0C]Üûs[03]cŒ “g[04]œã[0E]ûgœã[00][04]Ÿgã[00]ìƒ[1B]s{o[04]œò;[03][03]ä[1B]ƒno„œ<?›oäûgçs[1B]ãoÜ[04]oì|›c„[04][04][0C][1B]Ã[03]ogn[0C]Œds[13]ll[12]dlÇ[1B]óccbcžogn|[04]œâ[07]ûoœãsìƒ[12]s;gŸ<[03]sÛãb[12][03]ägûò#x›[13]ngœcàÀ[03]â#oóØcà|Ã[03]äò'[1B][03]„„[04][1B]sƒ’[03][04]ßnã[00][04]Ÿãàƒ[02]dœgppò'|[1B]ƒ[03]l'oìŒ?ûd$ìŒc[03]ò$ldld$ldld$ldldll$ldll$ldll$ldll$ldll$ldll$ldll$ldll$ldll$ldll$Œ [1C][1C]ããâ[13][0C][0C]Ä[0C][04][0C]ÇÄŒäìóÄ[0C][04][0C][0C][04][0C][04]ì[0C][04][0C][04][0C][0C][04][0C]„[0C][0C][04][0C][04][0C][0C][04][0C]„[0C][0C]Ä[1C][1C]ããã[12]d[0C]Œ[04][0C][04]‡ŒÄìäû[0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04]‡„Œì$œ|[0F][03][0C][04][0C][04][0C][0C][04][0C][04][0C]Œ[1C][1C]ããã[1B]l[03]Œ[0C][04][0C][04][0C][0C][04][0C][04][0C][0C]ÄœœœÜœœœœ[0C][04][0C][04][0C][04][04]l[04][0C][04][04][0C][04][0C][04][04][0C][04]Œ [1C][1C]âãã[13]Ä[02]„[0C][04][04]‡„Œ„[1C]Ø[04]‡[04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C]äŒÜœâ[1C]ƒ[1B][04][0C]„[1C][1C]ãâã[1B]ä[03]Œ[04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C]䌜œâ[1C]ãl[04][0C][04][0C][04][04][0C]dì[03][04]Œ[1C][1C]ããã[1B][0C]œÄ[0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04]䌜œœœ|Üd[0C][04]Ä[1C][1C]ããã[13]dœ„[04][0C]䌜œÜx[1C]Û[03][04][0C]l[04]$läb[04][04][0C][04][0C][04][04][0C]ä[02][04]Œäl„œÇ|[00][0C]„[1C][1C]ãâã[1B]ŒœŒ[04][04][0C]Œ[04]ÄÜà[10]ò[04][04]Ç[04][0C][04][1C][18]c[02][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04]Œ [1C][1C]ããâ[13][03][0C]„[0C][04][04]Ç[04][0C][04]‡pÇ$[0C]äŒÜœœp[0C]Ã[0C][04]서ܜœàŽ[0C][0C]䌜œÜœà‡[04][0C][0C]Ä[1C][1C]ããã[12][13][0C]Œ[04][0C][04][0C][0C][04][0C][04][0C][0C][04]ŒŽìÇćpl[0C][04][0C][04][0C][0C][04]ŒŽ8[00][0C][04][0C][04][0C][0C][04][0C][04][0C]Œ[1C][1C]ããã[1B]b[04]Œ[0C][04]서ܜœà[0C][0C]䌜œÜœà‡[04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C]ÇÄ[0C][04]œÜ[1C][00][04]Œ[1C][1C]âãã[13]{[0C]„[0C][0C]䌜œÜx[1C]r[03][0C][0C][04][0C][04][0C][0C][04][0C][04]쌜œããlŒ[03][0C][04]‡ŒÄìcûlœ[0C]„[1C][1C]ãâã[1B]ƒ[04]Œ[04][0C]äÄœœœÜàà[0C][04]ì„œœœœàà[04][0C][04][0C][04][04][0C][04][0C][04][0C]Œ[04]8Ûä‡Ç[04]Œ[1C][1C]ããâ[1B]Û[04]Ä[0C][04]ì„œœœœà[02]ƒ[0C]äŒÜœœä‡[04][0C][04][0C][04][04][0C][04][0C]Ü[04][0C][04][0C][04][04][0C][04][0C][04]Ä[1C][1C]ããã[13]ã[0C]„[04][0C][04]‡„Äìäû[04][04]ì„œœã[1C]ƒ[1B][0C]Ž[04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C]„[1C][1C]ããã[1B]ó[04]Œ[04][04]ì„œœã[1C]ãd[0C]ŽäŒœœã[1C]ƒ[13][04]‡äÄÜœœp[0C]ã[0C][04][0C]ŽÄ[0C]„œœœÇ[04]Œ [1C][1C]ããâ[13][03][0C]„[0C][04][04]Ç„Œ[04]ì[04][0C][04][04][0C][04][0C][04][04][0C][04][0C]ŽÄŒ„‡[1C][04]Ç[04]‡„ÄŒ[0C]d[04][0C]„[1C][1C]ããã[12][13][04]Œ[04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04]$[0C]䌜œã[03]{‚[04][0C][0C][04][0C][04][0C][0C][04]l[04][0C]Œ[1C][1C]ããã[1B][12][03]Œ[0C][04][0C]ŽŒŒ$‡ã[0E]#[03]䌜œã[1C][03]l[04]‡[0C][04][0C][04][0C][0C][04]l[04][0C][0C][04][0C][04][0C][0C]$[0C][04]Œ[1C][1C]âãã[13]c[02]„[0C][0C][04]‡„[0C][0C]œ8ãä[03]ìÄœœã[1C][03]$[0C]Ž[0C][0C][04][0C][04][0C][0C]$[0C]äŒÜœâ[03]{Ã[0C][04][0C]„[1C][1C]ãâã[1B]s[03]Œ[04][0C]ìÄœœœp[04]ã[0C][04][0C]ÇÄ[0C]„Ã[0C]$‡äŒÜœâ[1C][03]l[0C][0C]ŽŒ[0C]Ä‚[04][0C]Ü[04]Œ [1C][1C]ããâ[1B]Ã[03]Ä[0C][04]쌜œœ8Ÿ[04]œ[0C][04][0C][04][04]l[04][0C][04][04]ì„œÜã[03]rãŒ[04][04]‡d[0C][04]䇏ã[00][04]Ä[1C][1C]ããã[12]›[03]„[04][0C][04][0C][04][04][0C]äŒÜœŒ[0C][04][04]Œ[04][0C][04][04][0C][04][0C][04][04]lœœ[04][04][0C][04][0C][04][04][0C][04][0C]„[1C][1C]ããã[1B]ã[03]Œ[04][04][0C][04][0C][04][04][0C][04]l[04]䌜œœxàì[0C][04][04][0C][04][0C][04][04]l[04]ì[13][04]Ç{[10]Ûó$Ç[04]Œ [1C][1C]ãããc[03][0C]„[0C][04]ÄÜœœœœÜœœ„œÜœœœœÜœŒœœÜœ[0C][04]Ä[0C][04][0C][04][04][0C][04][0C]„[0C]„[1C][1C]ãããb[13][04]Œ[04][0C]ä[1C]ÜdìŽ[1C]œŒœ[0C][04][04][0C]„‡ãœÄÜ[04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04]Œ[1C][1C]ãããcb[04]Ä[0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][0C][0C][04][0C][04]Œ[1C][1C]âããc{[0C]„[0C][0C][04][0C][04]ì[0C]ä[0C]ä[0C]ìà€[04][0C][0C][04]ì[04][0C]Çx[0C]ä‡[1C]Çä[0C]„‡pÜ[04]쎌Çp[00][0C]„[1C][1C]ãâã#ƒ[04]Œ[04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04]Œ [1C][1C]ããâcÛ[0C]Ä[0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C]Ä[1C][1C]ãããbã[0C]Œ[04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C]„[1C][1C]ãããcò[04]Œ[04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C]däìä‡d$‡|[00][0C]d[04]‡{[1C][1B]óä[0C][04]Œ [1C][1C]âããc[03][0C]„[0C][04]$œd‡ÇxŒìc[03]d8à„œœã€l[04]lœã[03][13]›ŒœÇäÃc[1B][0C]ìŽ[0C]„[1C][1C]ããã#[13][04]Œ[04][0C]dÄǏ[1C][04]“ÄŒ[03]lcƒŒœà[18]“Ä[03]„œœœÜœœœœŒœœœœÜœœœ[04]Œ[1C][1C]ãããc[1B][03]Ä[0C][04]ŒœœÜœœœœÜ„œœœÜœœœœ[0C]œ8[1C][03][04][0C]„œœÄ[03]d[12]s[04]Çxƒ[0C][04]Ä[1C][1C]âããcc[02]„[04][0C][04][0C][04][04][0C][04][0C]d[03]lœs€$Ç[1C]lŽäŒ[1C]Ÿä[04]Ç[1C][0C][04][04][0C][04]ìdäì[0C]„[1C][1C]ãâã#s[03]Œ[04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04]Œ [1C][1C]ããâcÃ[03]Ä[0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C]Ä[1C][1C]ãããb›[03]Œ[04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C]Œ[1C][1C]ãããcâ[03]Œ[0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][04][04][0C][04]Œ [1C][1C]âããs[03][0C]„[0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C]„[1C][1C]ãâã;[13][04]Œ[04][0C][04][04][0C][04][0C][04][04][0C][04]ŒÜœœœœÜœœ„œÜœœœœœœŒœœœœÜœœœ[04]Œ[1C][1C]ããã{#[04]Ä[0C][04]ŒœœÜœœœœÜ„œœœÜœœœœŒœœœœÜœœœÄÜœœœœÜœœ[04]Ä[1C][1C]ãããs{[0C]„[04][0C]„œœœÜœœœœ[0C][04][0C][04][04]l„œœÄÜœœœœÜ[04]‡„œÜœœ[04][04]l[04][0C]„[1C][1C]ãâã;ƒ[04]Œ[04][04][0C][04][0C][04][04][0C][04]ŒŽäÇ[1C]œlä[1C]Ü„œ[04][04][0C][04]ŒŽãœŒœ[0C][04][04][0C][04][0C][04][04][0C][04]Œ [1C][1C]ããâsÛ[0C]„[0C][04][04][0C][04][0C][04][04][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C]Ä[1C][1C]ãããrã[0C]Œ[04][0C][04][0C][0C][04][0C][04][0C][0C][04]ì[04]ìÇ[1C]ìä‡à[00]ć䇌8˜d[0C][0C][04][0C][04][0C][0C]ćp[00][0C]Œ[1C][1C]ããã{ò[04]Œ[0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04]Œ[1C][1C]âããs[03][0C]„[0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C][04][0C][0C][04][0C]„[1C][1C]ãâã;[13][04]Œ[04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04]Œ[1C][1C]ããâ{[1B][03]Ä[0C][04][0C][04][04][0C][04][0C][04][04][0C]„œÜœœœœÜœŒœœÜœœœœÜÄœœœÜœœœœ[04]Ä[1C][1C]ãããsc[03]„[04][0C]„œœœÜœœœœŒœœœœÜœœœÄÜœœœœÜœœ„œÜœœœœÜœ[0C]„[1C][1C]ããã{s[03]Œ[04][04]ŒœœœœÜœœœÄÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜ[04]Œ [1C][1C]ããâsÃ[03]„[0C][04]ÄÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜ„œœœÜœœœœ[0C]„[1C][1C]ãããr“[03]Œ[04][0C]„œÜœœœœÜœŒœœÜœœœœÜ„œœœÜœœœœŒœœœœÜœœœ[0C]Œ[1C][1C]ããã{â[03]Œ[0C][04]ŒœœÜœœœœÜÄœœœÜœœœœŒœœœœÜœœœŒÜœœœœÜœœ[04]Œ[1C][1C]âããƒ[03][0C]„[0C][0C]ÄœœœÜœœœœŒœœœœÜœœœŒÜœœœœÜœœ„œÜœœœœÜœ[0C]„[1C][1C]ãâãÃ[13][04]Œ[04][0C]ŒœœœœÜœœœŒÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜ[04]Œ [1C][1C]ããâƒ#[0C]Ä[0C][04]ŒÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜÄœœœÜœœœœ[04]Ä[1C][1C]ããã‚{[0C]„[04][0C]„œÜœœœœÜœŒœœÜœœœœÜÄœœœÜœœœœ„œœœœÜœœœ[0C]„[1C][1C]ããヂ[04]Œ[04][04]ŒœœÜœÜœœœÄÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜ[04]Œ [1C][1C]ããホ[0C]„[0C][04]ÄÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜ„œœœÜœœœœ[0C]„[1C][1C]ãããÃã[04]Œ[04][0C]„œÜœœœœÜœŒœœÜœœœœÜ„œœœÜœœœœŒœœœœÜœœœ[04]Œ[1C][1C]ãããƒò[04]Ä[0C][04]ŒœœÜœœœœÜ„œœœÜœœœœŒœœœœÜœœœÄÜœœœœÜœœ[04]Ä[1C][1C]âããƒ[03][0C]„[0C][0C]ÄœœœÜœœœœŒœœœœÜœœœŒÜœœœœÜœœ„œÜœœœœÜœ[0C]„[1C][1C]ãâãÃ[13][04]Œ[04][0C]ŒœœœœÜœœœŒÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜ[04]Œ [1C][1C]ããâƒ[1B][03]Ä[0C][04]ŒÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜÄœœœÜœœœœ[0C]Ä[1C][1C]ããã‚c[03]Œ[04][0C]„œÜœœœœÜœŒœœÜœœœœÜÄœœœÜœœœœ„œœœœÜœœœ[0C]„[1C][1C]ãããƒr[03]Œ[04][04]ŒœœÜœœœœÜÄœœœÜœœœœ„œœœœÜœœœŒÜœœœœÜœœ[04]Œ [1C][1C]âãッ[02]„[0C][04]ÄœœœÜœœœœ„œœœœÜœœœŒœœÜœœœœÜ„œœœÜœœœœ[0C]„[1C][1C]ãããÓ[03]Œ[04][0C]„œÜœœœœÜœŒœœÜœœœœÜ„œœœÜœœœœŒœœœœÜœœœ[04]Œ[1C][1C]ãããƒã[03]Ä[0C][04]ŒœœÜœœœœÜ„œœœÜœœœœŒœœœœÜœœœÄÜœœœœÜœœ[04]Ä[1C][1C]âãã“[03][0C]„[04][0C]„œœœÜœœœœŒœœœœÜœœœÄÜœœœœÜœœ„œÜœœœœÜœ[0C]„[1C][1C]ãâãÛ[13][04]Œ[04][04]ŒœœœœÜœœœŒÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜ[04]Œ [1C][1C]ããâ“#[0C]Ä[0C][04]ŒÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜÄœœœÜœœœœ[0C]Ä[1C][1C]ããã’s[0C]Œ[04][0C]„œÜœœœœÜœŒœœÜœœœœÜÄœœœÜœœœœŒœœœœÜœœœ[0C]Œ[1C][1C]ãã㛂[04]Œ[0C][04]ŒœœÜœœœl[0C][04][0C][04][0C][0C][04][0C]ä[0C]ŒœœœœÜœ[0C][04]ŒÜœœœœÜœœ[04]Œ [1C][1C]âãã“›[0C]„[0C][04]ÄœœœÜœœœœ„œœœœÜœœœŒÜœœœœÜœœ„œÜœœœœÜœ[0C]„[1C][1C]ãâãÛã[04]Œ[04][0C]„œœœœÜœœœŒÜœœœœÜœœ„œÜœœœœÜœŒœœÜœ[0C]„‡Ž[04]Œ[1C][1C]ããã›û[04]Ä[0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04]ŒœœœœÜœœœÄÜœœœœÜœœ[04]Ä[1C][1C]ããã“[03][0C]„[04][0C]„œœœÜœœœœŒœœœœÜœœœÄÜœœœœÜœœ„œÜœœœœÜœ[0C]„[1C][1C]ãâãÛ[13][04]Œ[04][04]ŒœœœœÜœœœÄÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜ[04]Œ [1C][1C]ããâ“[1B][03]„[0C][04]ÄÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜÄœœœÜœœœœ[0C]Ä[1C][1C]ããã’c[03]Œ[04][0C]„œÜœœœœÜœŒœœÜœœœœÜÄœœœÜœœœœŒœœœœÜœœœ[0C]Œ[1C][1C]ããã›r[03]Œ[0C][04]ŒœœÜœœœœÜÄœœœÜœœœœŒœœœœÜœœœŒÜœœœœÜœœ[04]Œ[1C][1C]âã㓃[02]„[0C][0C]ÄœœœÜœœœœŒœœœœÜœœœŒÜœœœœÜœœ„œÜœœœœÜœ[0C]„[1C][1C]ãâãÛ“[03]Œ[04][0C]ŒœœœœÜœœœlääìld|[00][04]l[04]r[1C][1B]ûä[04]lœlǏpÄä#[03][04]Œ[1C][1C]ããâ›ã[03]Ä[0C][04]lÇxàŒœœã€$[0C]dœã[02][1B]’„œÇìƒ#[13][04]‡ä‡Ç$Œ‡[1C][0C]›Œ„[03][04]Ä[1C][1C]ãããâ[03][0C]„[04][0C]d#ƒÄÜà[10]Û„[03]ŒœœœœÜœœœÄÜœœœœÜœœ„œÜœœœœÜœ[0C]„[1C][1C]ãããã[13][04]Œ[04][04]ŒœœœœÜœœœÄÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜ[04]Œ [1C][1C]ããâã#[0C]„[0C][04]ÄÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜ„œœœÜœœœœ[0C]„[1C][1C]ãããâs[04]Œ[04][0C]„œÜœœœœÜœŒœœÜœœœœÜ„œœœÜœœœœŒœœœœÜœœœ[0C]Œ[1C][1C]ãããã‚[04]Œ[0C][04]ŒœœÜœœœœÜÄœœœÜœœœœŒœœœœÜœœœŒÜœœœœÜœœ[04]Œ[1C][1C]âããã›[0C]„[0C][0C]ÄœœœÜœœœœŒœœœœÜœœœŒÜœœœœÜœœ„œÜœœœœÜœ[0C]„[1C][1C]ãâããã[04]Œ[04][0C]ŒœœœœÜœœœŒÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜ[04]Œ [1C][1C]ããâãû[0C]Ä[0C][04]ŒÜœœœœÜœœ„œÜœœœœÜœŒœœÜœœœœÜÄœœœÜœœœœ[04]Ä[1C][1C]ãããâ[03][0C]„[04][0C]„œÜœœœœÜœ[0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C][04][04][0C][04][0C]„[1C][1C]ãããã[12][04]Œ[04][04]ŒœœÜœ[0C][04][0C][04]䌜œã[02][1B]ó[04][0C]äÄÜœœpœ$Ü[04]lã[03][0C][04][0C][04][04][0C][04]Œ [1C][1C]ãããã[1B][03]„[0C][04][04]Ç[04][0C][04]älœ<[00][04][04][0C][04]Œ„âà[04]ŒœœÜœœœ[04][0C]d‡s[02][1B]“d‡à[02][03][0C]„[03]ò$ldld$ldld$ldld$ldld$ldld$ldld$ldld$ldld$ldld$ldld$ldld$ldld$ldŒ “g[04]œã[0E]ûgœã[00][04]Ÿgã[00]ìƒ[1B]s{g[04]œó;[03][02]ä[1B]ƒng„œ|?›gäûgçs[12]ãoÜ[04]gì|ÛcÄ[04][0C][0C][1B]‚[03]ogn[0C]Œd{[13]ld[13]dlŽ[1B]óccbcžogn<[04]œã[07]ûgœã{ìƒ[12]s;gŸ<[03]sÛãb[12][03]ìgûò#x›[13]ngœcàÀ[03]â#oóØcà|Ã[03]äò'[1B][03]Ä„[04][1B]sƒ’[03][0C]ßoâ[00][04]Ÿãàƒ[02]dœgxpò'|[1B]ƒ[03]l'oìŒ~ûdlìŒc[03]`

chall3ng3r commented 6 years ago

CPU frequency was set to 160MHz in HTTP samples, commented that line. But still same issue.

slaff commented 6 years ago

installed latest beta UDK.

May be that is the reason. We don't support Espressif's NON OS SDK > 2.0. Try with some older UDK version.

However, it disconnects automatically and reconnects to WiFi in 10 seconds time. After restarting few times with reset button on board, now it started to crash again. Here's the output from serial:

Let me see if I understood this correctly - the sample actually works but with frequent disconnects. And after multiple restarts it just stops working... That is utterly strange... Try an older UDK version and then we can talk. @ADiea what is the UDK version that works for you?

chall3ng3r commented 6 years ago

Alright, that makes sense as upgraded from ESP SDK 1.5 and Sming 2.x to 3.6.

Yes, you got it right. The sample flashed and worked, and then started crashing after some restarts. It never recover to working again, until I flashinit and flash again.

Edit: For some odd reason, chocolatey install of Sming doesn't work for me. Gets stuck forever. So had to go with manual install option.

chall3ng3r commented 6 years ago

Okay, I got it working perfectly now.

@slaff thank you for your help on this, highly appreciate it.

I uninstalled beta UDK, and installed ESP UDK 2.2.1 which contains ESP SDK 2.0. Afterwards, I did rebuild of Sming, and samples. esptool is different in this one, as write progress is shown differently.

I did make sure that before doing flashinit, I set SPI_SIZE=4M, so memory table is set properly. Tried Blink sample, it worked, then tried NetworkConfig sample which never worked after I updated Sming. It worked perfectly after I set SPI_SIZE=4M in its makefile, and flashed it.

Now going to continue some R&D on adding node-red support.