Search found 15 matches

by Vooon
Sat Oct 18, 2014 5:45 pm
Forum: STM32 Support
Topic: SDADC3 faults on STM32F373 @ 3.0-git
Replies: 4
Views: 2975

Re: SDADC3 faults on STM32F373 @ 3.0-git

Also i am waiting update official git, have any details about sync? :roll:
by Vooon
Sat Oct 18, 2014 5:43 pm
Forum: STM32 Support
Topic: SDADC3 faults on STM32F373 @ 3.0-git
Replies: 4
Views: 2975

SDADC3 faults on STM32F373 @ 3.0-git

I turn back to the processing of ADC and came across a problem: after starting the firmware SDADCD3 falls (even without a halt).
With that SDARC1 works without problems.

Configuration: m

It fails if i uncomment adcSTM32Calibrate(&SDADCD3); or adcStartConversion(&SDADCD3, &sdadc3group, p_flow ...
by Vooon
Sat Oct 18, 2014 10:49 am
Forum: STM32 Support
Topic: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git
Replies: 12
Views: 6737

Re: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git

Sorry i am forgot to say that adding icuStartCapture() fixes and now icu works as expected :roll: .
by Vooon
Sat Oct 18, 2014 10:20 am
Forum: STM32 Support
Topic: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git
Replies: 12
Views: 6737

Re: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git

Ok, i enabled all debugging and found that i forgot to do icuStartCaptute() before icuEnableNotification(). :oops:
by Vooon
Sat Oct 18, 2014 9:03 am
Forum: STM32 Support
Topic: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git
Replies: 12
Views: 6737

Re: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git

Giovanny,

Found one bug in icu.h 183:

#define _icu_isr_invoke_width_cb(icup) do { \
if (((icup)->state == ICU_ACTIVE) && \
((icup)->config->period_cb != NULL)) \
(icup)->config->width_cb(icup); \
} while (0)


Checked wrong callback.

I added empty_handler for width_cb, but i still get 0 or 1 ...
by Vooon
Fri Oct 17, 2014 8:20 pm
Forum: STM32 Support
Topic: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git
Replies: 12
Views: 6737

Re: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git

Normal range is 1 Hz .. 1 kHz, but usually less than 300 Hz. Test signal ~10 Hz. Also hw has small RC-filter to eliminate noise.
A similar code worked with chibios 2.6, with same signal generator from blinking arduino :).
by Vooon
Fri Oct 17, 2014 6:18 pm
Forum: STM32 Support
Topic: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git
Replies: 12
Views: 6737

Re: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git

I rewrote back to the callbacks, but there was another problem: icuGetPeriodX() returns only 0 or 1: 0 before the first event and 1 after.
Interrupts occur (updated last_update), but the value is not correct.

https://github.com/vooon/miniecu/blob/m ... _rpm.c#L82
by Vooon
Fri Oct 17, 2014 11:34 am
Forum: STM32 Support
Topic: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git
Replies: 12
Views: 6737

Re: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git

I have not used jtag debugging in this project, enough debug messages for me.
Here is the result:


(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/vovan/src/UAV/miniecu/build/miniecu_v2/miniecu_v2.elf ...
by Vooon
Fri Oct 17, 2014 1:49 am
Forum: STM32 Support
Topic: ICU halt after icuWaitCapture on STM32F373 @ 3.0-git
Replies: 12
Views: 6737

ICU halt after icuWaitCapture on STM32F373 @ 3.0-git

Hi all,

I want to use polled ICU, but when i try to use it immediatly halts (even without indication done in SYSTEM_HALT_HOOK).
By commenting-out i found that it breaks if i call icuWaitCompletion() or I-class in lock.
Also i tried do explicit icuDisableNotifications(), and fill callbacks with ...