Code Monkey home page Code Monkey logo

asyncupdate's People

Contributors

lbernstone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

asyncupdate's Issues

'U_SPIFFS' was not declared in this scope

Hi,
Thanks a lot for your code and contribution! - Just a little comment from my side, when compile for ESP8266 board there is an error due to a difference between updater.h and update.h, "'U_SPIFFS' was not declared in this scope". Possibly the only change it needs is the segregation bewteen U_FS and U_SPIFFS:
#ifdef ESP8266 int cmd = (filename.indexOf("spiffs") > -1) ? U_FS : U_FLASH; #else int cmd = (filename.indexOf("spiffs") > -1) ? U_SPIFFS : U_FLASH; #endif

OTA Aborting when attempting upload

Update
Progress: 0%
abort() was called at PC 0x4016532d on core 1

Backtrace: 0x400926ec:0x3ffe7fd0 0x4009291d:0x3ffe7ff0 0x4016532d:0x3ffe8010 0x40082bcf:0x3ffe8030 0x400e4009:0x3ffe8050 0x400dd8ee:0x3ffe8070 0x400ddaad:0x3ffe8090 0x400d46ba:0x3ffe80b0 0x400d4829:0x3ffe8100 0x401d99a3:0x3ffe8120 0x401d982a:0x3ffe8170 0x400d846a:0x3ffe81a0 0x400d9d42:0x3ffe8200 0x400d9f1d:0x3ffe8240 0x400dcaa1:0x3ffe8260 0x400dcb21:0x3ffe82a0 0x400dd12a:0x3ffe82c0 0x4008e615:0x3ffe82f0

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4

Backtrace decoded:
Decoding 18 results
0x400926ec: invoke_abort at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/panic.c line 707
0x4009291d: abort at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/panic.c line 707
0x401646f9: is_safe_write_address at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/flash_ops.c line 126
0x40082bcf: spi_flash_erase_sector at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/flash_ops.c line 204 (discriminator 2)
0x400e3339: EspClass::flashEraseSector(unsigned int) at C:\Users\Joshua\Documents\Arduino\hardware\espressif\esp32\cores\esp32/Esp.cpp line 210
0x400dcc1e: UpdateClass::_writeBuffer() at C:\Users\Joshua\Documents\Arduino\hardware\espressif\esp32\libraries\Update\src/Updater.cpp line 360
0x400dcddd: UpdateClass::write(unsigned char*, unsigned int) at C:\Users\Joshua\Documents\Arduino\hardware\espressif\esp32\libraries\Update\src/Updater.cpp line 360
0x400d45c2: handleDoUpdate(AsyncWebServerRequest*, String const&, unsigned int, unsigned char*, unsigned int, bool) at C:\Users\Joshua\AppData\Local\Temp\arduino_build_564701\sketch/WiFi_API.h line 298
0x400d4735: std::_Function_handler ::_M_invoke(std::_Any_data const&, AsyncWebServerRequest*&&, String const&, unsigned int&&, unsigned char*&&, AsyncWebServerRequest*&&, bool&&) at C:\Users\Joshua\AppData\Local\Temp\arduino_build_564701\sketch/WiFi_API.h line 425
: (inlined by) _M_invoke at c:\users\joshua\documents\arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0/functional line 1871
0x401d8d17: std::function ::operator()(AsyncWebServerRequest*, String const&, unsigned int, unsigned char*, unsigned int, bool) const at C:\Users\Joshua\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/StringArray.h line 73
: (inlined by) AsyncCallbackWebHandler::handleUpload(AsyncWebServerRequest*, String const&, unsigned int, unsigned char*, unsigned int, bool) at C:\Users\Joshua\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/WebHandlerImpl.h line 107
0x401d8bd6: AsyncWebServerRequest::_handleUploadByte(unsigned char, bool) at C:\Users\Joshua\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/WebRequest.cpp line 990
0x400d8376: AsyncWebServerRequest::_parseMultipartPostByte(unsigned char, bool) at C:\Users\Joshua\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/WebRequest.cpp line 990
0x400d9b2e: AsyncWebServerRequest::_onData(void*, unsigned int) at C:\Users\Joshua\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/WebRequest.cpp line 990
0x400d9d09: std::_Function_handler ::_M_invoke(std::_Any_data const&, void*&&, AsyncClient*&&, std::_Any_data const&, unsigned int&&) at C:\Users\Joshua\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/WebRequest.cpp line 990
: (inlined by) _M_invoke at c:\users\joshua\documents\arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0/functional line 1871
0x400dbdd1: std::function ::operator()(void*, AsyncClient*, void*, unsigned int) const at C:\Users\Joshua\Documents\Arduino\libraries\AsyncTCP-master\src/AsyncTCP.cpp line 983
: (inlined by) AsyncClient::_recv(tcp_pcb*, pbuf*, signed char) at C:\Users\Joshua\Documents\Arduino\libraries\AsyncTCP-master\src/AsyncTCP.cpp line 878
0x400dbe51: AsyncClient::_s_recv(void*, tcp_pcb*, pbuf*, signed char) at C:\Users\Joshua\Documents\Arduino\libraries\AsyncTCP-master\src/AsyncTCP.cpp line 983
0x400dc45a: _async_service_task(void*) at C:\Users\Joshua\Documents\Arduino\libraries\AsyncTCP-master\src/AsyncTCP.cpp line 983
: (inlined by) _async_service_task at C:\Users\Joshua\Documents\Arduino\libraries\AsyncTCP-master\src/AsyncTCP.cpp line 180
0x4008e615: vPortTaskWrapper at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/port.c line 355 (discriminator 1)

Scratching my head here, had your bit of code working like a charm early on, only thing I can think of is that I changed my partition size to give room for BLE libraries, but the BLE isn't running at all while I'm in WiFi mode. Any suggestions?

How to stop the mdns service

is there a way to stop the mdns service from running. i saw your AsyncUpdate.ino code what is the mechanism to start the service and stop the service. i am noob in this area and there is no much help in explanation in the web

Thank you

How to upload files into SPIFF with asyncUpdate?

Dear Ibernstone,

First of all thank you for sharing the sketch to use ESPAsyncWebServer to update ESP8266 and ESP32 sketch. Really use full!!!!
I have been able to update the sketch of my ESP8266 through Web. Reading the code it looks that it is supported to update files in the SPIFF partition, but I don't know what is the structure of the file that I shall to use for it.
Please, could you kindly support on it?

Thank you in advanced,
BR
Juan

Wrong Magic Byte error when trying to upload spiffs.bin

OS: Linux Mint 19.1
Board: ESP32-EVB
IDE: Platformio IDE on VSCode

Hello !
I found this while trying to implement Firmware Update via file upload in my project.
It works if I upload firmware.bin.
But when I'm trying to upload spiffs.bin it returns A LOT of Wrong Magic Byte lines.

I get spiffs.bin from pio run -t buildfs.

[env:esp32-evb]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32-evb
framework = arduino
board_build.flash_mode = qio
board_build.f_flash = 80000000L
upload_port = /dev/ttyUSB0
monitor_port = /dev/ttyUSB0
monitor_speed = 115200
upload_speed = 115200
build_flags = -DCORE_DEBUG_LEVEL=5
#extra_scripts = post:scripts/pio_copy.py

#libraries
lib_deps =  https://github.com/me-no-dev/ESPAsyncWebServer.git
            https://github.com/me-no-dev/AsyncTCP.git

Any ideas ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.