Pointer to complex Struct with Array in XC32 sometimes causing runtime crashes
Just wondering if I'm alone in seeing this weird bug.
I've had it happen several times, and have "wiggled" the code to get past it.
I pass a pointer to complex struct, and depending on the surrounding code I get runtime crashes.
I tweek the code around the problem line (I don't change the problem line) and the crash goes away.
Usually the issue is with a line that is simply a diagnostic printf displaying a few elements of the pointed to struct, but sometimes it is some math or other code.
The only common part seems to be: Pointer to struct, struct contains an array.
I haven't managed to reproduce this in a simple test program, thus can't submit a ticket yet.
I'm using MPLABXv515, XC32v215, HarmonyV206, PIC32MX370F512H,
but I've had same issues in past with PIC32MZ, and earlier versions of MPLABXv4xx, XC32v2xx, HarmonyV2xx