Skip to main content
Visitor II
June 23, 2021
Question

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

  • June 23, 2021
  • 1 reply
  • 557 views

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.

    This topic has been closed for replies.

    1 reply

    ASavi.2Author
    Visitor II
    June 28, 2021

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

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