Search found 21 matches

by kb1gtt
Tue Nov 08, 2016 11:23 am
Forum: General Support
Topic: Time measurement(s).
Replies: 10
Views: 1779

Re: Time measurement(s).

Great and thanks for the fast reply. I have both timers working the cat's meow right now. I'm really liking Chibios, very nice and thanks for getting it out there.
by kb1gtt
Mon Nov 07, 2016 6:58 pm
Forum: General Support
Topic: Time measurement(s).
Replies: 10
Views: 1779

Re: Time measurement(s).

Ah I was being a bit thick skulked. I now see that (&icup == &ICUD3) and (icup == &ICUD3) are different things. I incorrectly read the parameter. Thanks for the sample code. Is there a more elegant way to deal with 2 channels? I'm using TIM3 CH1 and TIM4 CH2. It works if I have icucfgCh1...
by kb1gtt
Sun Nov 06, 2016 2:54 pm
Forum: General Support
Topic: Time measurement(s).
Replies: 10
Views: 1779

Re: Time measurement(s).

Sorry I'm a bit more novice than expert. your comment doesn't make full sense to me. I believe you are saying I can do something in IcuPeriodCallBack like this if (icup = ICUD3) then {period3 = icuGetPeriodX(icup); } However I do not know how to do the compare. I'm having trouble figuring out what i...
by kb1gtt
Sun Nov 06, 2016 1:23 pm
Forum: General Support
Topic: Time measurement(s).
Replies: 10
Views: 1779

Re: Time measurement(s).

I still don't fully understand the 2 extra fields. However I tried the defaults in the online examples and it appears to work. I believe these fields are doing some DMA stuff that in my application is not required, as well I believe these 2 default fields are basically turning off the DMA feature, w...
by kb1gtt
Fri Oct 28, 2016 9:54 pm
Forum: General Support
Topic: Time measurement(s).
Replies: 10
Views: 1779

Re: Time measurement(s).

I have found several examples, they seem to all be using more inputs to ICUConfig than I expect. In the below, I see the example uses 7 inputs, but the header seems to indicate it need 5. Should I be concerned with "ICU_Channel_1" and the following 0? Could that be a non-important part of ...
by kb1gtt
Fri Oct 28, 2016 8:02 pm
Forum: General Support
Topic: Time measurement(s).
Replies: 10
Views: 1779

Time measurement(s).

Is there a better way to do this? I'm looking to measure time of a pulse that will be as low as 2mS and up to 150mS, more accuracy is better, so the faster I can capture the elapsed time the better off I am. In this case it's a dosing pump, and the pulses = amount of fluid dosed. So more accurate me...
by kb1gtt
Fri Oct 28, 2016 3:04 pm
Forum: General Support
Topic: missing initializer for field 'dier' of 'PWMConfig' Warning issue
Replies: 2
Views: 866

Re: missing initializer for field 'dier' of 'PWMConfig' Warning issue

Seems that should be like this, Chibios must have added a field after that demo code was posted. I guess in my case it should be 0, but I don't know how to know what should be in there for a STM32F429.

Code: Select all

  /* HW dependent part.*/
  0,
  0
};
by kb1gtt
Fri Oct 28, 2016 2:51 pm
Forum: General Support
Topic: missing initializer for field 'dier' of 'PWMConfig' Warning issue
Replies: 2
Views: 866

missing initializer for field 'dier' of 'PWMConfig' Warning issue

When I follow the reference code at the below link, http://www.chibios.org/dokuwiki/doku.php?id=chibios:articles:stm32f4_discovery_code Which I have slightly modified to the below, /* * PWM configuration structure. * Cyclic callback enabled, channels 1 and 4 enabled without callbacks, * the active s...
by kb1gtt
Wed Oct 26, 2016 2:39 pm
Forum: General Support
Topic: dbg_panic_msg notes chThdSleepS
Replies: 4
Views: 1062

Re: dbg_panic_msg notes chThdSleepS

Ah, there we have it, I see under the thread one was main.c, which was a call for chThdSleepMicroseconds which was set with 0. I changed it such that the min is 1, and now it's working again.

Thanks for the help.
by kb1gtt
Wed Oct 26, 2016 11:13 am
Forum: General Support
Topic: dbg_panic_msg notes chThdSleepS
Replies: 4
Views: 1062

Re: dbg_panic_msg notes chThdSleepS

Do you mean the "trace buffer" tab? I'm not sure I follow how to complete the stack trace. Here's my trace buffer, but I don't see much related to stack in that dialog.
Capture.PNG

Go to advanced search