Coder Social home page Coder Social logo

Comments (10)

PerMalmberg avatar PerMalmberg commented on May 24, 2024

What version of ESP-IDF are you using? I'm developing against the latest master.

from smooth.

enelson1001 avatar enelson1001 commented on May 24, 2024

from smooth.

PerMalmberg avatar PerMalmberg commented on May 24, 2024

That is odd, somehow you have an include path to ${IDF_PATH}/components/json/cJSON instead of ${IDF_PATH}/components.

Did you regenerate the project? Also, did you update the IDF submodules?

from smooth.

enelson1001 avatar enelson1001 commented on May 24, 2024

from smooth.

PerMalmberg avatar PerMalmberg commented on May 24, 2024

Ah, so you're not using it as a CMake-project; that explains why you have to make changes. I use CLion ad my IDE and while IDF's CMake-ish setup isn't yet really finished it works well enough until Espressif release a new version of the CMake support.

from smooth.

enelson1001 avatar enelson1001 commented on May 24, 2024

from smooth.

PerMalmberg avatar PerMalmberg commented on May 24, 2024
  1. Looks like the main task is starved of CPU cycles. Are you running with the sdconfig that comes with smooth or a custom one?
  2. No? What does sdcard.cpp have to do with the queue example?
  3. As expected.
  4. The idle task easily gets starved of CPU cycles and unless you actually utilize it to perform work, it is nothing to worry about.
  5. That's a mistake Fixed in this commit

I'll try to remember to run the queue example when I get back home to double check that it works.

from smooth.

PerMalmberg avatar PerMalmberg commented on May 24, 2024

@enelson1001 I just ran the queue example without modifications (using the sdkonfig file included with the Smooth test project) and it behaves as expected with the following output:

(V)Queue: Creating queue 'string queue-TaskEventQueue', with 10 items of size 32.
(D)MainTask: Running as attached thread
(D)MainTask: Executing...
(V)MainTask: Initializing...
(V)Queue: Creating queue 'SocketDispatcher-TaskEventQueue', with 10 items of size 8.
(V)Queue: Creating queue 'SocketOperations-TaskEventQueue', with 20 items of size 12.
(D)SocketDispatcher: Creating worker thread
(D)SocketDispatcher: Waiting for worker to start
(D)SocketDispatcher: Executing...
(D)SocketDispatcher: Notify start_mutex
(D)SenderTask: Creating worker thread
(D)SenderTask: Waiting for worker to start
(V)SocketDispatcher: Initializing...
(V)SocketDispatcher: Initialized
(D)SenderTask: Executing...
(D)SenderTask: Notify start_mutex
(V)SenderTask: Initializing...
(V)SenderTask: Initialized
(V)MainTask: Initialized
(D)Stats: Avg: 226.03us per message, Count: 100, Last msg: 130us
(D)Stats: Avg: 312.69us per message, Count: 200, Last msg: 129us
(D)Stats: Avg: 290.99us per message, Count: 300, Last msg: 129us
(D)Stats: Avg: 310.39us per message, Count: 400, Last msg: 129us
(D)Stats: Avg: 279.65us per message, Count: 500, Last msg: 130us
(D)Stats: Avg: 288.78us per message, Count: 600, Last msg: 130us
(D)Stats: Avg: 288.39us per message, Count: 700, Last msg: 129us
(D)Stats: Avg: 272.25us per message, Count: 800, Last msg: 130us
(D)Stats: Avg: 308.07us per message, Count: 900, Last msg: 1000us
(D)Stats: Avg: 297.42us per message, Count: 1000, Last msg: 129us
(D)Stats: Avg: 288.01us per message, Count: 1100, Last msg: 129us
(D)Stats: Avg: 289.48us per message, Count: 1200, Last msg: 129us
(D)Stats: Avg: 283.30us per message, Count: 1300, Last msg: 129us
(D)Stats: Avg: 280.42us per message, Count: 1400, Last msg: 129us
(D)Stats: Avg: 275.51us per message, Count: 1500, Last msg: 130us
(D)Stats: Avg: 269.08us per message, Count: 1600, Last msg: 129us
(D)Stats: Avg: 267.06us per message, Count: 1700, Last msg: 129us

from smooth.

enelson1001 avatar enelson1001 commented on May 24, 2024

from smooth.

PerMalmberg avatar PerMalmberg commented on May 24, 2024

Great. I'm guessing it is the FreeRTOS tick that was different. I think I set it to the maximum 1000 to be able to get the highest possible timer resolution.

from smooth.

Related Issues (20)

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.