Question
Calling rand() on Cortex-M3 produces hard fault due to malloc() error (SOLVED).
Very strange behavior, the instruction:
uint32_t xid;
xid = rand();
cause hard fault due to unaligned address.
I am using Atollic TrueSTUDIO Version: 9.3.0
Very strange behavior, the instruction:
uint32_t xid;
xid = rand();
cause hard fault due to unaligned address.
I am using Atollic TrueSTUDIO Version: 9.3.0
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.