Posts tagged pointer
Why unit tests crashed on windows but worked on the microcontroller
- 24 September 2025
When writing cross-platform code, it’s easy to forget that pointers don’t always have the same size. This caused a segmentation fault in one of our unit tests.
On the Aurix MCU, pointers are 32-bit.
In the code a pointer (memory address) was stored in a uint32_t
variable.
That worked fine on the target.