-
Notifications
You must be signed in to change notification settings - Fork 16.8k
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
Plane: Camera feedback causing internal error 0x2000000 #18046
Comments
The key message in the log is this one: |
Why would this behavior not be a problem prior to this beta firmware test? This system has been flying in this exact same configuration for quite a while without the error. Furthermore, this isn’t happening on every photo capture, and it’s not capable of generating 100kHz. It’s quite a simple feedback system that’s been working for years. |
I don't know. It could be that it was close to the edge and the EMI has changed slightly with slight changes in PIDs, but that is just a wild guess.
this is why you'd need a scope trace. I'm pretty sure you did get 100kHz for a short time. That can happen if the shift from a 0 to a 1 doesn't happen really cleanly or if there is a lot of noise from an ESC or some signal wire (eg. i2c). |
I don't think that will really help. The condition is clearly quite rare as it took 25 mins of flying to happen with the log you sent me. |
Now that you say 4.0.7, I’m pretty certain that the prior firmware was actually 4.0.6. I’m assuming this code was added to avoid issues. Would you be able to message me with a plane build to test? |
Also we have this with every flight now, usually within the first 30 minutes. |
yes, hard lockup and the plane falls from the sky as the MCU is spending all it's time processing constant interrupts. That is why we have a quota. If you get more than 10k in 0.1s on a single pin then we shutdown that pin handler. I chose that threshold as it is around the level that it starts to have a significant impact on total CPU load.
sure. Here is 4.1.0beta4 with the GPIO threshold set to 1000 interrupts/sec (100 interrupts in 0.1s) http://uav.tridgell.net/tmp/plane-4.1.0-beta4-GPIO-100-CubeOrange.apj that should make the issue easier to reproduce |
@Naterater any update? Were you able to reproduce with Tridge's build? |
@Naterater any update? |
Bug report
Issue details
Recently upgraded from 4.0.6 to 4.1.0Beta (downloaded 2021-07-17). Survey mission now can cause an internal error. It seems to already be reported: https://discuss.ardupilot.org/t/internal-error-0x2000000/70858
Note that this configuration was working properly before. As previously reported, changing RELAY DEFAULT from 0>1 MAY work, and I can test tomorrow. It might be coincidence though.
Version
Plane 4.1.0 Beta
Platform
[ ] All
[ ] AntennaTracker
[ ] Copter
[X] Plane
[ ] Rover
[ ] Submarine
Airframe type
Electric twin
Hardware type
Cube Orange, Sony A7RIV with multiport triggering and hotshoe feedback.
Logs
https://1drv.ms/u/s!AunBK4rE1ZDChJJOj2yiDsBtE049JQ?e=BRa3ur
https://1drv.ms/u/s!AunBK4rE1ZDChJJPa1S6QlIjao-pdQ?e=meH8sl
The text was updated successfully, but these errors were encountered: