Comments (4)
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.
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.
Ok, thanks for the information.
Is it possible to simply increase the stack size to get rid of the issue?
from afbr-s50-api.
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)
- Add C Header Gaurds HOT 2
- Improve reactivity HOT 3
- RISC-V libary compilation HOT 1
- Incorrect range when entering/exiting beam HOT 3
- Underwater Calibration HOT 4
- Can't run step-by-step crosstalk calibration HOT 4
- E2 Lite Debugger HOT 2
- Import issue HOT 8
- Reading the sensor board with a microcontroller HOT 1
- AFBR-S50 Explorer HOT 4
- Low laser power or bad precision after porting to STM32 M4 (L4 variant) HOT 7
- AFBR-S50MV85I and Arduino HOT 56
- AFBR-S50 v1.4.4 Crash HOT 1
- Creation of Japanese README HOT 3
- Add Measurement Mode HOT 3
- How to run it on Raspberry Pi Pico? HOT 6
- Multiple Sensor HOT 5
- Disabling the Pixels HOT 3
- I want to see the file before compilation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afbr-s50-api.