Search found 270 matches

by Korken
Wed May 07, 2014 9:05 am
Forum: ChibiStudio
Topic: Degbug problem in ChibiStudio
Replies: 13
Views: 4645

Re: Degbug problem in ChibiStudio

Okey, I duplicated the STM32F407-Discovery one but when I start debug I get "WARNING! The target is already running. All changes GDB did to registers will be discarded! Waiting for target to halt.". But I have the halt box checked in my debug launcher. I'm debugging via STLink-V2 via SWD i...
by Korken
Wed May 07, 2014 8:37 am
Forum: STM32 Support
Topic: ICU, use both channels?
Replies: 22
Views: 6069

Re: ICU, use both channels?

Thanks you for the tip. I'm currently trying to use ChibiStudio (discussed in another thread) so hopefully I can track it down. Because I double checked the initialization of all the registers, and it is the same as in the ST driver so it is not a setup problem. About the high level API: 1) Agreed i...
by Korken
Wed May 07, 2014 8:23 am
Forum: ChibiStudio
Topic: Degbug problem in ChibiStudio
Replies: 13
Views: 4645

Re: Degbug problem in ChibiStudio

No demo, I am using my own code (the one we discussed in the ICU thread - hunting that damn ARR bug).
by Korken
Wed May 07, 2014 8:14 am
Forum: ChibiStudio
Topic: Degbug problem in ChibiStudio
Replies: 13
Views: 4645

Degbug problem in ChibiStudio

Hi, When I start press the debug button (after I have connected to my board) I get this error and I have no idea how to fix it: http://s23.postimg.org/9855oo5m3/problem.png Because the .elf file is in the build directory so I'm not understanding the problem. Could someone help me with this problem? ...
by Korken
Tue May 06, 2014 3:56 pm
Forum: STM32 Support
Topic: ICU, use both channels?
Replies: 22
Views: 6069

Re: ICU, use both channels?

Hi Giovanni, thanks for the quick answer! Yes, the overflow_cb pointer is NULL, but on line 807-808 in eicu_lld.c in function eicu_lld_enable: if (eicup->config->overflow_cb != NULL) eicup->tim->DIER |= STM32_TIM_DIER_UIE; So ther interrupt should be disabled if the callback is NULL. Or did you refe...
by Korken
Tue May 06, 2014 3:22 pm
Forum: STM32 Support
Topic: ICU, use both channels?
Replies: 22
Views: 6069

Re: ICU, use both channels?

Hi Giovanni, I have expanded your original ICU driver to include measurements of pulses and edge trigging, but I have one bug that eludes me completely! Everything works as it should, the counters are counting and registering events (and the correct counter value), but when the counter reaches the v...
by Korken
Sun May 04, 2014 6:43 pm
Forum: STM32 Support
Topic: ICU, use both channels?
Replies: 22
Views: 6069

Re: ICU, use both channels?

Ahh, yes. I understand. :) For my case custom drivers will be the answer.
Thanks for the quick answers and keep up the great work you are doing!
by Korken
Sun May 04, 2014 6:08 pm
Forum: STM32 Support
Topic: ICU, use both channels?
Replies: 22
Views: 6069

Re: ICU, use both channels?

Okey, then I know not to look any more. :)

Just one thing though, why is not TIM12 supported for PWM input (STM32F4)?
It is the same as TIM9 (just another ISR vector). Maybe this is planned to be added?
by Korken
Sun May 04, 2014 6:02 pm
Forum: STM32 Support
Topic: ICU, use both channels?
Replies: 22
Views: 6069

Re: ICU, use both channels?

If you are using it in PWM measurement mode, is this what you are reffering to? If you only want it to react to a rising/falling edge and give an interrupt with the Capture value, it is possible. (when you use it as "independent channels") This is the feature I was trying to access, to use...
by Korken
Sun May 04, 2014 5:14 pm
Forum: STM32 Support
Topic: ICU, use both channels?
Replies: 22
Views: 6069

ICU, use both channels?

Hi, I'm quite new to ChibiOS but really love it with the HAL and everything! But I have a problem that I can't seem to solve. Each timer supports input capture for all its 4 channels but I seem to only be able to choose Ch. 1 or Ch. 2, plus I cannot chose to use both channels at the same time. Is th...

Go to advanced search