Closed TCWilliamson closed 3 years ago
So what are you actually asking? Us reading a crystal bowl? The code you are using is a modified version of SOEM from a different repository. The test code is for a Maxon servo drive, you have a Kinko FD (whatever that is). A segfault mostly is caused by a reference to a pointer that is no longer valid, or was never valid in the first place. It is up to you to figure out exactly what instruction causes the segfault. Dig deeper.
That's just the name of the file - I've been rewriting the internals, running a simpletest that was modified. It's still SOEM framed, so I was hoping someone here would be kind enough to help - information on SOEM is a bit sparse. Any advice on recommendations on what to read to get a better understanding would be appreciated - there's not many people I know to go to, to ask questions...
I'm not exactly sure what a segmentation fault actually is!
https://en.wikipedia.org/wiki/Segmentation_fault I know, typing "segmentation fault" in google is difficult.... It is such a generic error that this not the right place to ask those questions. As far as I know there have not been any segfault related bugs in SOEM for years. So it is most likely in other code than ours.
No need to be rude - I did search Segmentation fault several times, but I tied it in with EtherCAT, assuming it was more relation to EtherCAT Segments. Do you have any recommendations as to where to go for more information regarding getting familier with setting up SOEM - any good reads? All I'm looking for is a bit of help and a point in the right direction. Just trying to figure things out.
I'm just getting started with SOEM, using Ho Tam's SOEM with a Raspberry Pi.
So far I've got it detecting an ethercat device, and changing states (to an extent) however, I can't get past having 'segmentation fault' errors. I'm a bit of a noob on this kind of thing and wouldn't mind having a bit of a clarification as to what that exactly means, and what I might be missing out!
The code I'm running is a modified version of simple_test.
The segmentation fault seems to occur when it tries to read the 0x6041 register to aquire the status word.