jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.83k stars 720 forks source link

ESP-link webpage not loaded after sketch webserver_led.ino upload?! #359

Open yesnoj opened 6 years ago

yesnoj commented 6 years ago

Hi all, i've a problem, once i've uploaded the webpage , in my case the SimpleLED.html , i don't know how to remove this from the ESP8266. I've also reflashed with the nodemcu flasher, but it remains there. Another thing, every time i try to upload a sketch, the relative for the webserver_led, so webserver_led.ino, i can't access anymore to the 192.168.4.1 page, i've to reflash with the tool. How can i solve this two problems? Thanks in advance!

uzi18 commented 6 years ago

go to Web Server link on the left side, and click upload without choosing any file.

yesnoj commented 6 years ago

uzi18, thanks a lot!It's working!Well is not the most intuitive way but, it works :D However, can you tell me why if i flash a .ino file, than i can't access anymore to the webpace 192.168.4.1?For sure the server is running, becouse i can see the ssid in the wifi list... Thanks in advance! PS, im using the sable version esp-link v3.0.14 as suggested in the download page...and this for the .ino https://github.com/jeelabs/el-client/tree/master/ELClient/examples/webserver_led

yesnoj commented 6 years ago

I've flashed the old version, the esp-link v2.2.3 - 2016-06-21 21:58:48 - 1bcdc62 to test if the pages works, but the webserver pages are not available...if i try to reflash to the v3.0.14, it always load the 2.2.3!What i'm doing wrong?! :/

UPDATE: Ok solved, now im again in 3.0.1.4. After flashing only the user1.bin, as suggested to make update from 2.2.3 to another version ("If you want to update serially you only need to reflash user1.bin." cit.) , resetting the board, nothing was happened, neither any ssid on wifi scan. Once i've reset to default the nodemcu flasher and reselected all the files with the right 0xXXXX address, now boots and im again to v3.0.14. Still remain the problem to load a .ino file as webserver page...

UPDATE2: After updating all the libs for arduino ide, the Wemos D1 mini (retired) is not available anymore, so i've selected "Wemos D1 R1 & mini" , in the image attached the settings of the ide .When i flash the .ino file i can't see any SSID on the wireless scanner...so i've to re-flash with nodemcu flasher to restore previous status.There is something wrong in what i'm doing?!

schermata 2018-02-17 alle 10 39 25

@uzi18 can you help me with these problems?

yesnoj commented 6 years ago

Can someone help me to solve this issue?Maybe i'm doing something wrong?! @tve @uzi18

yesnoj commented 6 years ago

UPDATE: I was totally wrong with the project concept...i was flashing the .ino file in the same board (wemos d1 mini) where ESP-link was installed, and this is not correct. Thanks @ieee488 for our conversation. I've to flash the .ino on another board, for example a Nano (i've now ordered a pro-mini), and link this board to the D1. However, i can't understand why is not possible to flash .ino file in the same board...i've seen that i can select a partition (SPIFFS 3M,1M) in the ide. Can the esp-link be flashed in the 3M partition, and the .ino in the 1M?This will be possible in the future?!

uzi18 commented 6 years ago

Sorry I have missed your message, esp-link splits flash into some parts depending on flash size addresses are different. It is necessary to not mess with user1 and user2 they are dedicated. Also binary file prepared in arduino ide must be flashed from address 0. When user1 starts from 0x1000. If esp-link uses actualy user2 it will flash bin onto user1 so not from address 0 but 0x1000 thats why it is not working. If user1 flash goes to user2.

So don't mix esp-link firmware with arduino generated firmware

yesnoj commented 6 years ago

Don't worry @uzi18 , i've flashed correctly all the stuff following the guide and is working perfectly. Was my fault to flash the .ino file in the same D1 with esp-link already flashed :/ I've always flashed user1 with the flasher app. @uzi18 are you on hangout too!?

yesnoj commented 6 years ago

i don't have access from here to gitter.im ... :/ how can find you on hangout?!

yesnoj commented 6 years ago

Please close this "not issue" ...thanks to users @uzi18 and @ieee488 for their clarifications :)