Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with rand() with keil4

Status
Not open for further replies.

Embedded c

Newbie level 4
Newbie level 4
Joined
Nov 19, 2013
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
35
I really have a problem with rand() function. The problem was stdlib.h the library not working with keil4. I am working for lpc2129 microcontroler the target gave me an error. Plz help me to fix it
 

I really have a problem with rand() function. The problem was stdlib.h the library not working with keil4. I am working for lpc2129 microcontroler the target gave me an error. Plz help me to fix it

You need to post the error (compiler output perhaps) so that we will have a idea about the type of problem you are running into.
 

thanks for your replay
I got this error
(main.c:21: undefined reference to `rand'
collect2: ld returned 1 exit status
Target not created)
 

Although I am not familiar with the Keil compiler/toolchain, it appears that the linker (ld) might need to include a library which is currently not specified. Consult the compiler docs for 'rand()' it should indicate which library contains the rand() function.
 

I did it and I used the stdlib library. The problem now how to
Get the random variables? Also I need to know how to calculate
Time jitter for rand function recalled each 10 msec this function
Has WCET 0.8msec aNd BCET 0.2msec and average case
Execution time 0.5msec with lpc2129 ? Plz help
Me
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top