Giter VIP home page Giter VIP logo

Comments (4)

c-berger avatar c-berger commented on July 18, 2024

Hi Alex,

I am not aware of such a issue. The startup sequence should be deterministic. But since there is real hardware involved, it could happen that the path through the code is slightly different depending on what values are obtained from the device. For example, the PLL lock time may vary slightly each time resulting in more or less repetitions when polling its state via SPI.

Just to make sure, when you talk about startup, you mean the Argus_Init function? Further, when you say random, everything stays the same, i.e. same configuration, same device, etc.?
Does this happen for a specific device only (which one?) or can you reproduce it with multiple devices (also, which ones?)?
How did you measure the stack? Simply by checking what memory has been changed after calling Argus_Init? Just wondering if it could have the same stack usage but sometimes not using the allocated space...

Best regards,
Christoph

from afbr-s50-api.

AlexKlimaj avatar AlexKlimaj commented on July 18, 2024

On the same device through different power cycles, the stack will vary on startup. The behavior is the same across multiple units.

I only noticed this after upgrading to 1.4.4. It might be occurring on 1.3.5 but didn't cause a hardfault because it used less overall stack.

Stack is measured in nuttx with top.

from afbr-s50-api.

c-berger avatar c-berger commented on July 18, 2024

Ok, thanks for the information.
Is it possible to simply increase the stack size to get rid of the issue?

from afbr-s50-api.

AlexKlimaj avatar AlexKlimaj commented on July 18, 2024

Yes I increased the stack and the hardfault was resolved. But I would like to know what the library is doing internally that it can dynamically change the amount of stack required.

from afbr-s50-api.

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.