Search found 3 matches

by jnz
Fri Dec 13, 2013 9:53 am
Forum: STM32 Support
Topic: SV#4 by calling chBSemSignal() in ADC callback function
Replies: 2
Views: 4065

Re: SV#4 by calling chBSemSignal() in ADC callback function

Thank you for your quick and helpful answer, Giovanni.

This works for me now:

Code: Select all

    if (adcp->state == ADC_COMPLETE) {
        chSysLockFromIsr();
        chBSemSignalI(&AdcSema);
        chSysUnlockFromIsr();
    }
by jnz
Thu Dec 12, 2013 4:32 pm
Forum: STM32 Support
Topic: SV#4 by calling chBSemSignal() in ADC callback function
Replies: 2
Views: 4065

SV#4 by calling chBSemSignal() in ADC callback function

I get a "SV#4" chDbgPanic when I call chBSemSignal() on a binary semaphore in an ADC callback. I wonder why?
(MCU: STM32F407 [Discovery Board]), ChibiOS 2.6.1


void adccb(ADCDriver *adcp, adcsample_t *buffer, size_t n)
{
(void) buffer; (void) n;
/* Note, only in the ADC_COMPLETE state because ...
by jnz
Sat Jun 08, 2013 5:30 pm
Forum: Releases
Topic: 2.6.x stable branch
Replies: 16
Views: 75099

Re: 2.6.x stable branch

Great, thank you!