Segmentation Fault on Flight software with I2C Driver #798
-
Hi it's me again. I cross compile my code from ubuntu 18.04 to raspberry pi. The reference for programming and reading ADXL 345 is available here. I know I could have just use adxl 345 library but I can see myself working on an i2c device that might not have this kind of library available so I'm trying to stick to the generic software for better practice. The error log from R PI terminal is here
I have verified that i2c is open for my pi and I have a success on reading accelerometer data via python. I wonder if anyone here have had similar problem and can guide me to how to solve this. Thank you in advance! Hopefully it's not me accidentally deleting block driver or something again. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'd recommend running the F' application with gdb or collecting a core dump from the segfault so you can get the backtrace of the crash. A segmentation fault could be a lot of things, so figuring out where in the code the fault is occurring would probably help! As a tip, this sort of error can be caused by incorrect topology files, so double checking to make sure you have everything connected properly and initialized is a good first step as well. |
Beta Was this translation helpful? Give feedback.
I'd recommend running the F' application with gdb or collecting a core dump from the segfault so you can get the backtrace of the crash. A segmentation fault could be a lot of things, so figuring out where in the code the fault is occurring would probably help!
As a tip, this sort of error can be caused by incorrect topology files, so double checking to make sure you have everything connected properly and initialized is a good first step as well.