Skip to content
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

Closed
Chris-Bee opened this issue Jan 31, 2020 · 9 comments
Closed

PX4 10.0.1 Stable, Hard Fault in file:armv7-m/up_hardfault.c #14075

Chris-Bee opened this issue Jan 31, 2020 · 9 comments
Assignees
Labels
Board: Pixhawk fmu-v5 FMU-v5 including pixhawk 4, pixhack v5, etc bug priority-critical stale

Comments

@Chris-Bee
Copy link

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:

  1. Map the MoCap pose to the vision pose topic
  2. Enable the vision pose estimate
  3. Start the copter in altitude mode and take off
  4. Switch to position mode
  5. The copter holds its position stable for ~5 seconds until the described issue occurs

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

@dagar dagar added bug Board: Pixhawk fmu-v5 FMU-v5 including pixhawk 4, pixhack v5, etc priority-critical labels Jan 31, 2020
@dagar dagar self-assigned this Jan 31, 2020
@dagar
Copy link
Member

dagar commented Jan 31, 2020

Do you have any "good" logs from this setup? Were you using an older version of PX4 successfully?

@dagar
Copy link
Member

dagar commented Jan 31, 2020

By any chance are you using the console when this happens?

@Chris-Bee
Copy link
Author

Hello @dagar,
thank you for the fast reply.

Do you have any "good" logs from this setup? Were you using an older version of PX4 successfully?

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

By any chance are you using the console when this happens?

The consol was not connected, but this can also be done on Monday. Should I observe something specific with the console?

@dagar
Copy link
Member

dagar commented Jan 31, 2020

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

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.

The consol was not connected, but this can also be done on Monday. Should I observe something specific with the console?

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?

@Chris-Bee
Copy link
Author

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).

If this includes mavlink then yes, the console was connected. The MoCap pose is communicated via MavROS to px4.

From your perspective did the hardfaults occur at the same phase of flight?

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.

@Chris-Bee
Copy link
Author

Hello @dagar,
are there any updates from your side regarding this issue? We are planning to downgrade to 1.10.0 stable next week and test if the error occurs for this version as well.

@dagar
Copy link
Member

dagar commented Mar 9, 2020

Hello @dagar,
are there any updates from your side regarding this issue? We are planning to downgrade to 1.10.0 stable next week and test if the error occurs for this version as well.

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.

@koenlucassen
Copy link

koenlucassen commented May 20, 2020

Hello everyone,
I seem to have the same problem, the software crashes shorty after take-off with a fixed-wing airplane using a black HEX cube. The log file can be found below:
https://logs.px4.io/plot_app?log=8572edab-7b45-4eb3-8ae8-d6a7036de909

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

@stale
Copy link

stale bot commented Aug 22, 2020

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Board: Pixhawk fmu-v5 FMU-v5 including pixhawk 4, pixhack v5, etc bug priority-critical stale
Projects
None yet
Development

No branches or pull requests

4 participants