cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, i am trying to connect nucleoF429zi to AWS. Using MQTT protocol.

ASavi.2
Associate

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.

1 REPLY 1
ASavi.2
Associate

I found the solution, I have to  input a really random seed before using 

rand(), by adding srand(time(NULL)); problem is solved.