Computed wrong pointer offset. Was STACK_SIZE*uint32_t, now STACK_SIZE*byte