terjeio / Trinamic-library

Plain C library for Trinamic TMC2130 stepper drivers
Other
53 stars 21 forks source link

Library uses unaligned access to structure members #5

Closed knivd closed 2 years ago

knivd commented 2 years ago

This results in inability to execute the code with PIC32MZ series. Removing the #pragma pack() directives enables the execution, however, the results are incorrect. Reordering all the members in all structures may be required to avoid the need to use packing