-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
PX4 10.0.1 Stable, Hard Fault in file:armv7-m/up_hardfault.c #14075
Comments
Do you have any "good" logs from this setup? Were you using an older version of PX4 successfully? |
By any chance are you using the console when this happens? |
Hello @dagar,
Unfortunately, I do not have logs with a working setup prior to 1.10.1 Stable, but I can test 1.10.0 on Monday and upload the logs
The consol was not connected, but this can also be done on Monday. Should I observe something specific with the console? |
I don't think that's necessary, I was mainly wondering if this had ever worked entirely at some point and we could review the log.
I saw mentions of the shell (nsh) in the hardfault, so i was wondering if this might have corresponded with any particular input (this includes the mavlink shell). From your perspective did the hardfaults occur at the same phase of flight? |
If this includes mavlink then yes, the console was connected. The MoCap pose is communicated via MavROS to px4.
Yes, the scenario was comparable. The vehicle was in altitude mode in the beginning, and after switching to position control, it took about 5 seconds till the error occurred both times. The first flight should have inputs from the RC during position mode and for the second flight, the vehicle did just hover without any further RC input in position mode. |
Hello @dagar, |
Would you be able to quickly try master (what's going to become v1.11.0 soon)? If you're able to reproduce the failure there it might help if we can setup a call and debug together. |
Hello everyone, I basically forked the Px4 Firmware v1.10.1, and made some small changes to it (additional sensor drivers). The rest should be a one on one copy of v1.10.1. Hopefully this extra log is helpfull. On top of that I might have some clues. During one of my earlier flight I was using 1.9.2 below one can find a log: https://logs.px4.io/plot_app?log=d41fde26-0b2f-44d8-a082-e918d739b24f If I compare the two logs a notice that the CPU load doubled, with v.1.9.2 the CPU load was approx 0.4, while with version 1.10.1 it is around 0.8. I strongly believe this has something to do with it. If I run the "top" command in the shell I also see that SPI4 and SPI1 task use a total of 40% of the CPU usage, isnt that a bit high ? Hope this helps identifying the problem |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Hello,
I encountered an issue with PX4 1.10.1 Stable where the copter seems to make a 180° flip upside down. I am using a MoCap pose input over MavRos, mapped to the vision pose topic as described in the tutorial. The logs indicate that this seems to be a software crash, thus the movement might be a random result due to the underlying error. The Pixhawk 4 gives multiple beeper signals after engaging the killswitch.
Both logfiles below show 'Type:Hard Fault in file:armv7-m/up_hardfault.c at line: 148 running task: init'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The copter should hold its position.
Log Files
MoCap at 120Hz, the log indicates I2C3 low on the stack:
https://logs.px4.io/plot_app?log=92b60ea2-4b1e-4fac-9402-e1c797494866
MoCap at 30Hz, the log does not point out a clear error but the same issue occurred:
https://logs.px4.io/plot_app?log=afa24f21-0f51-42a4-bd2e-9b90ef29b14c
Hardware
Pixhawk 4 Holybro
The text was updated successfully, but these errors were encountered: