hello
i know about to use new header file for generating random number.
In C language,
#include <stdlib.h>
#include <time.h>
we just use this header file. but it can't work for this board.
for example, we have to add m to libraries to use math.h
so how can i use
#include <stdlib.h>
#include <time.h>
this header file?
Hi,
what is your target MCU? Typically small embedded systems doesn't have real time clock which is normally used as a seed for random generator on PC machine. What is your STD C library? EWL or NewLib?
Jiri
STM32 Cortex®-M4 MCUs and MPUs programming manual
umm.. maybe this S32K144
like this i want to add another header files.
Hi,
I'm little bit lost. So, you can include header file into your code (like #include <stdlib.h> ) - path for standard C headers is already configured for your project . For non-standard header files is compiler is looking in the paths specified in project properties:
Standard C functions are in STD C library. You don't need to add it - it is added by default. The Math library is special case - the version of libm.a depends on which float point type you are using.
Jiri