yet more attempting to fix the segfault.
testing on embedded systems is so annoying sometimes...