Thanks for your response. To clarify, I am building onboard the erlebrain3.
This has occurred with all of the examples I've tried so far:
AHRS_Test, BARO_generic, INS_generic, RCInput, RCInputToRCOutput.
The time elapsed before seg fault occurs with the last two examples seemed to be related to how frequently and quickly I would change the RC channel values using the remote, which is why I had assumed it was an issue with RT_Preempt.
As I had used the erlebrain2(I did so because there was no erlebrain3 choice) board option when using ./waf, I had assumed that the HAL was already using the RT_Preempt kernel that Erle has applied to the Debian Jessie base. Isn't this patch already applied in the Erle version of Debian Jessie?
Having already built the examples following the links in my previous post, the steps I am following are:
- Enter ardupilot/build/erlebrain2/examples
- stop the apm, ros, and mavros services using systemctl
- execute sudo ./NAME_OF_EXAMPLE
Here's a recording of attempting to run the ./INS_generic example