Search found 547 matches
- Tue Feb 09, 2016 3:53 pm
- Forum: AVR Support
- Topic: chThdSleepUntil() ??
- Replies: 32
- Views: 16197
Re: chThdSleepUntil() ??
You have an exemple on how to make a real time tack on the demo directory. But for that you have to use for exemple ChibiOS_16.0.3 The demo is locate in ChibiOS_16.1.3\demos\AVR\RT-ARDUINOUNO This demo blink the LED every second. To mesure a time execution you can use 2 variables for exemple start, ...
- Tue Feb 09, 2016 3:15 pm
- Forum: AVR Support
- Topic: chThdSleepUntil() ??
- Replies: 32
- Views: 16197
Re: chThdSleepUntil() ??
You can also read this it can sove your problem:
http://www.chibios.org/dokuwiki/doku.php?id=chibios:kb:timing
http://www.chibios.org/dokuwiki/doku.php?id=chibios:kb:timing
- Tue Feb 09, 2016 3:14 pm
- Forum: AVR Support
- Topic: chThdSleepUntil() ??
- Replies: 32
- Views: 16197
Re: chThdSleepUntil() ??
ok, can you share all your chibios project?
Then I'm going to do some test on my side!
We can communicate on the irc if you want tonight to have a live discution. I'will be connected at 20H30.
Thanks,
Theo
Then I'm going to do some test on my side!
We can communicate on the irc if you want tonight to have a live discution. I'will be connected at 20H30.
Thanks,
Theo
- Tue Feb 09, 2016 2:32 pm
- Forum: AVR Support
- Topic: chThdSleepUntil() ??
- Replies: 32
- Views: 16197
Re: chThdSleepUntil() ??
Hi,
How do you mesure the time?
My solution would be to fucus together on the code you did to resolve the problem.
cheers, Theo
How do you mesure the time?
My solution would be to fucus together on the code you did to resolve the problem.
cheers, Theo
- Tue Feb 09, 2016 1:19 pm
- Forum: AVR Support
- Topic: chThdSleepUntil() ??
- Replies: 32
- Views: 16197
Re: chThdSleepUntil() ??
Hi,
Yes has my location suggest I speack french
why? you want to discust in french?
Ok, i'm understand, wich chibios and board do you use for your project?
Yes has my location suggest I speack french
why? you want to discust in french?
Ok, i'm understand, wich chibios and board do you use for your project?
- Tue Feb 09, 2016 8:27 am
- Forum: STM32 Support
- Topic: Program crash after few running minutes Topic is solved
- Replies: 5
- Views: 2977
Program crash after few running minutes Topic is solved
Hi all, By trying to help an member "RTOSman" you can see here: http://forum.chibios.org/phpbb/viewtopic.php?f=21&t=3155 I made a few test and here is my configuration: - ChibiOS 3.0.4 - Nucléo F401 RE board The code juste blink the on board LED. #include "ch.h" #include &quo...
- Tue Feb 09, 2016 7:56 am
- Forum: AVR Support
- Topic: chThdSleepUntil() ??
- Replies: 32
- Views: 16197
Re: chThdSleepUntil() ??
Hi RTOSman, You did a little mistake. You want to blink your led every 1 second, so why did you add ST2MS(9)? Want your thread to run every 1000ms, so : - Just add 1000ms to timeT variable, not ST2MS(9) - Then call chThdSleepUntil(MS2ST(timeT)); As a result: static THD_FUNCTION(Thread1, arg) { timeT...
- Mon Feb 08, 2016 9:55 pm
- Forum: AVR Support
- Topic: chThdSleepUntil() ??
- Replies: 32
- Views: 16197
Re: chThdSleepUntil() ??
Hi, chVTGetSystemTime() return the system ticks. The function prototype is static systime_t chVTGetSystemTime (void) and you can find all those informations on the ChibiOS/RT Manual http://chibios.sourceforge.net/docs3/rt/group__time.html#ga9abde73a5b3e779d86bdec83ca57f028 It is well documented I th...
- Mon Feb 08, 2016 12:57 am
- Forum: AVR Support
- Topic: chThdSleepUntil() ??
- Replies: 32
- Views: 16197
Re: chThdSleepUntil() ??
Hello RTOSman, my question is what is the value we use in chThdSleepUntil(). system tick or milliseconde?? The value use for this function is tick. But if you want to use milliseconds as your reférence, then you have to make a conversion from (ms) to (tick) by using for exemple MS2ST() function. and...
- Thu Jan 28, 2016 11:50 pm
- Forum: ChibiOS/HAL
- Topic: PAL macro define
- Replies: 2
- Views: 2167
PAL macro define
Hi Giovanni, I have a simple question about the implementation of the pal low level driver header file, where you made the define of GPIO register. PAL_STM32_PUDR_* is the only one that does not have the same name as the register on the reference manual. I expected to read PAL_STM32_PUPDR_* for the ...