[beagleboard] How to get cpu cycles between to operations in c program with BBB

2015-09-11 Thread Daniel J
Hi all, I want to measure the number of cpu cycles between two operations in a c program. I am running a BBB rev C.1 on Debian (3.8.13-bone70). My code is pretty simple: #include #include int main(void) { clock_t start,stop; start=clock(); int j; for(j=0;j<12345;j++){ ; //

Re: [beagleboard] How to get cpu cycles between to operations in c program with BBB

2015-09-11 Thread Daniel J
In my productive system I indeed have true operations in the for loop, I just left them out. Also if I print out the value of clock() I also receive a 0.0. For me it looks like the clock might not be initialized? But don't know how to enable or initialize it... -- For more options, visit

[beagleboard] How to get cpu cycles in c on BBB?

2015-09-11 Thread Daniel J
Hi all, I want to measure the number of cpu cycles between two operations in a c program. I am running a BBB rev C.1 on Debian (3.8.13-bone70). My code is pretty simple: #include #include int main(void) { clock_t start,stop; start=clock(); int j; for(j=0;j<12345;j++){ ; //

[beagleboard] Device tree overlay does not affect GPIO pin but says so

2015-09-08 Thread Daniel J
Hi all, I am new in this forum so please correct me if I miss something. Currently I am struggeling with some modifications on an already working project from https://github.com/luigif/hcsr04 where a HCSR04 sonar is triggered via PRU. The sample works fine and I tried to move this to different