-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
(Linked) Bug report: Nicla is disconnecting/crashing after ~30 min of I2C com #42
Comments
Hello @lsi8 And it has been working for 2 hours with no crashes. My suggestions is when you plug the Nicla into the Portenta, tap the reset button of the Nicla once, before openning the Serial monitor. |
I’ve tried that sir, I’ve tried every combination over the past few weeks and nothing works for me. Can you post the most recent print outs from you serial printer? |
I have the values, and they are changing if I rotate the Nicla. Could you please check that you have the latest versions of the Portenta and Nicla Cores, also check the Arduino_BHY2 and Arduino_BHY2Host libraries. Send me which versions you are using. |
I was running 2.5.2 for portenta core but 2.6.1 is available (installing now). |
@marqdevx |
@marqdevx 10 Hz is the fastest I can get the data without communication breaking. I was hoping to get, not only the acceleration data, but data from all other sensors at over 100 Hz. |
But that only says that you had the same value few times, if you rotate the board, the data is not changing? |
I continue running the loop after I detect 10 repeats. Even hours after the detection I am still receiving the exact same values. This isn't physically possible. No the data does not change when I rotate or move the board after this event occurs. |
Hmm could you remove the I will try again, and if mine is working I will check if the issue is on the firmware of the Board. I will get back to you on Monday! Have a nice weekend. |
I was having the issue before I included that library. I was having the issue with the barebones code from your tutorial. I will still try it later today and share the results though. Thanks for your help. |
Hello @lsi8, I let your sketches run on my boards for around 3 hours and never encountered your issue. I didn't include the Please note that these fixes are currently available only in the main branch of this repository (and the mirrored ones). They have not been released yet, so please replace your downloaded libraries with the source code fetched from here. |
Same problem here, with the default sensor sketch. Also I tried to add SensorActivity sensor and the program crash if you use Orientation sensor before:
Here is the output, and as you can see, the Activity sensor seem to output the Orientation values instead of the activity values:
Any hint how to debug that? EDIT: I only use the USB cable as a power source, I don't know if with a Battery it's better and maybe a power issue by ony powering the board with USB? |
Hi @xamix, thanks for reporting the issue with the activity sensor. It was related to a missing return value and should be now fixed by f04953d. |
Hi @xamix ! Were you able to test it again? |
Hi @sebromero, Sorry for the delay, I just get time to test back. The problem with activity Sensor is indeed FIXED |
@xamix No worries, thank you for testing it. Looks like things are working now. Please keep us posted if you still experience issues. |
Hello, I tried again with the "temperature.ino" sketch found on github: https://github.com/arduino-libraries/Arduino_BHY2Host/blob/main/examples/Temperature/Temperature.ino |
Description of defect
I first reported this bug at arduino-libraries/Arduino_Pro_Tutorials but I was told by @per1234 that it should also be tracked here.
@marqdevx
I am trying to get your basic tutorial working for the Nicla and Portenta H7 connected over ESLOV. The bug in your example is that it only works for a little over half an hour before crashing.
I modified your code (technically, @giulcioffi & @polldo 's code) for debugging purposes:
nicla-sense-me-fw/Arduino_BHY2Host/examples/Accelerometer/Accelerometer_copy.ino:
nicla-sense-me-fw/Arduino_BHY2/examples/App/App_copy.ino:
After 1,881,243–2,398,485 ms, the Nicla stops updating…
BHY2.update(500);
line in the loop probably caused an exception.If I reset just the Portenta and relaunch the serial printer, the Portenta halts at the
accel.begin();
line in the setup...Target(s) affected by this defect ?
Refer to bug description.
Toolchain(s) (name and version) displaying this defect ?
Refer to code.
What version of Mbed-os are you using (tag or sha) ?
Most recent versions required by the linked code as of today (12/7/2021).
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
Most recent versions required by the linked code as of today (12/7/2021).
How is this defect reproduced ?
By running the linked code and waiting over 30 min.
The text was updated successfully, but these errors were encountered: