Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file system problem #1

Merged
merged 2 commits into from
Mar 22, 2015
Merged

file system problem #1

merged 2 commits into from
Mar 22, 2015

Conversation

alonewolfx2
Copy link
Member

if we test some other project like meteocontrol and upload http server bootstrap again , sometimes the other files missing. so we must to check all files.

if we test some other project like meteocontrol and upload http server bootstrap again , sometimes the other files missing. so we must to check all files.
@anakod
Copy link
Member

anakod commented Mar 22, 2015

Greetings! Very glad to your participation.
I have some questions:

  1. In start procedure i was checking only last file, so if it was exist, all other files should be available too. It's not enough?
  2. Can you explain details of bug what you found?
  3. May be, if we check all files and always start one action, will be better to combine all this cases to one branch?

@alonewolfx2
Copy link
Member Author

you are right.
let me explain. i flashed httpbootstrap example and esp8266 download all files with first boot. everything ok than i flashed blink examples and than i flashed meteocontrol examples. my dsl connection down and esp8266 fail. and than i flashed httpbootstrap again. i tried webserver and tadaa, 404 not found. serial says index.html notfound. i flashed again. serial says webserver started but i am getting 404 notfound on chrome and serial says index.html notfound. module checked jquery file and jquery file exist. webserver started without index.html

anakod added a commit that referenced this pull request Mar 22, 2015
extended file system check
@anakod anakod merged commit 480e917 into SmingHub:master Mar 22, 2015
@anakod
Copy link
Member

anakod commented Mar 22, 2015

Agree, thank you!

@anakod
Copy link
Member

anakod commented Mar 22, 2015

We should make check like this in HttpServer_Bootstrap also, yes?

@alonewolfx2
Copy link
Member Author

agree. and maybe can add file.list api like nodemcu.

@anakod
Copy link
Member

anakod commented Mar 22, 2015

Yes, it should be good idea! Not sure is it implemented in spiffs?

@alonewolfx2
Copy link
Member Author

i dont know but is it implemented in spiffs but nodemcu using same spiffs and it can list files :)

@anakod
Copy link
Member

anakod commented Mar 22, 2015

nodemcu using fork of original library, but it shouldn't be a problem.

anakod pushed a commit that referenced this pull request Apr 28, 2015
Use SERIAL_BAUD_RATE from user_config.h
anakod pushed a commit that referenced this pull request Jul 2, 2015
slaff pushed a commit that referenced this pull request Oct 19, 2016
…ication.

Fixes #1.
This fix also takes care for axl_init calls that are done outside TcpConnection.
@kpishere kpishere mentioned this pull request Dec 25, 2019
13 tasks
slaff pushed a commit that referenced this pull request May 1, 2021
* Use per-arch hardware configs, and reduce ESP32 app. partition size

* Fix bug in ReadWriteStream::copyFrom()

* Fix TemplateStream

Tested against large (1MB) JSON listing generated from templates, issues arising.

Need to check for remaining plain data before continuing with next tag search
Move check for missing end tag after `evaluate`

* Add test for fragmented read of variable values

Verified that debug statements #1, #3 and #4 are triggered by the test.
Use smaller read buffers for testing to stress code more
@mikee47 mikee47 mentioned this pull request Aug 13, 2021
5 tasks
slaff pushed a commit that referenced this pull request Sep 27, 2021
* Use per-arch hardware configs, and reduce ESP32 app. partition size

* Fix bug in ReadWriteStream::copyFrom()

* Fix TemplateStream

Tested against large (1MB) JSON listing generated from templates, issues arising.

Need to check for remaining plain data before continuing with next tag search
Move check for missing end tag after `evaluate`

* Add test for fragmented read of variable values

Verified that debug statements #1, #3 and #4 are triggered by the test.
Use smaller read buffers for testing to stress code more
slaff pushed a commit that referenced this pull request Apr 24, 2023
This PR re-implements the task queue using SDK-provided queue API. This allows code running on Core #1 to queue tasks for execution by Sming (which runs on Core #0).

Some care is required running both cores together so some notes have been added to the documentation.

Note: I had a need to run some simple background analogue processing for which core 1 was an ideal solution.
I put all the code in RAM, both for performance reasons and because XIP is suspended during flash erase/write operations (such as file writes). I avoided using floating-point code for the same reasons - FP routines are large so compile to flash.

The Cortex M0+ has hardware support for integer division but these routines compile to flash by default. They're small so have set the SDK PICO_DIVIDER_IN_RAM flag. It seems reasonable that integer arithmetic shouldn't require flash accesses.

Note: There is also PICO_INT64_OPS_IN_RAM and PICO_MEM_IN_RAM which probably warrant further investigation/consideration.
@pljakobs pljakobs mentioned this pull request Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants