Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Me No Dev
@me-no-dev
yes
andig
@andig
did like 200 times
Me No Dev
@me-no-dev
OS?
stupid q... :D
Hagai Shatz
@hagai-shatz
I wonder if the folder name 'ESP8266fs' and not 'ESP8266FS' has to do with it?
Me No Dev
@me-no-dev
have verbose and stuff enabled in IDE Settings?
@hagai-shatz only if he has the drive in case-sensitive format
default it's not
andig
@andig
mhhm. maybe @hagai-shatz . Deleted and downloaded again, this time dragndrop, now its FS and working
thanks guys!
fresh osx install, no clue if thats case sensitive...
Me No Dev
@me-no-dev
not
Clemens Kirchgatterer
@everslick
one of apples biggest boo-boos :)
Me No Dev
@me-no-dev
yeah... kinda always wandered why
had some issues with case sensitive install in the past
andig
@andig
but the macbook is awesome. pretty little workhorse
Me No Dev
@me-no-dev
sshht @andig :) or fanboys will jump on you
Mehrdad K
@mkeyno
Hi guys , so sorry for any cross discussion again
I made breakout board with ESP12F, after assembly the board , I could upload sketches couple of times ,but some garbage and exception error things come out in my last tries, but now, I can’t upload any sketch to my module whereas easily can upload files in the SPIFF,
I thought it was hardware problem and related to UART resistor divider but as I said I could upload files in any flash size configuration but received following error when I try upload the any sketch
esptool v0.4.8 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
    setting board to ck
    setting baudrate from 115200 to 115200
    setting port from COM1 to COM23
    setting address from 0x00000000 to 0x00000000
    espcomm_upload_file
    espcomm_upload_mem
    setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
    flush start
    setting serial port timeouts to 1 ms
    setting serial port timeouts to 1000 ms
    flush complete
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    read 0, requested 1
trying to connect
    flush start
    setting serial port timeouts to 1 ms
    setting serial port timeouts to 1000 ms
    flush complete
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
Uploading 325376 bytes from to flash at 0x00000000
    erasing flash
    size: 04f700 address: 000000
    first_sector_index: 0
    total_sector_count: 80
    head_sector_count: 16
    adjusted_sector_count: 64
    erase_size: 040000
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    setting serial port timeouts to 15000 ms
    read 0, requested 1
    setting serial port timeouts to 1000 ms
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
closing bootloader
    flush start
    setting serial port timeouts to 1 ms
    setting serial port timeouts to 1000 ms
    flush complete
error: espcomm_upload_mem failed
did I corrupt my module
Mehrdad K
@mkeyno
@me-no-dev may I have your idea about that
Javier Traid
@jetraid
I don't have much experience with esp yet but sometime the defualt baudrate change when you make a flash, try to test the comunication with the serial monitor and at commands
Martin Ayotte
@martinayotte
@jetraid , during upload firmware to flash, baudrate can almost be any, the internal bootloader is doing baudrate autodetect. Then, running specific firmware, it is up to this firmware to determine required baudrate.
Mehrdad K
@mkeyno
hi @martinayotte , do you have any idea what happened to my module
Martin Ayotte
@martinayotte
@mkeyno , how do you power you ESP ? usually, strange errors like that is related to power supply. Otherwise, I've no idea.
Mehrdad K
@mkeyno
I have no problem with other module with same power source
maybe is related to any disorder in flash addresses , caz it work for couple of first times , then errors come through
according to the error , module has not send designated respond didn't receive command response
but in upload files in SPIFF , it's work find and send back corrected command response
Martin Ayotte
@martinayotte
If other modules work fine, then it is really possible that this particular module has a faulty Flash chip ... :-(
Mehrdad K
@mkeyno
is there any way , for example format or erase to original
Martin Ayotte
@martinayotte
Do you mean erasing the Flash ? yes, using esptool.py from madinventor, it has this option. But I don't think this will help curing a bad Flash chip.
Mehrdad K
@mkeyno
is it possible upload the SPIFF and upload the sketch consume different power
Martin Ayotte
@martinayotte
No, but maybe Flash working fine at specific address and start choking at different one.
Helio Machado
@0x2b3bfa0
Hi! How can I use Wifi STA and Wifi softAP at the same time without blocking the program flow?
Clemens Kirchgatterer
@everslick
@crushedice2000 you can have a look here: https://github.com/everslick/genesys/blob/master/net.cpp#L39-L142
Helio Machado
@0x2b3bfa0
@everslick: I'm getting a crash when using STA and softAP
@igrr: I've seen this string on the ELF of a project that I'm compiling... Maybe the ESP8266Arduino framework has precompiled parts?
/Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/src/gcc-4.8.2/libgcc/config/xtensa/lib1funcs.S
Clemens Kirchgatterer
@everslick
@crushedice2000 can you be more specific? do you have a decoded stacktrace?
Helio Machado
@0x2b3bfa0
@everslick: Yes:
0x40104199: ets_timer_disarm at ?? line ?
0x401044e6: spi_flash_read at ?? line ?
0x40201249: EspClass::flashRead(unsigned int, unsigned int*, unsigned int) at ?? line ?
0x4010676c: printf at ?? line ?
0x40208189: spiffs_phys_rd at ?? line ?
0x402059b0: spiffs_object_find_object_index_header_by_name_v at spiffs_nucleus.c line ?
0x402041b5: check_poison$part$0$constprop$4 at umm_malloc.c line ?
0x402042ba: check_poison_block at umm_malloc.c line ?
0x402043c7: check_poison_all_blocks at umm_malloc.c line ?
0x40204585: calloc at ?? line ?
0x401069bc: pvPortZalloc at ?? line ?
0x4021f441: wifi_station_set_hostname at ?? line ?
0x401044e6: spi_flash_read at ?? line ?
0x4021f529: wifi_softap_set_default_ssid at ?? line ?
0x4021f918: wifi_softap_get_config_default at ?? line ?
0x4021fa73: wifi_softap_set_station_info at ?? line ?
0x4021fb04: wifi_softap_get_station_info at ?? line ?
0x4021fb40: wifi_softap_get_station_info at ?? line ?
0x40205411: SPIFFS_stat at ?? line ?
0x40209d22: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at ?? line ?
0x40209c62: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at ?? line ?
0x40203738: SPIFFSImpl::_tryMount() at ?? line ?
0x40207372: spiffs_object_modify at ?? line ?
0x402074f8: spiffs_object_modify at ?? line ?
0x40202a04: pinMode at ?? line ?
0x40209daa: _GLOBAL__sub_I__ZN19ESP8266WiFiSTAClass12_useStaticIpE at ESP8266WiFiSTA.cpp line ?
0x4020abfb: DNSServer::replyWithIP() at ?? line ?
0x402014a8: HardwareSerial::read() at ?? line ?
0x40106974: vPortFree at ?? line ?
0x402285c8: tcp_write at ?? line ?
0x402285b3: tcp_write at ?? line ?
0x4020e9a7: AsyncStaticWebHandler::_getPath(AsyncWebServerRequest*) at ?? line ?
0x40214cfa: __udivmoddi4 at /Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/src/gcc-4.8.2/libgcc/libgcc2.c line 964
:  (inlined by) __umoddi3 at /Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/src/gcc-4.8.2/libgcc/libgcc2.c line 1168
0x402156ed: Stream::findUntil(char const*, unsigned int, char const*, unsigned int) at ?? line ?
0x40214cd0: __umoddi3 at /Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/src/gcc-4.8.2/libgcc/libgcc2.c line 1165
0x40214c94: __fpclassifyd at ?? line ?
0x40201da4: loop_wrapper() at core_esp8266_main.cpp line ?
0x40204890: cont_norm at cont.o line ?
The affected code:
  WiFi.setAutoReconnect(true);
  WiFi.begin("MASKED", "FOR PRIVACY");

  WiFi.hostname("XXXXXXXXXXXXX");
  WiFi.softAPConfig(IPAddress(192, 168, 1, 1),
                    IPAddress(192, 168, 1, 1),
                    IPAddress(255, 255, 255, 0));
  WiFi.softAP(ESSID, PASS, CHANNEL, HIDDEN);
The code that seems to cause the problem (commenting it all works seamlessly):
WiFi.begin("MASKED", "FOR PRIVACY");
geman220
@geman220
Is it possible to sleep the ESP but have it wake up from user input instead of timed intervals? I assume I wouldn't be able to send wifi commands though, so I'd have to attach some sort of sensor to the ESP?
I'm trying to get my ESP to be completely off the grid but I also need it to receive commands on the network. Most applications I see are having the ESP report data back to a server every X minutes. I need to be able to send commands to the ESP over the network.