2021-06-23 07:38 AM
First I tried to run simulation of FreeRtos on VisualStudio and that succeeded. I was received and sending messages. For guide I used: https://github.com/eziya/STM32_HAL_AWS_IOT this example. It compile fine but when I run the code it prints this error: ""REENT malloc succeeded" failed: file "/build/gnu-tools-for-stm32_9-2020-q2-update.20201001-1621/src/newlib/newlib/libc/stdlib/rand.c", line 78" . Can somebody help. Thank you very much.
2021-06-28 12:51 AM
I found the solution, I have to input a really random seed before using
rand(), by adding srand(time(NULL)); problem is solved.