Search found 47 matches

by Pask
Sat Oct 11, 2014 9:28 am
Forum: STM32 Support
Topic: chTimeNow() issue
Replies: 4
Views: 3854

Re: chTimeNow() issue

is there a way to get real system time ticks since start?
can someone give me a simple solution? pls
by Pask
Thu Oct 09, 2014 11:44 pm
Forum: STM32 Support
Topic: chTimeNow() issue
Replies: 4
Views: 3854

Re: chTimeNow() issue

Back to zero in only 1 second? :?
Not 2^32/CH_FREQUENCY seconds?
by Pask
Thu Oct 09, 2014 11:41 am
Forum: STM32 Support
Topic: chTimeNow() issue
Replies: 4
Views: 3854

chTimeNow() issue

hi, i have the following code:

Code: Select all


count = 0;
void function(){
if(count==0)
now=chTimeNow();
if(count==1)
now1=chTimeNow();
count++;
}


i call function() from a thread every 1000 ms and finally read through GDB global var now and now1. Why now is greater than now1?
by Pask
Tue Oct 07, 2014 8:45 am
Forum: STM32 Support
Topic: measure the time
Replies: 6
Views: 4504

Re: measure the time

i want to modify CH_FREQUENCY in chconf.h. it is the same for all platforms ?
I tried to change it but the compiler give me : "make : Nothing to be done for ` all ' . "
I could alternatively set the timer GPT to a frequency of 1000 but is not accepted. I can see how the frequencies it accept?
by Pask
Mon Oct 06, 2014 2:13 pm
Forum: STM32 Support
Topic: measure the time
Replies: 6
Views: 4504

Re: measure the time

ok, with CH_FREQUENCY 1000, how many time need to restart the counter (The counter can reach its maximum and then restart from zero for chTimeNoe())?
by Pask
Thu Oct 02, 2014 1:45 pm
Forum: STM32 Support
Topic: Error Standard Output
Replies: 3
Views: 2710

Re: Error Standard Output

ok but if I use for example the drivers for the usb or ADC , if during the use of this driver there is some malfunction ( some operation in the driver fails ) there is some error logs?
by Pask
Thu Oct 02, 2014 10:19 am
Forum: STM32 Support
Topic: Error Standard Output
Replies: 3
Views: 2710

Error Standard Output

There is a standard output in chibios?
for example:
if there is a crash, the operating system saves the log information about it?
by Pask
Wed Oct 01, 2014 6:27 pm
Forum: STM32 Support
Topic: GPT timer clock configuration
Replies: 1
Views: 2123

GPT timer clock configuration

i am using gptStart(&GPTD2, &gpt2cfg);
why my app crash when i set 1000 as timer clock in gpt configuration ?
with 10000 there is no crash.
by Pask
Tue Sep 30, 2014 3:04 pm
Forum: STM32 Support
Topic: measure the time
Replies: 6
Views: 4504

Re: measure the time

what is chTimeNow frequency?
by Pask
Tue Sep 30, 2014 11:49 am
Forum: STM32 Support
Topic: measure the time
Replies: 6
Views: 4504

measure the time

i need to add this function in my code:

current time (time since system started) + delay (in microseconds)

how i can do it?